FEM: examples, small improvements

This commit is contained in:
Bernd Hahnebach
2021-07-29 22:23:16 +02:00
parent 0816e30cba
commit 83723fef44
3 changed files with 7 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ def get_information():
"meshtype": "solid",
"meshelement": "Hexa20",
"constraints": ["fixed", "force"],
"solvers": ["calculix", "z88", "elmer"],
"solvers": ["calculix", "elmer", "z88"],
"material": "solid",
"equation": "mechanical"
}

View File

@@ -67,6 +67,11 @@ def setup(doc=None, solvertype="ccxtools"):
# just keep the following line and change text string in get_explanation method
manager.add_explanation_obj(doc, get_explanation(manager.get_header(get_information())))
# delete explanation object wrongly added with setup faceload
if hasattr(doc, "Explanation_Report001"):
doc.removeObject("Explanation_Report001")
doc.recompute()
# setup cantilever faceload and exchange the mesh
doc = setup_with_faceload(doc, solvertype)
femmesh_obj = doc.getObject(get_meshname())

View File

@@ -35,7 +35,7 @@ def get_information():
"meshtype": "solid",
"meshelement": "Tet10",
"constraints": ["fixed", "force"],
"solvers": ["calculix", "z88", "elmer"],
"solvers": ["calculix", "elmer", "z88"],
"material": "solid",
"equation": "mechanical"
}