]> https://gitweb.dealii.org/ - dealii.git/commitdiff
convert_hypercube_to_simplex_mesh_01: add another case.
authorDavid Wells <drwells@email.unc.edu>
Mon, 12 May 2025 14:06:54 +0000 (10:06 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 12 May 2025 21:28:08 +0000 (17:28 -0400)
tests/simplex/convert_hypercube_to_simplex_mesh_01.cc
tests/simplex/convert_hypercube_to_simplex_mesh_01.output

index 752d6d3134dc601426fe569d8acd5ce59aedaa5b..4a97a3b0d2f39ff36688bf47825649fd75cadb00 100644 (file)
@@ -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(
index f25a2a3ef9eeaa596a31a917f47a1579bb3ebd36..edf14b390b9e74cde3c4c3be9ac222b08e45adf1 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.