FEM: elmer equation objects, better type checking

This commit is contained in:
Bernd Hahnebach
2020-03-02 20:48:46 +01:00
parent 5a5753af8d
commit aa5b050784
7 changed files with 25 additions and 25 deletions

View File

@@ -38,7 +38,7 @@ def create(doc, name="Elasticity"):
class Proxy(linear.Proxy, equationbase.ElasticityProxy):
Type = "Fem::FemEquationElmerElasticity"
Type = "Fem::EquationElmerElasticity"
def __init__(self, obj):
super(Proxy, self).__init__(obj)

View File

@@ -38,7 +38,7 @@ def create(doc, name="Electrostatic"):
class Proxy(linear.Proxy, equationbase.ElectrostaticProxy):
Type = "Fem::FemEquationElmerElectrostatic"
Type = "Fem::EquationElmerElectrostatic"
def __init__(self, obj):
super(Proxy, self).__init__(obj)

View File

@@ -38,7 +38,7 @@ def create(doc, name="Flow"):
class Proxy(nonlinear.Proxy, equationbase.FlowProxy):
Type = "Fem::FemEquationElmerFlow"
Type = "Fem::EquationElmerFlow"
def __init__(self, obj):
super(Proxy, self).__init__(obj)

View File

@@ -38,7 +38,7 @@ def create(doc, name="Fluxsolver"):
class Proxy(linear.Proxy, equationbase.FluxsolverProxy):
Type = "Fem::FemEquationElmerFluxsolver"
Type = "Fem::EquationElmerFluxsolver"
def __init__(self, obj):
super(Proxy, self).__init__(obj)

View File

@@ -38,7 +38,7 @@ def create(doc, name="Heat"):
class Proxy(nonlinear.Proxy, equationbase.HeatProxy):
Type = "Fem::FemEquationElmerHeat"
Type = "Fem::EquationElmerHeat"
def __init__(self, obj):
super(Proxy, self).__init__(obj)

View File

@@ -201,7 +201,7 @@ class Writer(object):
def _handleHeat(self):
activeIn = []
for equation in self.solver.Group:
if femutils.is_of_type(equation, "Fem::FemEquationElmerHeat"):
if femutils.is_of_type(equation, "Fem::EquationElmerHeat"):
if equation.References:
activeIn = equation.References[0][1]
else:
@@ -302,7 +302,7 @@ class Writer(object):
def _handleElectrostatic(self):
activeIn = []
for equation in self.solver.Group:
if femutils.is_of_type(equation, "Fem::FemEquationElmerElectrostatic"):
if femutils.is_of_type(equation, "Fem::EquationElmerElectrostatic"):
if equation.References:
activeIn = equation.References[0][1]
else:
@@ -374,7 +374,7 @@ class Writer(object):
def _handleFluxsolver(self):
activeIn = []
for equation in self.solver.Group:
if femutils.is_of_type(equation, "Fem::FemEquationElmerFluxsolver"):
if femutils.is_of_type(equation, "Fem::EquationElmerFluxsolver"):
if equation.References:
activeIn = equation.References[0][1]
else:
@@ -395,7 +395,7 @@ class Writer(object):
def _handleElasticity(self):
activeIn = []
for equation in self.solver.Group:
if femutils.is_of_type(equation, "Fem::FemEquationElmerElasticity"):
if femutils.is_of_type(equation, "Fem::EquationElmerElasticity"):
if equation.References:
activeIn = equation.References[0][1]
else:
@@ -555,7 +555,7 @@ class Writer(object):
def _handleFlow(self):
activeIn = []
for equation in self.solver.Group:
if femutils.is_of_type(equation, "Fem::FemEquationElmerFlow"):
if femutils.is_of_type(equation, "Fem::EquationElmerFlow"):
if equation.References:
activeIn = equation.References[0][1]
else: