FEM: equation objects, add some comments for linear and nonlinear equation

This commit is contained in:
Bernd Hahnebach
2018-08-29 11:02:43 -03:00
committed by Yorik van Havre
parent ff716f3d45
commit d436630f5b
3 changed files with 12 additions and 1 deletions
@@ -29,6 +29,11 @@ __url__ = "http://www.freecadweb.org"
from . import equation
# the linear equation object defines some attributes for some various elmer equations
# these various elmer equations are based on the linear equation object
# thus in ObjectsFem module is no method to add a linear equation object
LINEAR_SOLVER = ["Direct", "Iterative"]
LINEAR_DIRECT = ["Banded", "umfpack"]
LINEAR_ITERATIVE = [
@@ -29,6 +29,11 @@ __url__ = "http://www.freecadweb.org"
from . import linear
# the linear equation object defines some attributes for some various elmer equations
# these various elmer equations are based on the linear equation object
# thus in ObjectsFem module is no method to add a linear equation object
class Proxy(linear.Proxy):
def __init__(self, obj):
+2 -1
View File
@@ -332,7 +332,8 @@ class FemTest(unittest.TestCase):
self.assertEqual('Fem::FemEquationElmerFluxsolver', typeOfObj(ObjectsFem.makeEquationFluxsolver(doc, solverelmer)))
self.assertEqual('Fem::FemEquationElmerHeat', typeOfObj(ObjectsFem.makeEquationHeat(doc, solverelmer)))
# is = 43 (just copy in empty file to test)
# TODO: equation linear missing, equation nonlinear missing, use different type for fluid and solid material
# TODO: vtk post objs
# TODO: use different type for fluid and solid material
def test_femobjects_isoftypenew(self):
doc = self.active_doc