FEM: pep8, more code formatting
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -26,8 +26,6 @@ __author__ = "Bernd Hahnebach"
|
||||
__url__ = "https://www.freecadweb.org"
|
||||
|
||||
|
||||
|
||||
|
||||
def write_femelement_matgeosets(f, ccxwriter):
|
||||
|
||||
# write mat_geo_sets to file
|
||||
|
||||
Reference in New Issue
Block a user