FEM: Add support for CalculiX truss elements (#23224)

* FEM: Update element_geometry1D.py

* FEM: Update write_femelement_geometry.py

* FEM: Update write_mesh.py

* FEM: Update solver.py

* FEM: Update solver_calculix.py

* FEM: Update element_geometry1D.py
This commit is contained in:
FEA-eng
2025-09-01 17:37:44 +02:00
committed by GitHub
parent a5751e5a3b
commit 0a392c2a3f
5 changed files with 72 additions and 53 deletions

View File

@@ -175,7 +175,16 @@ class ElementGeometry1D(base_femelement.BaseFemElement):
value=["Rectangular", "Circular", "Pipe", "Elliptical", "Box"],
)
)
prop.append(
_PropHelper(
type="App::PropertyArea",
name="TrussArea",
group="TrussSection",
doc="Set cross-sectional area of truss elements\n"
+ "(used if bending stiffness is excluded in the solver)",
value=10.0,
)
)
return prop
def onDocumentRestored(self, obj):

View File

@@ -326,7 +326,7 @@ class SolverCalculiX(base_fempythonobject.BaseFemPythonObject):
type="App::PropertyBool",
name="ExcludeBendingStiffness",
group="Solver",
doc="Exclude bending stiffness to replace shells with membranes",
doc="Exclude bending stiffness to replace shells with membranes or beams with trusses",
value=False,
)
)