FEM: equation objects, add some comments for linear and nonlinear equation
This commit is contained in:
committed by
Yorik van Havre
parent
1aff8c43f9
commit
4db7eaa7a8
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user