FEM: unit test, code improvements

This commit is contained in:
Bernd Hahnebach
2020-03-17 21:21:05 +01:00
parent 9066c02226
commit ecafc3da6c
9 changed files with 65 additions and 28 deletions

View File

@@ -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

View File

@@ -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):

View File

@@ -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

View File

@@ -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

View File

@@ -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):

View File

@@ -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):

View File

@@ -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

View File

@@ -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")

View File

@@ -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")