FEM: Add offset property for CalculiX's shell section (#22385)
* FEM: Update element_geometry2D.py * FEM: Update write_femelement_geometry.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * FEM: Update ccx_cantilever_ele_quad4.inp * FEM: Update ccx_cantilever_ele_quad8.inp * FEM: Update ccx_cantilever_ele_tria3.inp * FEM: Update ccx_cantilever_ele_tria6.inp * FEM: Update constraint_contact_shell_shell.inp * FEM: Update material_multiple_bendingbeam_fivefaces.inp * FEM: Update square_pipe_end_twisted_edgeforces.inp * FEM: Update square_pipe_end_twisted_nodeforces.inp --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -114,7 +114,8 @@ def write_femelement_geometry(f, ccxwriter):
|
||||
elif "shellthickness_obj" in matgeoset: # shell mesh
|
||||
shellth_obj = matgeoset["shellthickness_obj"]
|
||||
if ccxwriter.solver_obj.ModelSpace == "3D":
|
||||
section_def = f"*SHELL SECTION, {elsetdef}{material}\n"
|
||||
offset = shellth_obj.Offset
|
||||
section_def = f"*SHELL SECTION, {elsetdef}{material}, OFFSET={offset:.13G}\n"
|
||||
else:
|
||||
section_def = f"*SOLID SECTION, {elsetdef}{material}\n"
|
||||
thickness = shellth_obj.Thickness.getValueAs("mm").Value
|
||||
|
||||
Reference in New Issue
Block a user