FEM: add contact solid solid unit test
This commit is contained in:
@@ -167,6 +167,8 @@ SET(FemTestsCcx_SRCS
|
||||
femtest/data/ccx/__init__.py
|
||||
femtest/data/ccx/contact_shell_shell.FCStd
|
||||
femtest/data/ccx/contact_shell_shell.inp
|
||||
femtest/data/ccx/constraint_contact_solid_solid.FCStd
|
||||
femtest/data/ccx/constraint_contact_solid_solid.inp
|
||||
femtest/data/ccx/cube_frequency.inp
|
||||
femtest/data/ccx/cube_frequency.dat
|
||||
femtest/data/ccx/cube_frequency.frd
|
||||
|
||||
@@ -126,6 +126,7 @@ gf()
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_freq_analysis"
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_analysis"
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_contact_shell_shell"
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_contact_solid_solid"
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_material_multiple"
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_material_nonlinar"
|
||||
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_thermomech_flow1D_analysis"
|
||||
@@ -173,6 +174,9 @@ unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.a
|
||||
import unittest
|
||||
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.app.test_ccxtools.TestCcxTools.test_static_contact_shell_shell"))
|
||||
|
||||
import unittest
|
||||
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.app.test_ccxtools.TestCcxTools.test_constraint_static_contact_solid_solid"))
|
||||
|
||||
import unittest
|
||||
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.app.test_ccxtools.TestCcxTools.test_static_material_multiple"))
|
||||
|
||||
|
||||
@@ -154,6 +154,27 @@ class TestCcxTools(unittest.TestCase):
|
||||
analysis_dir=analysis_dir,
|
||||
)
|
||||
|
||||
# ********************************************************************************************
|
||||
def test_static_constraint_contact_solid_solid(
|
||||
self
|
||||
):
|
||||
# set up
|
||||
from femexamples.constraint_contact_solid_solid import setup
|
||||
setup(self.active_doc, "ccxtools")
|
||||
test_name = "constraint contact solid solid"
|
||||
base_name = "constraint_contact_solid_solid"
|
||||
analysis_dir = testtools.get_unit_test_tmp_dir(
|
||||
self.temp_dir,
|
||||
"FEM_ccx_constraint_contact_solid_solid",
|
||||
)
|
||||
|
||||
# test input file writing
|
||||
self.input_file_writing_test(
|
||||
test_name=test_name,
|
||||
base_name=base_name,
|
||||
analysis_dir=analysis_dir,
|
||||
)
|
||||
|
||||
# ********************************************************************************************
|
||||
def test_static_material_multiple(
|
||||
self
|
||||
|
||||
Binary file not shown.
5374
src/Mod/Fem/femtest/data/ccx/constraint_contact_solid_solid.inp
Normal file
5374
src/Mod/Fem/femtest/data/ccx/constraint_contact_solid_solid.inp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user