Skip to content

Commit

Permalink
FEM: solver calculix unit tests, add all ccx cantiever examples
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jul 7, 2020
1 parent a1bf9d6 commit c251d8c
Show file tree
Hide file tree
Showing 6 changed files with 1,418 additions and 48 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Fem/CMakeLists.txt
Expand Up @@ -229,7 +229,10 @@ SET(FemTestsCcx_SRCS
femtest/data/calculix/box_static_expected_values
femtest/data/calculix/box_static.FCStd
femtest/data/calculix/box.FCStd
femtest/data/calculix/ccxcantilever_faceload.inp
femtest/data/calculix/ccxcantilever_hexa20.inp
femtest/data/calculix/ccxcantilever_nodeload.inp
femtest/data/calculix/ccxcantilever_prescribeddisplacement.inp
femtest/data/calculix/constraint_contact_shell_shell.FCStd
femtest/data/calculix/constraint_contact_shell_shell.inp
femtest/data/calculix/constraint_contact_solid_solid.FCStd
Expand Down
24 changes: 24 additions & 0 deletions src/Mod/Fem/femtest/app/test_solver_calculix.py
Expand Up @@ -96,6 +96,14 @@ def test_box_static(
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))

# ********************************************************************************************
def test_ccxcantilever_faceload(
self
):
from femexamples.ccx_cantilever_faceload import setup
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))

# ********************************************************************************************
def test_ccxcantilever_hexa20(
self
Expand All @@ -104,6 +112,22 @@ def test_ccxcantilever_hexa20(
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))

# ********************************************************************************************
def test_ccxcantilever_nodeload(
self
):
from femexamples.ccx_cantilever_nodeload import setup
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))

# ********************************************************************************************
def test_ccxcantilever_prescribeddisplacement(
self
):
from femexamples.ccx_cantilever_prescribeddisplacement import setup
setup(self.document, "calculix")
self.input_file_writing_test(get_namefromdef("test_"))

# ********************************************************************************************
def test_constraint_contact_shell_shell(
self
Expand Down

0 comments on commit c251d8c

Please sign in to comment.