FEM: ccx constraint section print, add unit test
This commit is contained in:
@@ -220,6 +220,7 @@ SET(FemTestsCcx_SRCS
|
||||
femtest/data/ccx/constraint_contact_shell_shell.inp
|
||||
femtest/data/ccx/constraint_contact_solid_solid.FCStd
|
||||
femtest/data/ccx/constraint_contact_solid_solid.inp
|
||||
femtest/data/ccx/constraint_sectionprint.inp
|
||||
femtest/data/ccx/constraint_tie.inp
|
||||
femtest/data/ccx/cube_frequency.inp
|
||||
femtest/data/ccx/cube_frequency.dat
|
||||
|
||||
@@ -210,6 +210,27 @@ class TestCcxTools(unittest.TestCase):
|
||||
analysis_dir=analysis_dir,
|
||||
)
|
||||
|
||||
# ********************************************************************************************
|
||||
def test_static_constraint_sectionprint(
|
||||
self
|
||||
):
|
||||
# set up
|
||||
from femexamples.constraint_section_print import setup
|
||||
setup(self.document, "ccxtools")
|
||||
test_name = "constraint sectionprint"
|
||||
base_name = "constraint_sectionprint"
|
||||
analysis_dir = testtools.get_unit_test_tmp_dir(
|
||||
self.temp_dir,
|
||||
"FEM_ccx_constraint_sectionprint",
|
||||
)
|
||||
|
||||
# test input file writing
|
||||
self.input_file_writing_test(
|
||||
test_name=test_name,
|
||||
base_name=base_name,
|
||||
analysis_dir=analysis_dir,
|
||||
)
|
||||
|
||||
# ********************************************************************************************
|
||||
def test_static_constraint_tie(
|
||||
self
|
||||
|
||||
3488
src/Mod/Fem/femtest/data/ccx/constraint_sectionprint.inp
Normal file
3488
src/Mod/Fem/femtest/data/ccx/constraint_sectionprint.inp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -40,6 +40,7 @@ make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_sta
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_force_faceload_hexa20
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_contact_shell_shell
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_contact_solid_solid
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_sectionprint
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_tie
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_material_multiple
|
||||
make -j 4 && ./bin/FreeCADCmd -t femtest.app.test_ccxtools.TestCcxTools.test_static_material_nonlinar
|
||||
@@ -109,6 +110,11 @@ unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName(
|
||||
'femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_contact_solid_solid'
|
||||
))
|
||||
|
||||
import unittest
|
||||
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName(
|
||||
'femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_sectionprint'
|
||||
))
|
||||
|
||||
import unittest
|
||||
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName(
|
||||
'femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_tie'
|
||||
|
||||
Reference in New Issue
Block a user