FEM: Python pep8 code formatting
This commit is contained in:
@@ -34,6 +34,7 @@ from . import linear
|
||||
|
||||
SOLVER_EXEC_METHODS = ["After Timestep", "Always"]
|
||||
|
||||
|
||||
def create(doc, name="Electricforce"):
|
||||
return femutils.createObject(
|
||||
doc, name, Proxy, ViewProxy)
|
||||
|
||||
@@ -37,6 +37,7 @@ from . import linear
|
||||
COEFFICIENTS = ["Heat Conductivity", "None"]
|
||||
VARIABLES = ["Potential", "Temperature"]
|
||||
|
||||
|
||||
def create(doc, name="Flux"):
|
||||
return femutils.createObject(
|
||||
doc, name, Proxy, ViewProxy)
|
||||
|
||||
@@ -136,7 +136,7 @@ class Proxy(equation.Proxy):
|
||||
"Steady State",
|
||||
""
|
||||
)
|
||||
|
||||
|
||||
obj.BiCGstablDegree = (2, 2, 10, 1)
|
||||
obj.IdrsParameter = (2, 1, 10, 1)
|
||||
obj.LinearDirectMethod = LINEAR_DIRECT
|
||||
|
||||
@@ -291,7 +291,7 @@ class Results(run.Results):
|
||||
else:
|
||||
self.report.error("Result file not found.")
|
||||
self.fail()
|
||||
else:
|
||||
else:
|
||||
if os.path.isfile(possible_post_file_single):
|
||||
postPath = possible_post_file_single
|
||||
elif os.path.isfile(possible_post_file_old):
|
||||
|
||||
@@ -835,7 +835,6 @@ class Writer(object):
|
||||
equation.FluxVariable = flux.VARIABLES
|
||||
equation.FluxVariable = tempFluxVariable
|
||||
|
||||
|
||||
def _handleElectricforce(self):
|
||||
activeIn = []
|
||||
for equation in self.solver.Group:
|
||||
@@ -1271,7 +1270,7 @@ class Writer(object):
|
||||
# don't evaluate fluid material
|
||||
if self._isBodyMaterialFluid(name):
|
||||
break
|
||||
if not "YoungsModulus" in m:
|
||||
if "YoungsModulus" not in m:
|
||||
Console.PrintMessage("m: {}\n".format(m))
|
||||
# it is no fluid but also no solid
|
||||
# -> user set no material reference at all
|
||||
@@ -1314,7 +1313,7 @@ class Writer(object):
|
||||
def _haveMaterialFluid(self):
|
||||
for obj in self._getMember("App::MaterialObject"):
|
||||
m = obj.Material
|
||||
# fluid material always has KinematicViscosity defined
|
||||
# fluid material always has KinematicViscosity defined
|
||||
if "KinematicViscosity" in m:
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user