diff --git a/examples/modules/csm/examples/spring/spring.cfg b/examples/modules/csm/examples/spring/spring.cfg index 826039d1..fab7e113 100644 --- a/examples/modules/csm/examples/spring/spring.cfg +++ b/examples/modules/csm/examples/spring/spring.cfg @@ -2,8 +2,7 @@ fe-approximation=P1 #P1,P2 directory=toolboxes/solid/spring/ [solid] -filename=$cfgdir/spring.json -mesh.filename=girder:{file:5b03dfcbb0e957402704806d} +json.filename=$cfgdir/spring.json mesh.scale=1e-2 gmsh.partition=1 diff --git a/examples/modules/csm/examples/spring/spring.json b/examples/modules/csm/examples/spring/spring.json index 3a3d6b99..8aacc7f2 100644 --- a/examples/modules/csm/examples/spring/spring.json +++ b/examples/modules/csm/examples/spring/spring.json @@ -2,9 +2,33 @@ { "Name": "Solid Mechanics ", "ShortName":"Solid", + "Metadata": + { + "version": "1", + "author": ["vincentchabannes","prudhomm","lberti","jobinhio"], + "date": "23/09/2022", + "references":[""] + }, "Models": { - "equations":"Elasticity" // "Elasticity", "Hyper-Elasticity" + "solid": + { + "setup": + { + "equations":"Elasticity", // "Elasticity", "Hyper-Elasticity" + "body-forces":"{0,0,-gravity*7850}:gravity" + } + } + }, + "Meshes": + { + "solid": + { + "Import": + { + "filename":"girder:{file:5b03dfcbb0e957402704806d}" + } + } }, // tag::materials[] "Materials": @@ -35,19 +59,12 @@ // tag::bc[] "BoundaryConditions": { - "displacement": + "solid": { - "Dirichlet": + "displacement": { "markerBottom":{ "expr":"{0,0,-dispImposed}:dispImposed" }, // imposed displacement -> pulled down end of the spring "markerTop":{ "expr":"{0,0,0}" } // imposed displacement (zero) -> fixed end of the spring - }, - "VolumicForces": - { - "lumenVolume": - { - "expr":"{0,0,-gravity*7850}:gravity" - } } } }, @@ -55,9 +72,12 @@ // tag::export[] "PostProcess": { - "Exports": + "solid": { - "fields":["displacement","pressure","pid","von-mises-criterion"] + "Exports": + { + "fields":["displacement","pressure","pid","von-mises-criterion"] + } } } // end::export[] diff --git a/examples/modules/csm/pages/spring/README.adoc b/examples/modules/csm/pages/spring/README.adoc index 890e5160..2c64ef38 100644 --- a/examples/modules/csm/pages/spring/README.adoc +++ b/examples/modules/csm/pages/spring/README.adoc @@ -3,6 +3,8 @@ :toc: left :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/] == Description @@ -25,6 +27,7 @@ Copy case option to clipboard ++++ +NOTE: The report of the execution of the command above is available xref:spring/solid-informations.adoc[here]. == Data files @@ -40,7 +43,7 @@ The geometry consists of a 7-turn coil spring. The spring is 4.5cm long and its radius is 1cm. The wire's radius is 1mm. -image:spring/spring_mesh.png[50%] +image:{imagesprefix}spring/spring_mesh.png[50%] The mesh is available on link:https://girder.math.unistra.fr/api/v1/file/5b03dfcbb0e957402704806d/download[Girder] @@ -120,8 +123,8 @@ include::{examplesdir}/spring/spring.json[tags=export] In the following pictures, displacement is expressed in stem:[m]. The von Mises yield criterion in dimensionless. -image:spring/spring_displacement.png[50%] -image:spring/spring_von_mises.png[50%] +image:{imagesprefix}spring/spring_displacement.png[50%] +image:{imagesprefix}spring/spring_von_mises.png[50%] === 3D viewer diff --git a/examples/modules/csm/pages/spring/solid-informations.adoc b/examples/modules/csm/pages/spring/solid-informations.adoc new file mode 100644 index 00000000..69f1e036 --- /dev/null +++ b/examples/modules/csm/pages/spring/solid-informations.adoc @@ -0,0 +1,547 @@ +:sectnums: += Toolbox : solid +== Environment + +[cols="2"] +|=== +<|prefix +<|solid + +<|keyword +<|solid + +<|root repository +<|/home/congo/feelppdb/toolboxes/solid/spring/np_1 + +<|number of processus +<|1 +|=== + +== Physics +=== solid +==== solid + +[cols="2"] +|=== +<|modeling +<|solid + +<|type +<|solid + +<|name +<|solid +|=== + + +[cols="2"] +|=== +<|Equation +<|Elasticity +|=== + +===== Body Forces + +[cols="2"] +|=== +<|name +<|bodyforce0 + +<|expr +<|{0,0,-7850*gravity} +|=== + + +===== Parameters + +[cols="5",options="header"] +|=== +<|Name +<|Expression +<|Symbol +<|Shape +<|Components + +<|bodyforce0_bodyforce +<|{0,0,-7850*gravity} +<|physics_solid_solid_bodyforce0_bodyforce +<|vectorial [3] +