FEM: pep8, more code formatting

This commit is contained in:
Bernd Hahnebach
2023-04-04 00:14:28 +02:00
committed by wwmayer
parent f3cb55ef30
commit 688fe0d2fb
16 changed files with 44 additions and 42 deletions

View File

@@ -25,7 +25,7 @@ __title__ = "FreeCAD FEM calculix constraint initialtemperature"
__author__ = "Bernd Hahnebach"
__url__ = "https://www.freecadweb.org"
import FreeCAD
from FreeCAD import Units
def get_analysis_types():
@@ -48,12 +48,10 @@ def write_constraint(f, femobj, inittemp_obj, ccxwriter):
# floats read from ccx should use {:.13G}, see comment in writer module
f.write(
"{},{}\n".format(
ccxwriter.ccx_nall,
FreeCAD.Units.Quantity(inittemp_obj.initialTemperature.getValueAs("K"))
)
)
f.write("{},{}\n".format(
ccxwriter.ccx_nall,
Units.Quantity(inittemp_obj.initialTemperature.getValueAs("K"))
))
# Should only be one object in the analysis

View File

@@ -26,8 +26,6 @@ __author__ = "Bernd Hahnebach"
__url__ = "https://www.freecadweb.org"
def write_femelement_matgeosets(f, ccxwriter):
# write mat_geo_sets to file