FEM: elmer solver, code formating

This commit is contained in:
Bernd Hahnebach
2020-07-15 08:57:51 +02:00
committed by GitHub
parent d1701285f6
commit 7da0ff6490

View File

@@ -61,22 +61,39 @@ class Proxy(solverbase.Proxy):
def __init__(self, obj):
super(Proxy, self).__init__(obj)
obj.addProperty(
"App::PropertyInteger", "SteadyStateMaxIterations",
"Steady State", "")
obj.addProperty(
"App::PropertyInteger", "SteadyStateMinIterations",
"Steady State", "")
obj.addProperty(
"App::PropertyLink", "ElmerResult",
"Base", "", 4 | 8)
obj.addProperty(
"App::PropertyLink", "ElmerOutput",
"Base", "", 4 | 8)
obj.addProperty(
"App::PropertyInteger",
"SteadyStateMaxIterations",
"Steady State",
""
)
obj.SteadyStateMaxIterations = 1
obj.addProperty(
"App::PropertyInteger",
"SteadyStateMinIterations",
"Steady State",
""
)
obj.SteadyStateMinIterations = 0
obj.addProperty(
"App::PropertyLink",
"ElmerResult",
"Base",
"",
4 | 8
)
obj.addProperty(
"App::PropertyLink",
"ElmerOutput",
"Base",
"",
4 | 8
)
def createMachine(self, obj, directory, testmode=False):
return run.Machine(
solver=obj, directory=directory,