From 1b4ce37c92fed1850d542660939911eb919e47a0 Mon Sep 17 00:00:00 2001 From: jobinhio <90212689+jobinhio@users.noreply.github.com> Date: Fri, 14 Oct 2022 11:31:42 +0200 Subject: [PATCH] update suspension #138 (#143) * update suspension #138 * add report from solid toolbox #136 * add imagesprefix support as described in #144 * add authors to metadata #145 * add imagesprefix support for #138 as described in #144 * add link to the simulation report and rename file --- .../csm/examples/suspension/suspension.cfg | 3 - .../csm/examples/suspension/suspension.json | 56 +- .../modules/csm/pages/suspension/index.adoc | 14 +- .../pages/suspension/solid-informations.adoc | 653 ++++++++++++++++++ 4 files changed, 705 insertions(+), 21 deletions(-) create mode 100644 examples/modules/csm/pages/suspension/solid-informations.adoc diff --git a/examples/modules/csm/examples/suspension/suspension.cfg b/examples/modules/csm/examples/suspension/suspension.cfg index 54a2875f..910e9c23 100644 --- a/examples/modules/csm/examples/suspension/suspension.cfg +++ b/examples/modules/csm/examples/suspension/suspension.cfg @@ -6,9 +6,6 @@ case.discretization=P2 #P1,P2 [solid] filename=$cfgdir/suspension.json -mesh.filename=girder:{file:5b1fd954b0e9570499f66bf1} -gmsh.partition=1 - material_law=StVenantKirchhoff# StVenantKirchhoff, NeoHookean # use density and material coeff cst in appli diff --git a/examples/modules/csm/examples/suspension/suspension.json b/examples/modules/csm/examples/suspension/suspension.json index 646461b3..5d595098 100644 --- a/examples/modules/csm/examples/suspension/suspension.json +++ b/examples/modules/csm/examples/suspension/suspension.json @@ -2,9 +2,24 @@ { "Name": "Solid Mechanics ", "ShortName":"Solid", + "Metadata": + { + "version": "1", + "author": ["vincentchabannes","prudhomm","lberti","jobinhio"], + "date": "23/09/2022", + "references":[""] + }, "Models": { - "equations":"Elasticity" + "solid": + { + "setup": + { + "equations":"Hyper-Elasticity", + "material-model":"StVenantKirchhoff" + } + + } }, "Parameters": { @@ -12,14 +27,26 @@ { "value":"5e1" }, - "omega": - { - "value":"2" - } + "omega": + { + "value":"2" + } + }, + "Meshes": + { + "solid": + { + "Import": + { + "filename":"girder:{file:5b1fd954b0e9570499f66bf1}", + "partition":"1" + } + } }, "Materials": { - "omega":{ + "omega": + { "E":"200e3", "nu":"0.3", "rho":"7870e-9" @@ -27,16 +54,16 @@ }, "BoundaryConditions": { - "displacement": + "solid": { - "Dirichlet": + "displacement": { "fixed": { "expr":"{0,0,0}" } }, - "Neumann_vectorial": + "normal_stress": { "load": { @@ -47,10 +74,13 @@ }, "PostProcess": { - "Exports": - { - "fields":["displacement"] - } + "solid": + { + "Exports": + { + "fields":["displacement"] + } + } } } diff --git a/examples/modules/csm/pages/suspension/index.adoc b/examples/modules/csm/pages/suspension/index.adoc index c7b1bba3..7a349dc1 100644 --- a/examples/modules/csm/pages/suspension/index.adoc +++ b/examples/modules/csm/pages/suspension/index.adoc @@ -2,6 +2,8 @@ :page-vtkjs: 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/] == Introduction @@ -11,7 +13,7 @@ Nowadays they are manufactured in many design, but the effect of the main loads [cols="40%,60%"] |==== -a| image:suspension/image1.jpeg[width=100%] a| image:suspension/image2.jpeg[] +a| image:{imagesprefix}suspension/image1.jpeg[width=100%] a| image:{imagesprefix}suspension/image2.jpeg[] |==== == Running the case @@ -33,6 +35,8 @@ Copy case option to clipboard ++++ +NOTE: The report of the execution of the command above is available xref:suspension/solid-informations.adoc[here]. + == Data files The case data files are available in Github link:{uri-data}/suspension/[here] @@ -63,8 +67,8 @@ The beam is made of steel, so we need to use the following data: IMPORTANT: The object is fixed at the ends of the holes. The holes in the middle have the force. -image:suspension/image5.png[width=357,height=188] -image:suspension/image6.png[1.png,width=209,height=188] +image:{imagesprefix}suspension/image5.png[width=357,height=188] +image:{imagesprefix}suspension/image6.png[1.png,width=209,height=188] == Results @@ -77,8 +81,8 @@ We display the displacement in the figures below. A 20x scale factor is used to The maximum displacement is 1.778 mm. The design of the wishbones is very good because there is only little displacement due to the force. |==== -a| image:suspension/image7.png[] a| image:suspension/image8.png[] a| image:suspension/image9.png[] -a| image:suspension/image10.png[] a| image:suspension/image11.png[] | +a| image:{imagesprefix}suspension/image7.png[] a| image:{imagesprefix}suspension/image8.png[] a| image:{imagesprefix}suspension/image9.png[] +a| image:{imagesprefix}suspension/image10.png[] a| image:{imagesprefix}suspension/image11.png[] | |==== .3D interactive model diff --git a/examples/modules/csm/pages/suspension/solid-informations.adoc b/examples/modules/csm/pages/suspension/solid-informations.adoc new file mode 100644 index 00000000..324d4928 --- /dev/null +++ b/examples/modules/csm/pages/suspension/solid-informations.adoc @@ -0,0 +1,653 @@ +:sectnums: += Toolbox : solid +== Environment + +[cols="2"] +|=== +<|prefix +<|solid + +<|keyword +<|solid + +<|root repository +<|/home/congo/feelppdb/toolboxes/solid/suspension/P2/np_1 + +<|number of processus +<|1 +|=== + +== Physics +=== solid +==== solid + +[cols="2"] +|=== +<|modeling +<|solid + +<|type +<|solid + +<|name +<|solid +|=== + + +[cols="2"] +|=== +<|Equation +<|Hyper-Elasticity +|=== + + + + +== Physics2 + +[cols="2"] +|=== +<|time mode +<|Transient +|=== + +== Materials Properties + +[cols="2"] +|=== +<|number of materials +<|1 +|=== + +=== Material : omega + +[cols="5",options="header"] +|=== +<|Name +<|Expression +<|Symbol +<|Shape +<|Components + +<|Lame-first-parameter +<|-(1+materials_omega_nu)^(-1)*materials_omega_E*(-1+2*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.3 +<|materials_omega_nu +<|scalar +<| + +<|Young-modulus +<|200000.0 +<|materials_omega_E +<|scalar +<| + +<|bulk-modulus +<|-1/3*(-1+2*materials_omega_nu)^(-1)*materials_omega_E +<|materials_omega_K +<|scalar +<| + +<|density +<|7.87E-6 +<|materials_omega_rho +<|scalar +<| +|=== + + +== Boundary Conditions +=== Displacement Imposed +==== fixed + +[cols="2"] +|=== +<|method +<|elimination + +<|expr +<|{0,0,0} + +<|markers +