FEM: unit test, code improvements
This commit is contained in:
@@ -19,17 +19,18 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Tools for FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
|
||||
import os
|
||||
import unittest
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import FreeCAD
|
||||
|
||||
from os.path import join
|
||||
|
||||
|
||||
|
||||
@@ -20,16 +20,20 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Ccxtools FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
from os.path import join
|
||||
|
||||
|
||||
import FreeCAD
|
||||
from femtools import ccxtools
|
||||
|
||||
from . import support_utils as testtools
|
||||
from .support_utils import fcc_print
|
||||
from femtools import ccxtools
|
||||
|
||||
|
||||
class TestCcxTools(unittest.TestCase):
|
||||
|
||||
@@ -19,12 +19,17 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Common FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
|
||||
import FreeCAD
|
||||
|
||||
import ObjectsFem
|
||||
import unittest
|
||||
from . import support_utils as testtools
|
||||
from .support_utils import fcc_print
|
||||
|
||||
|
||||
@@ -19,12 +19,16 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Import FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
|
||||
import FreeCAD
|
||||
|
||||
from .support_utils import fcc_print
|
||||
|
||||
|
||||
|
||||
@@ -19,14 +19,18 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Material FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
from os.path import join
|
||||
|
||||
import FreeCAD
|
||||
import unittest
|
||||
from .support_utils import fcc_print
|
||||
|
||||
from os.path import join
|
||||
from .support_utils import fcc_print
|
||||
|
||||
|
||||
class TestMaterialUnits(unittest.TestCase):
|
||||
|
||||
@@ -19,16 +19,21 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Mesh FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
from os.path import join
|
||||
|
||||
import FreeCAD
|
||||
|
||||
import Fem
|
||||
import FreeCAD
|
||||
import unittest
|
||||
from . import support_utils as testtools
|
||||
from .support_utils import fcc_print
|
||||
|
||||
from os.path import join
|
||||
|
||||
|
||||
class TestMeshCommon(unittest.TestCase):
|
||||
|
||||
@@ -19,13 +19,18 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Objects FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import FreeCAD
|
||||
|
||||
import ObjectsFem
|
||||
import unittest
|
||||
from . import support_utils as testtools
|
||||
from .support_utils import fcc_print
|
||||
|
||||
|
||||
@@ -19,16 +19,20 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Results FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
from os.path import join
|
||||
|
||||
import FreeCAD
|
||||
import unittest
|
||||
|
||||
from . import support_utils as testtools
|
||||
from .support_utils import fcc_print
|
||||
|
||||
from os.path import join
|
||||
|
||||
|
||||
class TestResult(unittest.TestCase):
|
||||
fcc_print("import TestResult")
|
||||
|
||||
@@ -19,17 +19,22 @@
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Sover frame work FEM unit tests"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
import unittest
|
||||
from os.path import join
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
|
||||
import femsolver.run
|
||||
import unittest
|
||||
import ObjectsFem
|
||||
from . import support_utils as testtools
|
||||
from .support_utils import fcc_print
|
||||
|
||||
from os.path import join
|
||||
|
||||
|
||||
class TestSolverFrameWork(unittest.TestCase):
|
||||
fcc_print("import TestSolverFrameWork")
|
||||
|
||||
Reference in New Issue
Block a user