Skip to content

Commit

Permalink
FEM: thermomech bimetall, add it to the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Feb 6, 2020
1 parent c21a015 commit 74ba3e7
Show file tree
Hide file tree
Showing 4 changed files with 4,813 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/CMakeLists.txt
Expand Up @@ -43,6 +43,7 @@ SET(FemExamples_SRCS
femexamples/material_multiple_twoboxes.py
femexamples/material_nl_platewithhole.py
femexamples/rc_wall_2d.py
femexamples/thermomech_bimetall.py
femexamples/thermomech_flow1d.py
femexamples/thermomech_spine.py
)
Expand All @@ -56,6 +57,7 @@ SET(FemExampleMeshes_SRCS
femexamples/meshes/mesh_contact_tube_tube_tria3.py
femexamples/meshes/mesh_rc_wall_2d_tria6.py
femexamples/meshes/mesh_platewithhole_tetra10.py
femexamples/meshes/mesh_thermomech_bimetall_tetra10.py
femexamples/meshes/mesh_thermomech_flow1d_seg3.py
femexamples/meshes/mesh_thermomech_spine_tetra10.py
)
Expand Down
17 changes: 17 additions & 0 deletions src/Mod/Fem/femexamples/manager.py
Expand Up @@ -38,6 +38,7 @@
doc = run_material_nl_platewithhole()
doc = run_material_multiple_twoboxes()
doc = run_rcwall2d()
doc = run_thermomech_bimetall()
doc = run_thermomech_flow1d()
doc = run_thermomech_spine()
Expand Down Expand Up @@ -249,6 +250,21 @@ def run_rcwall2d(solver=None, base_name=None):
return doc


def run_thermomech_bimetall(solver=None, base_name=None):

from .thermomech_bimetall import setup
doc = setup()

if base_name is None:
base_name = "Thermomech_Bimetall"
if solver is not None:
base_name += "_" + solver
run_analysis(doc, base_name)
doc.recompute()

return doc


def run_thermomech_flow1d(solver=None, base_name=None):

from .thermomech_flow1d import setup
Expand Down Expand Up @@ -290,5 +306,6 @@ def run_all():
run_material_nl_platewithhole()
run_material_multiple_twoboxes()
run_rcwall2d()
run_thermomech_bimetall()
run_thermomech_flow1d()
run_thermomech_spine()

0 comments on commit 74ba3e7

Please sign in to comment.