Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update spring #141 #142

Merged
merged 4 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/modules/csm/examples/spring/spring.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
44 changes: 32 additions & 12 deletions examples/modules/csm/examples/spring/spring.json
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -35,29 +59,25 @@
// 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"
}
}
}
},
// end::bc[]
// tag::export[]
"PostProcess":
{
"Exports":
"solid":
{
"fields":["displacement","pressure","pid","von-mises-criterion"]
"Exports":
{
"fields":["displacement","pressure","pid","von-mises-criterion"]
}
}
}
// end::export[]
Expand Down
9 changes: 6 additions & 3 deletions examples/modules/csm/pages/spring/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -25,6 +27,7 @@ Copy case option to clipboard
</button>
++++

NOTE: The report of the execution of the command above is available xref:spring/solid-informations.adoc[here].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

informations -> information (rename the adoc file)


== Data files

Expand All @@ -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]

Expand Down Expand Up @@ -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
Expand Down
Loading