Skip to content

Commit

Permalink
FEM: ccx writer, changes in element sections
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrahimraeyat authored and berndhahnebach committed Jun 3, 2020
1 parent 21cbceb commit 63bdb75
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions src/Mod/Fem/femsolver/calculix/writer.py
Expand Up @@ -1733,13 +1733,6 @@ def write_femelementsets(self, f):
material,
section_type
)
# see forum topic for output formating of rotation
# https://forum.freecadweb.org/viewtopic.php?f=18&t=46133&p=405142#p405142
section_nor = "{:f}, {:f}, {:f}\n".format(
normal[0],
normal[1],
normal[2]
)
elif beamsec_obj.SectionType == "Circular":
radius = 0.5 * beamsec_obj.CircDiameter.getValueAs("mm")
section_type = ", SECTION=CIRC"
Expand All @@ -1749,11 +1742,6 @@ def write_femelementsets(self, f):
material,
section_type
)
section_nor = "{:f}, {:f}, {:f}\n".format(
normal[0],
normal[1],
normal[2]
)
elif beamsec_obj.SectionType == "Pipe":
radius = 0.5 * beamsec_obj.PipeDiameter.getValueAs("mm")
thickness = beamsec_obj.PipeThickness.getValueAs("mm")
Expand All @@ -1764,11 +1752,13 @@ def write_femelementsets(self, f):
material,
section_type
)
section_nor = "{:f}, {:f}, {:f}\n".format(
normal[0],
normal[1],
normal[2]
)
# see forum topic for output formatting of rotation
# https://forum.freecadweb.org/viewtopic.php?f=18&t=46133&p=405142#p405142
section_nor = "{:f}, {:f}, {:f}\n".format(
normal[0],
normal[1],
normal[2]
)
f.write(section_def)
f.write(section_geo)
f.write(section_nor)
Expand Down Expand Up @@ -1810,7 +1800,6 @@ def write_femelementsets(self, f):
section_def = "*SOLID SECTION, " + elsetdef + material + "\n"
f.write(section_def)


# ************************************************************************************************
# Helpers
# ccx elset names:
Expand Down

0 comments on commit 63bdb75

Please sign in to comment.