FEM: examples, canti hexa20, delete wrongly added exaplanation object

This commit is contained in:
Bernd Hahnebach
2021-07-25 21:30:49 +02:00
parent dfbc20542a
commit a2413094f6

View File

@@ -69,10 +69,15 @@ 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())))
# setup cantilever faceload and exchange the mesh
# setup cantilever faceload
doc = setup_with_faceload(doc, solvertype)
femmesh_obj = doc.getObject(get_meshname())
# delete explanation object wrongly added with setup faceload
if hasattr(doc, "Explanation_Report001"):
doc.removeObject("Explanation_Report001")
doc.recompute()
# load the hexa20 mesh
from .meshes.mesh_canticcx_hexa20 import create_nodes, create_elements
new_fem_mesh = Fem.FemMesh()