Skip to content

Commit

Permalink
FEM: unit tests, improve ccx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jan 17, 2020
1 parent ab3941a commit a285e89
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/Mod/Fem/femtest/app/test_ccxtools.py
Expand Up @@ -549,24 +549,31 @@ def test_5_Flow1D_thermomech_analysis(
def test_6_contact_shell_shell(
self
):
test_name = "contact shell shell analysis test"
base_name = "contact_shell_shell"
test_dir = "FEM_ccx_contact_shell_shell"
# set up the example
from femexamples import contact_shell_shell as shellcontact
shellcontact.setup(self.active_doc, "ccxtools")

# test input file writing
self.input_file_writing_test(
test_name="contact shell shell analysis test",
base_name="contact_shell_shell",
test_dir="FEM_ccx_contact_shell_shell",
)

# ********************************************************************************************
def input_file_writing_test(
self,
test_name,
base_name,
test_dir
):
fcc_print(
"\n--------------- "
"Start of FEM ccxtools {}"
"---------------"
.format(test_name)
)

# set up the example
from femexamples import contact_shell_shell as shellcontact
shellcontact.setup(self.active_doc, "ccxtools")

# code from here is independent, TODO put in separate def
# adding more inp file tests would be very simple ...
# set up analysis
analysis = self.active_doc.Analysis
solver_object = self.active_doc.CalculiXccxTools
analysis_dir = testtools.get_unit_test_tmp_dir(
Expand Down

0 comments on commit a285e89

Please sign in to comment.