Skip to content

Commit

Permalink
FEM: calcuix writer, fix circular beam section
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Aug 2, 2021
1 parent 15c04a3 commit ecff588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/femsolver/calculix/write_femelement_geometry.py
Expand Up @@ -51,9 +51,9 @@ def write_femelement_geometry(f, ccxwriter):
section_type
)
elif beamsec_obj.SectionType == "Circular":
radius = 0.5 * beamsec_obj.CircDiameter.getValueAs("mm").Value
diameter = beamsec_obj.CircDiameter.getValueAs("mm").Value
section_type = ", SECTION=CIRC"
section_geo = "{:.13G}\n".format(radius)
section_geo = "{:.13G}\n".format(diameter)
section_def = "*BEAM SECTION, {}{}{}\n".format(
elsetdef,
material,
Expand Down

0 comments on commit ecff588

Please sign in to comment.