Merge pull request #20002 from marioalexis84/fem-static_current_elmer
Fem: Some changes in static current features
This commit is contained in:
@@ -32,8 +32,12 @@ Separator {
|
||||
|
||||
Separator {
|
||||
|
||||
Rotation {
|
||||
rotation 1 0 0 3.1415927
|
||||
|
||||
}
|
||||
Translation {
|
||||
translation 0 3.3333334 0
|
||||
translation 0 -0.66666669 0
|
||||
}
|
||||
Cone {
|
||||
bottomRadius 0.66666669
|
||||
|
||||
@@ -30,14 +30,14 @@ __url__ = "https://www.freecad.org"
|
||||
|
||||
from femtools import femutils
|
||||
from ... import equationbase
|
||||
from . import linear
|
||||
from . import nonlinear
|
||||
|
||||
|
||||
def create(doc, name="StaticCurrent"):
|
||||
return femutils.createObject(doc, name, Proxy, ViewProxy)
|
||||
|
||||
|
||||
class Proxy(linear.Proxy, equationbase.StaticCurrentProxy):
|
||||
class Proxy(nonlinear.Proxy, equationbase.StaticCurrentProxy):
|
||||
|
||||
Type = "Fem::EquationElmerStaticCurrent"
|
||||
|
||||
@@ -83,7 +83,7 @@ class Proxy(linear.Proxy, equationbase.StaticCurrentProxy):
|
||||
obj.addProperty("App::PropertyPower", "Power", "StaticCurrent", "Power control value")
|
||||
|
||||
|
||||
class ViewProxy(linear.ViewProxy, equationbase.StaticCurrentViewProxy):
|
||||
class ViewProxy(nonlinear.ViewProxy, equationbase.StaticCurrentViewProxy):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class SCwriter:
|
||||
|
||||
def getStaticCurrentSolver(self, equation):
|
||||
# output the equation parameters
|
||||
s = self.write.createLinearSolver(equation)
|
||||
s = self.write.createNonlinearSolver(equation)
|
||||
s["Equation"] = "Stat Current Solver"
|
||||
s["Procedure"] = sifio.FileAttr("StatCurrentSolve/StatCurrentSolver")
|
||||
s["Variable"] = self.write.getUniqueVarName("Potential")
|
||||
|
||||
Reference in New Issue
Block a user