Skip to content

Commit

Permalink
FEM: Update write_constraint_heatflux.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Apr 11, 2024
1 parent 3c67e9a commit 4ece666
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Mod/Fem/femsolver/calculix/write_constraint_heatflux.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ def write_meshdata_constraint(f, femobj, heatflux_obj, ccxwriter):
heatflux_obj.AmbientTemp,
heatflux_obj.FilmCoef * 0.001
)

elif heatflux_obj.ConstraintType == "Radiation":
heatflux_key_word = "RADIATE"
heatflux_facetype = "R"
heatflux_values = "{:.13G},{:.13G}".format(

Check warning on line 61 in src/Mod/Fem/femsolver/calculix/write_constraint_heatflux.py

View workflow job for this annotation

GitHub Actions / Lint / Lint

Formatting a regular string which could be an f-string (consider-using-f-string)
heatflux_obj.AmbientTemp,
heatflux_obj.Emissivity
)

elif heatflux_obj.ConstraintType == "DFlux":
heatflux_key_word = "DFLUX"
heatflux_facetype = "S"
Expand Down

0 comments on commit 4ece666

Please sign in to comment.