From 3bb565b76350f4af932acbb12fd123c6726e895d Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:35:34 +0100 Subject: [PATCH] Update write_mesh.py --- src/Mod/Fem/femsolver/calculix/write_mesh.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mod/Fem/femsolver/calculix/write_mesh.py b/src/Mod/Fem/femsolver/calculix/write_mesh.py index 380a5628b01d..2a941ae2e348 100644 --- a/src/Mod/Fem/femsolver/calculix/write_mesh.py +++ b/src/Mod/Fem/femsolver/calculix/write_mesh.py @@ -51,6 +51,10 @@ def write_mesh(ccxwriter): if ccxwriter.member.geos_fluidsection: meshtools.write_D_network_element_to_inputfile(ccxwriter.femmesh_file) + # Use reduced integration beam elements if this option is enabled in ccx solver settings + if ccxwriter.solver_obj.BeamReducedIntegration is True: + meshtools.beam_reduced_integration(ccxwriter.femmesh_file) + inpfile = codecs.open(ccxwriter.file_name, "w", encoding="utf-8") inpfile.write("{}\n".format(59 * "*")) inpfile.write("** {}\n".format(write_name)) @@ -69,6 +73,10 @@ def write_mesh(ccxwriter): # inpfile is closed meshtools.write_D_network_element_to_inputfile(ccxwriter.femmesh_file) + # Use reduced integration beam elements if this option is enabled in ccx solver settings + if ccxwriter.solver_obj.BeamReducedIntegration is True: + meshtools.beam_reduced_integration(ccxwriter.femmesh_file) + # reopen file with "append" to add all the rest inpfile = codecs.open(ccxwriter.femmesh_file, "a", encoding="utf-8") inpfile.write("\n\n")