From d3b503be905d50e39c0c63c46a1b150a176fa1a1 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 4 Aug 2021 15:48:13 +0200 Subject: [PATCH] FEM: calculix writer, femelement geometry, code formating --- .../femsolver/calculix/write_femelement_geometry.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Fem/femsolver/calculix/write_femelement_geometry.py b/src/Mod/Fem/femsolver/calculix/write_femelement_geometry.py index d2770a6a35..6d97e111fb 100644 --- a/src/Mod/Fem/femsolver/calculix/write_femelement_geometry.py +++ b/src/Mod/Fem/femsolver/calculix/write_femelement_geometry.py @@ -40,6 +40,11 @@ def write_femelement_geometry(f, ccxwriter): if "beamsection_obj"in matgeoset: # beam mesh beamsec_obj = matgeoset["beamsection_obj"] normal = matgeoset["beam_normal"] + section_nor = "{:.13G}, {:.13G}, {:.13G}\n".format( + normal[0], + normal[1], + normal[2] + ) if beamsec_obj.SectionType == "Rectangular": height = beamsec_obj.RectHeight.getValueAs("mm").Value width = beamsec_obj.RectWidth.getValueAs("mm").Value @@ -69,11 +74,6 @@ def write_femelement_geometry(f, ccxwriter): material, section_type ) - section_nor = "{:.13G}, {:.13G}, {:.13G}\n".format( - normal[0], - normal[1], - normal[2] - ) f.write(section_def) f.write(section_geo) f.write(section_nor) @@ -99,7 +99,7 @@ def write_femelement_geometry(f, ccxwriter): """ f.write(section_def) f.write(section_geo) - elif "shellthickness_obj"in matgeoset: # shell mesh + elif "shellthickness_obj" in matgeoset: # shell mesh shellth_obj = matgeoset["shellthickness_obj"] section_def = "*SHELL SECTION, {}{}\n".format(elsetdef, material) thickness = shellth_obj.Thickness.getValueAs("mm").Value