From 8b404fc74c7fb5e9b0404301dadf74cf33b9f6d1 Mon Sep 17 00:00:00 2001 From: Kjetil Johannessen Date: Tue, 19 Jan 2021 15:51:06 +0100 Subject: [PATCH] Tests: added more tests for volume refinement and MeshRectangle behaviour --- test/RefinementUnchanged/extend_meshrect.inp | 3 +++ test/RefinementUnchanged/extend_meshrect.reg | 9 +++++++++ test/RefinementUnchanged/overlap_w.inp | 4 ++++ test/RefinementUnchanged/overlap_w.reg | 9 +++++++++ .../volume_all_coved_by_one_meshrect.inp | 12 ++++++++++++ .../volume_all_coved_by_one_meshrect.reg | 9 +++++++++ test/RefinementUnchanged/volume_merging_rect.inp | 4 ++++ test/RefinementUnchanged/volume_merging_rect.reg | 9 +++++++++ .../volume_two_rect_corner_overlap.inp | 3 +++ .../volume_two_rect_corner_overlap.reg | 9 +++++++++ 10 files changed, 71 insertions(+) create mode 100644 test/RefinementUnchanged/extend_meshrect.inp create mode 100644 test/RefinementUnchanged/extend_meshrect.reg create mode 100644 test/RefinementUnchanged/overlap_w.inp create mode 100644 test/RefinementUnchanged/overlap_w.reg create mode 100644 test/RefinementUnchanged/volume_all_coved_by_one_meshrect.inp create mode 100644 test/RefinementUnchanged/volume_all_coved_by_one_meshrect.reg create mode 100644 test/RefinementUnchanged/volume_merging_rect.inp create mode 100644 test/RefinementUnchanged/volume_merging_rect.reg create mode 100644 test/RefinementUnchanged/volume_two_rect_corner_overlap.inp create mode 100644 test/RefinementUnchanged/volume_two_rect_corner_overlap.reg diff --git a/test/RefinementUnchanged/extend_meshrect.inp b/test/RefinementUnchanged/extend_meshrect.inp new file mode 100644 index 0000000..4b9f392 --- /dev/null +++ b/test/RefinementUnchanged/extend_meshrect.inp @@ -0,0 +1,3 @@ +2 +0 1.5 0 1 1 4 1 +0 1.5 0 1 3 5 1 diff --git a/test/RefinementUnchanged/extend_meshrect.reg b/test/RefinementUnchanged/extend_meshrect.reg new file mode 100644 index 0000000..06e71c1 --- /dev/null +++ b/test/RefinementUnchanged/extend_meshrect.reg @@ -0,0 +1,9 @@ +-p1 3 -p2 3 -p3 3 -n1 10 -n2 4 -n3 8 extend_meshrect.inp + + all assertions passed + +Key LR-spline information: + number of mesh lines : 20 + number of elements : 100 + + diff --git a/test/RefinementUnchanged/overlap_w.inp b/test/RefinementUnchanged/overlap_w.inp new file mode 100644 index 0000000..6d4df63 --- /dev/null +++ b/test/RefinementUnchanged/overlap_w.inp @@ -0,0 +1,4 @@ +3 +2 1.5 1 4 0 3 1 +2 1.5 3 6 2 5 1 +2 1.5 0 7 1 4 1 diff --git a/test/RefinementUnchanged/overlap_w.reg b/test/RefinementUnchanged/overlap_w.reg new file mode 100644 index 0000000..83bf172 --- /dev/null +++ b/test/RefinementUnchanged/overlap_w.reg @@ -0,0 +1,9 @@ +-p1 3 -p2 3 -p3 3 -n1 10 -n2 8 -n3 4 overlap_w.inp + + all assertions passed + +Key LR-spline information: + number of basis functions: 331 + number of mesh lines : 23 + number of elements : 123 + diff --git a/test/RefinementUnchanged/volume_all_coved_by_one_meshrect.inp b/test/RefinementUnchanged/volume_all_coved_by_one_meshrect.inp new file mode 100644 index 0000000..65c24d7 --- /dev/null +++ b/test/RefinementUnchanged/volume_all_coved_by_one_meshrect.inp @@ -0,0 +1,12 @@ +11 +1 1.5 1 2 1 2 1 +1 1.5 3 4 1 2 1 +1 1.5 2 3 1 2 1 +1 1.5 0 4 0 3 1 +1 1.5 2 3 1 3 1 +1 1.5 3 4 2 3 1 +1 1.5 1 4 1 4 1 +1 1.5 3 5 2 5 1 +1 1.5 1 4 0 6 1 +1 1.5 0 5 0 6 1 +1 1.5 0 5 0 6 1 diff --git a/test/RefinementUnchanged/volume_all_coved_by_one_meshrect.reg b/test/RefinementUnchanged/volume_all_coved_by_one_meshrect.reg new file mode 100644 index 0000000..e708586 --- /dev/null +++ b/test/RefinementUnchanged/volume_all_coved_by_one_meshrect.reg @@ -0,0 +1,9 @@ +-p1 3 -p2 3 -p3 3 -n1 10 -n2 4 -n3 8 volume_all_coved_by_one_meshrect.inp + + + all assertions passed + +Key LR-spline information: + number of mesh lines : 20 + number of elements : 126 + diff --git a/test/RefinementUnchanged/volume_merging_rect.inp b/test/RefinementUnchanged/volume_merging_rect.inp new file mode 100644 index 0000000..d91439d --- /dev/null +++ b/test/RefinementUnchanged/volume_merging_rect.inp @@ -0,0 +1,4 @@ +3 +1 1.5 1 2 1 2 1 +1 1.5 3 4 1 2 1 +1 1.5 2 3 1 2 1 diff --git a/test/RefinementUnchanged/volume_merging_rect.reg b/test/RefinementUnchanged/volume_merging_rect.reg new file mode 100644 index 0000000..ad75e4b --- /dev/null +++ b/test/RefinementUnchanged/volume_merging_rect.reg @@ -0,0 +1,9 @@ +-p1 3 -p2 3 -p3 3 -n1 10 -n2 4 -n3 8 volume_merging_rect.inp + + all assertions passed + +Key LR-spline information: + number of basis functions: 320 + number of mesh lines : 20 + number of elements : 99 + diff --git a/test/RefinementUnchanged/volume_two_rect_corner_overlap.inp b/test/RefinementUnchanged/volume_two_rect_corner_overlap.inp new file mode 100644 index 0000000..e4ddb91 --- /dev/null +++ b/test/RefinementUnchanged/volume_two_rect_corner_overlap.inp @@ -0,0 +1,3 @@ +4 +1 1.5 1 4 2 5 1 +1 1.5 2 5 1 4 1 diff --git a/test/RefinementUnchanged/volume_two_rect_corner_overlap.reg b/test/RefinementUnchanged/volume_two_rect_corner_overlap.reg new file mode 100644 index 0000000..ef1167a --- /dev/null +++ b/test/RefinementUnchanged/volume_two_rect_corner_overlap.reg @@ -0,0 +1,9 @@ +-p1 3 -p2 3 -p3 3 -n1 10 -n2 4 -n3 8 volume_two_rect_corner_overlap.inp + + all assertions passed + +Key LR-spline information: + number of basis functions: 322 + number of mesh lines : 23 + number of elements : 110 +