From 7726fc5b38c5bf002f541aae688d2e0c638d64d9 Mon Sep 17 00:00:00 2001 From: Congo Date: Fri, 11 Nov 2022 12:47:26 +0100 Subject: [PATCH] update ribs #157 --- examples/modules/csm/examples/ribs/disk.cfg | 10 +- examples/modules/csm/examples/ribs/disk.json | 64 ++- examples/modules/csm/pages/ribs/index.adoc | 16 +- .../csm/pages/ribs/solid-information.adoc | 505 ++++++++++++++++++ 4 files changed, 567 insertions(+), 28 deletions(-) create mode 100644 examples/modules/csm/pages/ribs/solid-information.adoc diff --git a/examples/modules/csm/examples/ribs/disk.cfg b/examples/modules/csm/examples/ribs/disk.cfg index e65fd7f6..e95d05e3 100644 --- a/examples/modules/csm/examples/ribs/disk.cfg +++ b/examples/modules/csm/examples/ribs/disk.cfg @@ -1,13 +1,13 @@ -directory=toolboxes/solid/ribs/disk2/P2 +directory=toolboxes/solid/ribs/disk2/P1 -case.discretization=P2 #P1,P2 +case.discretization=P1 #P1,P2 [solid] -filename=$cfgdir/disk.json +json.filename=$cfgdir/disk.json -mesh.filename=girder:{file:5b1fd71cb0e9570499f66be5} -gmsh.partition=1 +# mesh.filename=girder:{file:5b1fd71cb0e9570499f66be5} +# gmsh.partition=1 on.type=elimination_symmetric diff --git a/examples/modules/csm/examples/ribs/disk.json b/examples/modules/csm/examples/ribs/disk.json index 89c821c0..2542b0a5 100644 --- a/examples/modules/csm/examples/ribs/disk.json +++ b/examples/modules/csm/examples/ribs/disk.json @@ -1,9 +1,33 @@ { "Name": "Solid Mechanics ", "ShortName":"Solid", + "Metadata": + { + "version": "1", + "author": ["vincentchabannes","prudhomm","lberti","jobinhio"], + "date": "23/09/2022", + "references":[""] + }, "Models": { - "equations":"Elasticity" + "solid": + { + "setup": + { + "equations":"Elasticity" + } + } + }, + "Meshes": + { + "solid": + { + "Import": + { + "filename":"girder:{file:5b1fd71cb0e9570499f66be5}", + "partition":"1" + } + } }, // tag::materials[] "Materials": @@ -19,16 +43,16 @@ // tag::boundaryconditions[] "BoundaryConditions": { - "displacement": + "solid": { - "Dirichlet": + "displacement": { "fixed": { "expr":"{0,0,0}" } }, - "Neumann_scalar": + "normal_stress": // Neumann_scalar { "load": { @@ -40,22 +64,24 @@ // end::boundaryconditions[] "PostProcess": { - "Exports": - { - "fields":["displacement","von-mises-criterion","tresca-criterion", "principal-stresses"] - }, - "Measures": + "solid": { - "VolumeVariation":"omega", - "Maximum": - { - "load": - { - "markers":"load", - "fields":["displacement"] - } - } + "Exports": + { + "fields":["displacement","von-mises-criterion","tresca-criterion", "principal-stresses"] + }, + "Measures": + { + "VolumeVariation":"omega", + "Maximum": + { + "load": + { + "markers":"load", + "fields":["displacement"] + } + } + } } } - } diff --git a/examples/modules/csm/pages/ribs/index.adoc b/examples/modules/csm/pages/ribs/index.adoc index 894d99c8..2a775e28 100644 --- a/examples/modules/csm/pages/ribs/index.adoc +++ b/examples/modules/csm/pages/ribs/index.adoc @@ -1,8 +1,14 @@ = Bracing with ribs :page-vtkjs: true +:page-viewer: true +:page-jupyter: true :uri-data: https://github.com/feelpp/toolbox/blob/master/examples/modules/csm/examples :uri-data-edit: https://github.com/feelpp/toolbox/edit/master/examples/modules/csm/examples - +:imagesprefix: +ifdef::env-github,env-browser,env-vscode[:imagesprefix: ../../assets/images/] +:jupyter-language-name: python +:jupyter-language-version: 3.8 +:url-ipywidgets: https://ipywidgets.readthedocs.io/en/stable/ == Introduction The ribs have stiffening effect. So the plates are supplied with different ribs. @@ -26,6 +32,8 @@ Copy case option to clipboard ++++ +NOTE: The report of the execution of the command above is available xref:t-beam/solid-informations.adoc[here]. + == Data files The case data files are available in Github link:{uri-data}/ribs/[here] @@ -40,7 +48,7 @@ The first step is to create the model of the plate, which we can simply do in th The finished geometry (Creo) and the meshed model (Gmsh): |==== -a| image:ribs/image2.png[] a| image:ribs/image4.png[] +a| image:{imagesprefix}ribs/image2.png[] a| image:{imagesprefix}ribs/image4.png[] |==== == Materials and boundary conditions @@ -74,7 +82,7 @@ include::{examplesdir}/ribs/disk.json[tags=boundaryconditions] Maximum displacement: 0.6501 mm Maximum stress: 512.4 MPa |==== -a| image:ribs/image5.png[] a| image:ribs/image6.png[] +a| image:{imagesprefix}ribs/image5.png[] a| image:{imagesprefix}ribs/image6.png[] |==== .3D Model without ribs. @@ -97,7 +105,7 @@ feelppVtkJs.createSceneImporter( vtkVisuSection1, { Maximum displacement: 0.528 mm Maximum stress: 599.1 MPa |==== -a| image:ribs/image7.png[] a| image:ribs/image8.png[] +a| image:{imagesprefix}ribs/image7.png[] a| image:{imagesprefix}ribs/image8.png[] |==== .3D Model with ribs. diff --git a/examples/modules/csm/pages/ribs/solid-information.adoc b/examples/modules/csm/pages/ribs/solid-information.adoc new file mode 100644 index 00000000..3aa68144 --- /dev/null +++ b/examples/modules/csm/pages/ribs/solid-information.adoc @@ -0,0 +1,505 @@ +:sectnums: += Toolbox : solid +== Environment + +[cols="2"] +|=== +<|prefix +<|solid + +<|keyword +<|solid + +<|root repository +<|/home/congo/feelppdb/toolboxes/solid/ribs/disk2/P1/np_1 + +<|number of processus +<|1 +|=== + +== Physics +=== solid +==== solid + +[cols="2"] +|=== +<|modeling +<|solid + +<|type +<|solid + +<|name +<|solid +|=== + + +[cols="2"] +|=== +<|Equation +<|Elasticity +|=== + + + + +== Physics2 + +[cols="2"] +|=== +<|time mode +<|Stationary +|=== + +== Materials Properties + +[cols="2"] +|=== +<|number of materials +<|1 +|=== + +=== Material : omega + +[cols="5",options="header"] +|=== +<|Name +<|Expression +<|Symbol +<|Shape +<|Components + +<|Lame-first-parameter +<|-(-1+2*materials_omega_nu)^(-1)*materials_omega_E*(1+materials_omega_nu)^(-1)*materials_omega_nu +<|materials_omega_lambdaLame +<|scalar +<| + +<|Lame-second-parameter +<|1/2*materials_omega_E*(1+materials_omega_nu)^(-1) +<|materials_omega_muLame +<|scalar +<| + +<|Poisson-ratio +<|0.4 +<|materials_omega_nu +<|scalar +<| + +<|Young-modulus +<|210000.0 +<|materials_omega_E +<|scalar +<| + +<|bulk-modulus +<|-1/3*(-1+2*materials_omega_nu)^(-1)*materials_omega_E +<|materials_omega_K +<|scalar +<| + +<|density +<|7.8E-6 +<|materials_omega_rho +<|scalar +<| +|=== + + +== Boundary Conditions +=== Displacement Imposed +==== fixed + +[cols="2"] +|=== +<|method +<|elimination + +<|expr +<|{0,0,0} + +<|markers +