FEM: unit tests, add calculix test for ccx_cantilever_selfweight example

This commit is contained in:
Sudhanshu Dubey
2020-07-12 03:04:56 +05:30
committed by Bernd Hahnebach
parent ca0f9b44d4
commit 0a43abcf0f
4 changed files with 2247 additions and 0 deletions

View File

@@ -245,6 +245,7 @@ SET(FemTestsCcx_SRCS
femtest/data/calculix/constraint_contact_solid_solid.FCStd
femtest/data/calculix/constraint_contact_solid_solid.inp
femtest/data/calculix/constraint_sectionprint.inp
femtest/data/calculix/constraint_selfweight_cantilever.inp
femtest/data/calculix/constraint_tie.inp
femtest/data/calculix/material_multiple_bendingbeam_fiveboxes.inp
femtest/data/calculix/material_multiple_bendingbeam_fivefaces.inp

View File

@@ -154,6 +154,14 @@ class TestSolverCalculix(unittest.TestCase):
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))
# ********************************************************************************************
def test_constraint_selfweight_cantilever(
self
):
from femexamples.constraint_selfweight_cantilever import setup
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))
# ********************************************************************************************
def test_constraint_tie(
self

File diff suppressed because it is too large Load Diff

View File

@@ -84,6 +84,7 @@ make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalc
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_contact_shell_shell
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_contact_solid_solid
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_sectionprint
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_selfweight_cantilever
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_tie
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_material_multiple_bendingbeam_fiveboxes
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_solver_calculix.TestSolverCalculix.test_material_multiple_bendingbeam_fivefaces
@@ -327,6 +328,11 @@ unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName(
'femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_sectionprint'
))
import unittest
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName(
'femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_selfweight_cantilever'
))
import unittest
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName(
'femtest.app.test_solver_calculix.TestSolverCalculix.test_constraint_tie'