From 69a87f25d6167d8f3467093b34f95d0e6e4f2612 Mon Sep 17 00:00:00 2001 From: "Martin R. Pfaller" Date: Thu, 22 Feb 2024 19:59:58 -0800 Subject: [PATCH] Add shell test cases plate and valve (#174) * Add shell test cases plate and valve * Crank up tolerances to the max --- .gitattributes | 1 + .../cases/shell/plate/mesh/2Dsqr_NURBS_C1.msh | 25 +++ .../plate/mesh/tri3/mesh-complete.mesh.vtu | 3 + .../plate/mesh/tri3/mesh-surfaces/x0.vtp | 3 + .../plate/mesh/tri3/mesh-surfaces/x1.vtp | 3 + .../plate/mesh/tri3/mesh-surfaces/y0.vtp | 3 + .../plate/mesh/tri3/mesh-surfaces/y1.vtp | 3 + tests/cases/shell/plate/result_010.vtu | 3 + tests/cases/shell/plate/svFSI.xml | 110 +++++++++++ .../shell/valve/leaflet_deform_20fps.avi | 3 + .../cases/shell/valve/mesh/PAT003_07_LCC.vtu | 3 + .../cases/shell/valve/mesh/PAT003_07_NCC.vtu | 3 + .../cases/shell/valve/mesh/PAT003_07_RCC.vtu | 3 + .../mesh-surfaces/PAT003_07_LCC_edge1.vtp | 3 + .../mesh-surfaces/PAT003_07_LCC_edge2.vtp | 3 + .../mesh-surfaces/PAT003_07_NCC_edge1.vtp | 3 + .../mesh-surfaces/PAT003_07_NCC_edge2.vtp | 3 + .../mesh-surfaces/PAT003_07_RCC_edge1.vtp | 3 + .../mesh-surfaces/PAT003_07_RCC_edge2.vtp | 3 + tests/cases/shell/valve/pbc.dat | 3 + tests/cases/shell/valve/pbc_t.png | 3 + tests/cases/shell/valve/result_001.vtu | 3 + tests/cases/shell/valve/svFSI.xml | 181 ++++++++++++++++++ tests/test_shell.py | 22 +++ 24 files changed, 396 insertions(+) create mode 100755 tests/cases/shell/plate/mesh/2Dsqr_NURBS_C1.msh create mode 100755 tests/cases/shell/plate/mesh/tri3/mesh-complete.mesh.vtu create mode 100755 tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x0.vtp create mode 100755 tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x1.vtp create mode 100755 tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y0.vtp create mode 100755 tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y1.vtp create mode 100644 tests/cases/shell/plate/result_010.vtu create mode 100644 tests/cases/shell/plate/svFSI.xml create mode 100644 tests/cases/shell/valve/leaflet_deform_20fps.avi create mode 100755 tests/cases/shell/valve/mesh/PAT003_07_LCC.vtu create mode 100755 tests/cases/shell/valve/mesh/PAT003_07_NCC.vtu create mode 100755 tests/cases/shell/valve/mesh/PAT003_07_RCC.vtu create mode 100755 tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge1.vtp create mode 100755 tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge2.vtp create mode 100755 tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge1.vtp create mode 100755 tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge2.vtp create mode 100755 tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge1.vtp create mode 100755 tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge2.vtp create mode 100755 tests/cases/shell/valve/pbc.dat create mode 100755 tests/cases/shell/valve/pbc_t.png create mode 100644 tests/cases/shell/valve/result_001.vtu create mode 100644 tests/cases/shell/valve/svFSI.xml create mode 100644 tests/test_shell.py diff --git a/.gitattributes b/.gitattributes index db160f74..60848a18 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,3 +6,4 @@ *.msi filter=lfs diff=lfs merge=lfs -text *.bin filter=lfs diff=lfs merge=lfs -text *.stl filter=lfs diff=lfs merge=lfs -text +*.avi filter=lfs diff=lfs merge=lfs -text diff --git a/tests/cases/shell/plate/mesh/2Dsqr_NURBS_C1.msh b/tests/cases/shell/plate/mesh/2Dsqr_NURBS_C1.msh new file mode 100755 index 00000000..2a8e5ef1 --- /dev/null +++ b/tests/cases/shell/plate/mesh/2Dsqr_NURBS_C1.msh @@ -0,0 +1,25 @@ +#knotV 6 +0 +0 +0 +1 +1 +1 +#knotV 6 +0 +0 +0 +1 +1 +1 +#ctrlPts 9 +0.0 0.0 0.0 1.0 +0.0 10.0 0.0 1.0 +0.0 20.0 0.0 1.0 +10.0 0.0 0.0 1.0 +10.0 10.0 0.0 1.0 +10.0 20.0 0.0 1.0 +20.0 0.0 0.0 1.0 +20.0 10.0 0.0 1.0 +20.0 20.0 0.0 1.0 + diff --git a/tests/cases/shell/plate/mesh/tri3/mesh-complete.mesh.vtu b/tests/cases/shell/plate/mesh/tri3/mesh-complete.mesh.vtu new file mode 100755 index 00000000..9cfb3dbe --- /dev/null +++ b/tests/cases/shell/plate/mesh/tri3/mesh-complete.mesh.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:086a1b4bce1015672952f5ba10963d6251b262ad6c3be0ee09d8d3fedda83df5 +size 9448 diff --git a/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x0.vtp b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x0.vtp new file mode 100755 index 00000000..ab6fa8d8 --- /dev/null +++ b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x0.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:52d478807a54b0a38d57ec49f8cf4a79e76b7c2751f83c618e3769a39e5291e9 +size 2210 diff --git a/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x1.vtp b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x1.vtp new file mode 100755 index 00000000..ad02844a --- /dev/null +++ b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/x1.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7c53d2a7d46a296aa6f2323cfaca36bc6607cac8cd5f699e21afc26c2c93cf5 +size 2221 diff --git a/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y0.vtp b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y0.vtp new file mode 100755 index 00000000..d0db160c --- /dev/null +++ b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y0.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:670811fad8260f27996cef53f905750440a9d365c49a488d44f66530ab45288b +size 2209 diff --git a/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y1.vtp b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y1.vtp new file mode 100755 index 00000000..86a58654 --- /dev/null +++ b/tests/cases/shell/plate/mesh/tri3/mesh-surfaces/y1.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed44956cc773881e1a77c28eeb26d297f7270e4c9be78801eaf839eb7ffaf980 +size 2221 diff --git a/tests/cases/shell/plate/result_010.vtu b/tests/cases/shell/plate/result_010.vtu new file mode 100644 index 00000000..d4829f14 --- /dev/null +++ b/tests/cases/shell/plate/result_010.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ad9f0c4b1054b473398eda922c2addc70856aeee9ecd91efddb73f6fc66e1e4 +size 72547 diff --git a/tests/cases/shell/plate/svFSI.xml b/tests/cases/shell/plate/svFSI.xml new file mode 100644 index 00000000..9b03ff7d --- /dev/null +++ b/tests/cases/shell/plate/svFSI.xml @@ -0,0 +1,110 @@ + + + + + 0 + 3 + 10 + 0.1 + 0.50 + STOP_SIM + + true + result + 10 + 1 + + 10 + 0 + + 1 + 0 + 0 + + + + + + true + + ./mesh/tri3/mesh-complete.mesh.vtu + + + ./mesh/tri3/mesh-surfaces/x0.vtp + + + + mesh/tri3/mesh-surfaces/x1.vtp + + + + mesh/tri3/mesh-surfaces/y0.vtp + + + + mesh/tri3/mesh-surfaces/y1.vtp + + + + + + true + + + 3 + 14 + 1e-11 + + 0.0 + 1.0 + 12.0 + 0.0 + 1.0 + + + true + true + true + true + + + + 1e-12 + 100 + 50 + + + + Neu + 0.04 + + + + Dir + Fixed + 0.0 + + + + Dir + Fixed + 0.0 + + + + Dir + Fixed + 0.0 + + + + Dir + Fixed + 0.0 + + + + + + + diff --git a/tests/cases/shell/valve/leaflet_deform_20fps.avi b/tests/cases/shell/valve/leaflet_deform_20fps.avi new file mode 100644 index 00000000..9e61be1d --- /dev/null +++ b/tests/cases/shell/valve/leaflet_deform_20fps.avi @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af902ed7d20822f82d4d09c911c0472e0cd3c790b756ce30a22f26f1e51ccc07 +size 6312808 diff --git a/tests/cases/shell/valve/mesh/PAT003_07_LCC.vtu b/tests/cases/shell/valve/mesh/PAT003_07_LCC.vtu new file mode 100755 index 00000000..ac8b8a1f --- /dev/null +++ b/tests/cases/shell/valve/mesh/PAT003_07_LCC.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eecbfe85257d39005741fde880f1c4d6055070076f0980c4be1bec5a5925c2ae +size 25075 diff --git a/tests/cases/shell/valve/mesh/PAT003_07_NCC.vtu b/tests/cases/shell/valve/mesh/PAT003_07_NCC.vtu new file mode 100755 index 00000000..6db2911f --- /dev/null +++ b/tests/cases/shell/valve/mesh/PAT003_07_NCC.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b43a94a2ed2dbf43677dae66c52cb744747f5d393dff420ace1d822e54423ad7 +size 22452 diff --git a/tests/cases/shell/valve/mesh/PAT003_07_RCC.vtu b/tests/cases/shell/valve/mesh/PAT003_07_RCC.vtu new file mode 100755 index 00000000..4d03e5ac --- /dev/null +++ b/tests/cases/shell/valve/mesh/PAT003_07_RCC.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3461dc7069c7f9d5a66c2f2d2270035a6594555ccb93d8d62af2bddc021a2ac3 +size 25461 diff --git a/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge1.vtp b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge1.vtp new file mode 100755 index 00000000..73b1fd51 --- /dev/null +++ b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge1.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6915665a051590d08f973894385aed5eb9d752045548d3a07aaf669a5dfa201b +size 3410 diff --git a/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge2.vtp b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge2.vtp new file mode 100755 index 00000000..3feb16eb --- /dev/null +++ b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_LCC_edge2.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:723b2c1d9e10f03c1c068436045ff03a8e860be37c7de2f9de9d7521de5ed188 +size 3126 diff --git a/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge1.vtp b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge1.vtp new file mode 100755 index 00000000..6e23598c --- /dev/null +++ b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge1.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43b1318f7fd7c9dc32dc6de0697a1a63a0c25e2e410f5f51880f015f4953feec +size 3420 diff --git a/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge2.vtp b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge2.vtp new file mode 100755 index 00000000..a44c64bb --- /dev/null +++ b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_NCC_edge2.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:304cab870ea8e9f97e01e1909f3045e187ec656c7da03a76201042ed61572474 +size 2969 diff --git a/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge1.vtp b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge1.vtp new file mode 100755 index 00000000..b29e8752 --- /dev/null +++ b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge1.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5dc0b654bba35f18fc883ce2f5991187db111b79b128412427a620a5df60811 +size 3421 diff --git a/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge2.vtp b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge2.vtp new file mode 100755 index 00000000..65b3e0e6 --- /dev/null +++ b/tests/cases/shell/valve/mesh/mesh-surfaces/PAT003_07_RCC_edge2.vtp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d5658b2a859ab47d2eba1f85409358a62b5e607cd65659bdebfe647b1ff44a8 +size 3194 diff --git a/tests/cases/shell/valve/pbc.dat b/tests/cases/shell/valve/pbc.dat new file mode 100755 index 00000000..72f53ac0 --- /dev/null +++ b/tests/cases/shell/valve/pbc.dat @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a41e650d6666ef3f74c671eab66e2786cbcacb00e969553120f211efaed9753f +size 3064 diff --git a/tests/cases/shell/valve/pbc_t.png b/tests/cases/shell/valve/pbc_t.png new file mode 100755 index 00000000..13984d00 --- /dev/null +++ b/tests/cases/shell/valve/pbc_t.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e74e1b8852837a0f70985f7936c6a1b2bdc46ae2cc4c9c4ab615beb19cd89f8 +size 65947 diff --git a/tests/cases/shell/valve/result_001.vtu b/tests/cases/shell/valve/result_001.vtu new file mode 100644 index 00000000..6f800e95 --- /dev/null +++ b/tests/cases/shell/valve/result_001.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee651e77916338e43966470ec9c4d7125eadb4651b55bd756eaf7ed830767875 +size 144996 diff --git a/tests/cases/shell/valve/svFSI.xml b/tests/cases/shell/valve/svFSI.xml new file mode 100644 index 00000000..a03b5554 --- /dev/null +++ b/tests/cases/shell/valve/svFSI.xml @@ -0,0 +1,181 @@ + + + + + 0 + 3 + 1 + 1e-4 + 0.50 + STOP_SIM + + true + result + 1 + 1 + + 1 + 0 + + 1 + 0 + 0 + + + + + true + + mesh/PAT003_07_LCC.vtu + + + mesh/mesh-surfaces/PAT003_07_LCC_edge1.vtp + + + + mesh/mesh-surfaces/PAT003_07_LCC_edge2.vtp + + + 10.0 + + + + + + + + true + + mesh/PAT003_07_NCC.vtu + + + mesh/mesh-surfaces/PAT003_07_NCC_edge1.vtp + + + + mesh/mesh-surfaces/PAT003_07_NCC_edge2.vtp + + + 10.0 + + + + + + + + true + + mesh/PAT003_07_RCC.vtu + + + mesh/mesh-surfaces/PAT003_07_RCC_edge1.vtp + + + + mesh/mesh-surfaces/PAT003_07_RCC_edge2.vtp + + + 10.0 + + + + + + 1.0e5 + 0.05 + 1.0 + 0.7 + + + + + true + + + 3 + 66 + 1e-11 + + 1e-3 + 2.0 + 1.0e6 + 0.45 + 0.4 + + + true + true + true + true + + + + 1e-12 + 100 + 50 + + + + + + Neu + Unsteady + pbc.dat + + + + Neu + Unsteady + pbc.dat + + + + Neu + Unsteady + pbc.dat + + + + + + Dir + 0.0 + Fixed + + + + Dir + 0.0 + Fixed + + + + Dir + 0.0 + Fixed + + + + Neu + 0.0 + Free + + + + Neu + 0.0 + Free + + + + Neu + 0.0 + Free + + + + + + + diff --git a/tests/test_shell.py b/tests/test_shell.py new file mode 100644 index 00000000..7b51c9f0 --- /dev/null +++ b/tests/test_shell.py @@ -0,0 +1,22 @@ +import pytest + +from .conftest import run_with_reference + +# Common folder for all tests in this file +base_folder = "shell" + +# Fields to test +fields = ["Displacement", "Velocity", "Stress", "Strain"] + + +@pytest.mark.parametrize("n_proc", [1]) +def test_plate(n_proc): + test_folder = "plate" + t_max = 10 + run_with_reference(base_folder, test_folder, fields, n_proc, t_max) + + +@pytest.mark.parametrize("n_proc", [1]) +def test_valve(n_proc): + test_folder = "valve" + run_with_reference(base_folder, test_folder, fields, n_proc)