Skip to content

Commit

Permalink
FEM: Unit Test, add transfor torque writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudhanshu-Dubey14 committed May 22, 2020
1 parent cbfbcb5 commit 5ed9b7b
Show file tree
Hide file tree
Showing 4 changed files with 13,217 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Fem/CMakeLists.txt
Expand Up @@ -219,6 +219,7 @@ SET(FemTestsCcx_SRCS
femtest/data/ccx/constraint_contact_solid_solid.FCStd
femtest/data/ccx/constraint_contact_solid_solid.inp
femtest/data/ccx/constraint_tie.inp
femtest/data/ccx/constraint_transform_torque.inp
femtest/data/ccx/cube_frequency.inp
femtest/data/ccx/cube_frequency.dat
femtest/data/ccx/cube_frequency.frd
Expand Down
4 changes: 4 additions & 0 deletions src/Mod/Fem/TestFemApp.py
Expand Up @@ -135,6 +135,7 @@
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_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_constraint_tie"
./bin/FreeCADCmd --run-test "femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_transform_torque"
./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_bimetall"
Expand Down Expand Up @@ -194,6 +195,9 @@
import unittest
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_tie"))
import unittest
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.app.test_ccxtools.TestCcxTools.test_static_constraint_transform_torque"))
import unittest
unittest.TextTestRunner().run(unittest.TestLoader().loadTestsFromName("femtest.app.test_ccxtools.TestCcxTools.test_static_material_multiple"))
Expand Down
21 changes: 21 additions & 0 deletions src/Mod/Fem/femtest/app/test_ccxtools.py
Expand Up @@ -219,6 +219,27 @@ def test_static_constraint_tie(
analysis_dir=analysis_dir,
)

# ********************************************************************************************
def test_static_constraint_transform_torque(
self
):
# set up
from femexamples.constraint_transform_torque import setup
setup(self.document, "ccxtools")
test_name = "constraint transform torque"
base_name = "constraint_transform_torque"
analysis_dir = testtools.get_unit_test_tmp_dir(
self.temp_dir,
"FEM_ccx_constraint_transform_torque",
)

# 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
Expand Down

0 comments on commit 5ed9b7b

Please sign in to comment.