Skip to content

Commit

Permalink
Update write_mesh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Feb 14, 2024
1 parent 8e5b9cd commit 0fdf772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/femsolver/calculix/write_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def write_mesh(ccxwriter):
meshtools.write_D_network_element_to_inputfile(ccxwriter.femmesh_file)

# Check to see if pipe beam sections are in analysis and use B32R element type
if ccxwriter.beamsec_obj.SectionType == "Pipe":
if ccxwriter.member.geos_beamsection_obj.SectionType == "Pipe":
meshtools.use_B32R_for_pipe_section(ccxwriter.femmesh_file)

inpfile = codecs.open(ccxwriter.file_name, "w", encoding="utf-8")
Expand All @@ -74,7 +74,7 @@ def write_mesh(ccxwriter):
meshtools.write_D_network_element_to_inputfile(ccxwriter.femmesh_file)

# Check to see if pipe beam sections are in analysis and use B32R element type
if ccxwriter.beamsec_obj.SectionType == "Pipe":
if ccxwriter.member.geos_beamsection_obj.SectionType == "Pipe":
meshtools.use_B32R_for_pipe_section(ccxwriter.femmesh_file)

# reopen file with "append" to add all the rest
Expand Down

0 comments on commit 0fdf772

Please sign in to comment.