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
|
||||
|
||||
Reference in New Issue
Block a user