From d31f7d785561bf06f9379d8f17ddb60b7af5126a Mon Sep 17 00:00:00 2001 From: Congo Date: Thu, 13 Oct 2022 10:21:58 +0200 Subject: [PATCH 1/4] update spring #141 --- .../modules/csm/examples/spring/spring.cfg | 2 +- .../modules/csm/examples/spring/spring.json | 33 ++++++++++++++++--- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/examples/modules/csm/examples/spring/spring.cfg b/examples/modules/csm/examples/spring/spring.cfg index 826039d1..aed2b3ef 100644 --- a/examples/modules/csm/examples/spring/spring.cfg +++ b/examples/modules/csm/examples/spring/spring.cfg @@ -2,7 +2,7 @@ fe-approximation=P1 #P1,P2 directory=toolboxes/solid/spring/ [solid] -filename=$cfgdir/spring.json +json.filename=$cfgdir/spring.json mesh.filename=girder:{file:5b03dfcbb0e957402704806d} 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..4399bde8 100644 --- a/examples/modules/csm/examples/spring/spring.json +++ b/examples/modules/csm/examples/spring/spring.json @@ -2,9 +2,29 @@ { "Name": "Solid Mechanics ", "ShortName":"Solid", + "Metadata": + { + "version": "1", + "author": [""], + "date": "23/09/2022", + "references":[""] + }, "Models": { - "equations":"Elasticity" // "Elasticity", "Hyper-Elasticity" + "solid": + { + "equations":"Elasticity" // "Elasticity", "Hyper-Elasticity" + } + }, + "Meshes": + { + "solid": + { + "Import": + { + "filename":"girder:{file:5b03dfcbb0e957402704806d}" + } + } }, // tag::materials[] "Materials": @@ -35,9 +55,9 @@ // 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 @@ -55,9 +75,12 @@ // tag::export[] "PostProcess": { - "Exports": + "solid": { - "fields":["displacement","pressure","pid","von-mises-criterion"] + "Exports": + { + "fields":["displacement","pressure","pid","von-mises-criterion"] + } } } // end::export[] From f6413d8dbda938b52e3d8c4bef9e48809a25e27d Mon Sep 17 00:00:00 2001 From: Congo Date: Fri, 14 Oct 2022 10:50:28 +0200 Subject: [PATCH 2/4] update string #141 and add authors' names #145 --- examples/modules/csm/examples/spring/spring.cfg | 1 - examples/modules/csm/examples/spring/spring.json | 15 ++++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/examples/modules/csm/examples/spring/spring.cfg b/examples/modules/csm/examples/spring/spring.cfg index aed2b3ef..fab7e113 100644 --- a/examples/modules/csm/examples/spring/spring.cfg +++ b/examples/modules/csm/examples/spring/spring.cfg @@ -3,7 +3,6 @@ directory=toolboxes/solid/spring/ [solid] json.filename=$cfgdir/spring.json -mesh.filename=girder:{file:5b03dfcbb0e957402704806d} 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 4399bde8..8aacc7f2 100644 --- a/examples/modules/csm/examples/spring/spring.json +++ b/examples/modules/csm/examples/spring/spring.json @@ -5,7 +5,7 @@ "Metadata": { "version": "1", - "author": [""], + "author": ["vincentchabannes","prudhomm","lberti","jobinhio"], "date": "23/09/2022", "references":[""] }, @@ -13,7 +13,11 @@ { "solid": { - "equations":"Elasticity" // "Elasticity", "Hyper-Elasticity" + "setup": + { + "equations":"Elasticity", // "Elasticity", "Hyper-Elasticity" + "body-forces":"{0,0,-gravity*7850}:gravity" + } } }, "Meshes": @@ -61,13 +65,6 @@ { "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" - } } } }, From 55d9146c633772b48b584a81761ceb0b728829d7 Mon Sep 17 00:00:00 2001 From: Congo Date: Fri, 14 Oct 2022 11:18:04 +0200 Subject: [PATCH 3/4] add imagesprefix support for #141 as described in #144 --- examples/modules/csm/pages/spring/README.adoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 From 77fee011222bbbf24d9bc109056cf9e0a99a86fd Mon Sep 17 00:00:00 2001 From: Congo Date: Fri, 14 Oct 2022 11:19:03 +0200 Subject: [PATCH 4/4] add report from solid toolbox #136 --- .../csm/pages/spring/solid-informations.adoc | 547 ++++++++++++++++++ 1 file changed, 547 insertions(+) create mode 100644 examples/modules/csm/pages/spring/solid-informations.adoc 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] +