FEM: Python pep8 code formatting

This commit is contained in:
Bernd Hahnebach
2022-08-06 22:25:37 +02:00
parent f39330163d
commit 3369aa4eca
4 changed files with 11 additions and 7 deletions

View File

@@ -34,6 +34,7 @@ from ... import equationbase
CONVECTION_TYPE = ["None", "Computed", "Constant"]
def create(doc, name="Flow"):
return femutils.createObject(
doc, name, Proxy, ViewProxy)

View File

@@ -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

View File

@@ -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