Fem: Improve constraint section print (#14046)

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
marioalexis84
2024-05-20 13:00:48 -03:00
committed by GitHub
parent a73d081a46
commit 33e4a5baed
7 changed files with 114 additions and 15 deletions

View File

@@ -64,8 +64,16 @@ def write_constraint(f, femobj, sectionprint_obj, ccxwriter):
# floats read from ccx should use {:.13G}, see comment in writer module
variable = sectionprint_obj.Variable
if variable == "Section Force":
key = "SOF, SOM, SOAREA"
elif variable == "Heat Flux":
key = "FLUX"
elif variable == "Drag Stress":
key = "DRAG"
f.write(
"*SECTION PRINT, SURFACE=SECTIONFACE{}, NAME=SECTIONPRINT{}\n"
.format(sectionprint_obj.Name, sectionprint_obj.Name)
)
f.write("SOF, SOM, SOAREA\n")
f.write(key + "\n")