Skip to content

Commit 8ed98ab

Browse files
committed
Fem: Add nonlinear options to static current solver
1 parent 613b29a commit 8ed98ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Mod/Fem/femsolver/elmer/equations/staticcurrent.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030

3131
from femtools import femutils
3232
from ... import equationbase
33-
from . import linear
33+
from . import nonlinear
3434

3535

3636
def create(doc, name="StaticCurrent"):
3737
return femutils.createObject(doc, name, Proxy, ViewProxy)
3838

3939

40-
class Proxy(linear.Proxy, equationbase.StaticCurrentProxy):
40+
class Proxy(nonlinear.Proxy, equationbase.StaticCurrentProxy):
4141

4242
Type = "Fem::EquationElmerStaticCurrent"
4343

@@ -83,7 +83,7 @@ def __init__(self, obj):
8383
obj.addProperty("App::PropertyPower", "Power", "StaticCurrent", "Power control value")
8484

8585

86-
class ViewProxy(linear.ViewProxy, equationbase.StaticCurrentViewProxy):
86+
class ViewProxy(nonlinear.ViewProxy, equationbase.StaticCurrentViewProxy):
8787
pass
8888

8989

src/Mod/Fem/femsolver/elmer/equations/staticcurrent_writer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, writer, solver):
4040

4141
def getStaticCurrentSolver(self, equation):
4242
# output the equation parameters
43-
s = self.write.createLinearSolver(equation)
43+
s = self.write.createNonlinearSolver(equation)
4444
s["Equation"] = "Stat Current Solver"
4545
s["Procedure"] = sifio.FileAttr("StatCurrentSolve/StatCurrentSolver")
4646
s["Variable"] = self.write.getUniqueVarName("Potential")

0 commit comments

Comments
 (0)