From 0db09aaa1a6b6a5f9f0b0bf9dd88d69d097ad387 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 12 May 2025 10:06:54 -0400 Subject: [PATCH] convert_hypercube_to_simplex_mesh_01: add another case. --- .../convert_hypercube_to_simplex_mesh_01.cc | 8 + ...onvert_hypercube_to_simplex_mesh_01.output | 155 ++++++++++++++++++ 2 files changed, 163 insertions(+) diff --git a/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc b/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc index 752d6d3134..4a97a3b0d2 100644 --- a/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc +++ b/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc @@ -133,6 +133,14 @@ main() check_file<2, 3>(8); deallog.pop(); + // TRIANGULAR ELEMENTS + // dim = 2, spacedim = 2 + deallog.push( + "2D: conversion triangulation with quad elements to tri elements " + "(split 2): "); + check_file<2, 2>(2, 1); + deallog.pop(); + // TETRAHEDRAL ELEMENTS // dim = spacedim = 3 deallog.push( diff --git a/tests/simplex/convert_hypercube_to_simplex_mesh_01.output b/tests/simplex/convert_hypercube_to_simplex_mesh_01.output index f25a2a3ef9..edf14b390b 100644 --- a/tests/simplex/convert_hypercube_to_simplex_mesh_01.output +++ b/tests/simplex/convert_hypercube_to_simplex_mesh_01.output @@ -533,6 +533,161 @@ DEAL:2D: conversion triangulation with quad elements to tri elements: ::OK! Triangulation generated with deal.II ASCII DATASET UNSTRUCTURED_GRID +POINTS 31 double +0.00000 0.00000 0 +0.556470 0.00000 0 +0.00000 0.556470 0 +0.428830 0.428830 0 +0.00000 0.278235 0 +0.492650 0.214415 0 +0.278235 0.00000 0 +0.214415 0.492650 0 +0.246325 0.246325 0 +1.00000 0.00000 0 +0.707107 0.707107 0 +0.778235 0.00000 0 +0.567968 0.567968 0 +0.923880 0.382683 0 +0.681892 0.287625 0 +0.00000 1.00000 0 +0.382683 0.923880 0 +0.00000 0.778235 0 +0.287625 0.681892 0 +0.278235 0.00000 0 +0.278235 0.278235 0 +0.492650 0.214415 0 +0.778235 0.00000 0 +0.00000 0.278235 0 +0.353553 0.631788 0 +0.214415 0.492650 0 +0.923880 0.382683 0 +0.631788 0.353553 0 +0.567968 0.567968 0 +0.382683 0.923880 0 +0.00000 0.778235 0 + +CELLS 34 126 +3 0 19 23 +3 19 1 20 +3 23 20 2 +3 19 20 23 +3 3 25 21 +3 25 2 20 +3 21 20 1 +3 25 20 21 +3 9 26 22 +3 26 10 27 +3 22 27 1 +3 26 27 22 +3 3 21 28 +3 21 1 27 +3 28 27 10 +3 21 27 28 +3 15 30 29 +3 30 2 24 +3 29 24 10 +3 30 24 29 +3 3 28 25 +3 28 10 24 +3 25 24 2 +3 28 24 25 +2 0 19 +2 19 1 +2 1 22 +2 22 9 +2 9 26 +2 26 10 +2 10 29 +2 29 15 +2 15 30 +2 30 2 + +CELL_TYPES 34 +5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 +3 3 3 3 3 3 3 3 3 3 + + +CELL_DATA 34 +SCALARS MaterialID int 1 +LOOKUP_TABLE default +0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 +1 1 2 2 3 3 4 4 5 5 + + +SCALARS ManifoldID int 1 +LOOKUP_TABLE default +-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 +-1 -1 -1 -1 0 0 0 0 -1 -1 + +# vtk DataFile Version 3.0 +Triangulation generated with deal.II +ASCII +DATASET UNSTRUCTURED_GRID +POINTS 31 double +0.00000 0.00000 0 +0.556470 0.00000 0 +0.00000 0.556470 0 +0.428830 0.428830 0 +0.00000 0.278235 0 +0.492650 0.214415 0 +0.278235 0.00000 0 +0.214415 0.492650 0 +0.246325 0.246325 0 +1.00000 0.00000 0 +0.707107 0.707107 0 +0.778235 0.00000 0 +0.567968 0.567968 0 +0.923880 0.382683 0 +0.681892 0.287625 0 +0.00000 1.00000 0 +0.382683 0.923880 0 +0.00000 0.778235 0 +0.287625 0.681892 0 +0.278235 0.00000 0 +0.278235 0.278235 0 +0.492650 0.214415 0 +0.778235 0.00000 0 +0.00000 0.278235 0 +0.353553 0.631788 0 +0.214415 0.492650 0 +0.923880 0.382683 0 +0.631788 0.353553 0 +0.567968 0.567968 0 +0.382683 0.923880 0 +0.00000 0.778235 0 + +CELLS 12 36 +2 0 19 +2 19 1 +2 1 22 +2 22 9 +2 2 23 +2 23 0 +2 9 26 +2 26 10 +2 10 29 +2 29 15 +2 15 30 +2 30 2 + +CELL_TYPES 12 +3 3 3 3 3 3 3 3 3 3 3 3 + + +CELL_DATA 12 +SCALARS MaterialID int 1 +LOOKUP_TABLE default +1 1 2 2 0 0 3 3 4 4 5 5 + + +SCALARS ManifoldID int 1 +LOOKUP_TABLE default +-1 -1 -1 -1 -1 -1 0 0 0 0 -1 -1 +DEAL:2D: conversion triangulation with quad elements to tri elements (split 2): ::OK! +# vtk DataFile Version 3.0 +Triangulation generated with deal.II +ASCII +DATASET UNSTRUCTURED_GRID POINTS 33 double 0.00000 0.00000 0.00000 0.528000 0.00000 0.00000 -- 2.39.5