FEM: Python pep8 code formatting
This commit is contained in:
@@ -34,6 +34,7 @@ from ... import equationbase
|
||||
|
||||
CONVECTION_TYPE = ["None", "Computed", "Constant"]
|
||||
|
||||
|
||||
def create(doc, name="Flow"):
|
||||
return femutils.createObject(
|
||||
doc, name, Proxy, ViewProxy)
|
||||
|
||||
@@ -35,6 +35,7 @@ from ... import equationbase
|
||||
CONVECTION_TYPE = ["None", "Computed", "Constant"]
|
||||
PHASE_CHANGE_MODEL = ["None", "Spatial 1", "Spatial 2", "Temporal"]
|
||||
|
||||
|
||||
def create(doc, name="Heat"):
|
||||
return femutils.createObject(
|
||||
doc, name, Proxy, ViewProxy)
|
||||
@@ -67,7 +68,7 @@ class Proxy(nonlinear.Proxy, equationbase.HeatProxy):
|
||||
"Equation",
|
||||
"Model for phase change"
|
||||
)
|
||||
|
||||
|
||||
obj.Bubbles = True
|
||||
obj.Stabilize = False
|
||||
obj.Convection = CONVECTION_TYPE
|
||||
|
||||
@@ -1348,8 +1348,10 @@ class Writer(object):
|
||||
if self._hasExpression(equation) != equation.NonlinearTolerance:
|
||||
equation.setExpression("NonlinearTolerance", str(equation.NonlinearTolerance))
|
||||
if self._hasExpression(equation) != equation.NonlinearNewtonAfterTolerance:
|
||||
equation.setExpression("NonlinearNewtonAfterTolerance",\
|
||||
str(equation.NonlinearNewtonAfterTolerance))
|
||||
equation.setExpression(
|
||||
"NonlinearNewtonAfterTolerance",
|
||||
str(equation.NonlinearNewtonAfterTolerance)
|
||||
)
|
||||
|
||||
def _createNonlinearSolver(self, equation):
|
||||
# first check if we have to update
|
||||
|
||||
@@ -292,13 +292,13 @@ class FemInputWriterZ88(writerbase.FemInputWriter):
|
||||
MaxGS = prefs.GetInt("MaxGS", 100000000)
|
||||
MaxKOI = prefs.GetInt("MaxKOI", 2800000)
|
||||
global z88_dyn_template
|
||||
templateArray = z88_dyn_template.splitlines()
|
||||
template_array = z88_dyn_template.splitlines()
|
||||
output = ""
|
||||
for line in templateArray:
|
||||
for line in template_array:
|
||||
if line.find("MAXGS") > -1:
|
||||
line = " MAXGS " + str(MaxGS)
|
||||
line = " MAXGS {}".format(MaxGS)
|
||||
if line.find("MAXKOI") > -1:
|
||||
line = " MAXKOI " + str(MaxKOI)
|
||||
line = " MAXKOI {}".format(MaxKOI)
|
||||
output += line + "\n"
|
||||
|
||||
solver_parameter_file_path = self.file_name + ".dyn"
|
||||
|
||||
Reference in New Issue
Block a user