[cig-commits] r13993 - in cs/cigma/trunk/examples/utils: . tetgen
luis at geodynamics.org
luis at geodynamics.org
Wed Jan 28 09:05:27 PST 2009
Author: luis
Date: 2009-01-28 09:05:27 -0800 (Wed, 28 Jan 2009)
New Revision: 13993
Added:
cs/cigma/trunk/examples/utils/tetgen/
cs/cigma/trunk/examples/utils/tetgen/README
cs/cigma/trunk/examples/utils/tetgen/cube.sh
cs/cigma/trunk/examples/utils/tetgen/cube1.poly
cs/cigma/trunk/examples/utils/tetgen/cube2.poly
Log:
Uses tetgen mesh generator for discretizing a cube domain with linear and quadratic tetrahedral elements
Added: cs/cigma/trunk/examples/utils/tetgen/README
===================================================================
--- cs/cigma/trunk/examples/utils/tetgen/README (rev 0)
+++ cs/cigma/trunk/examples/utils/tetgen/README 2009-01-28 17:05:27 UTC (rev 13993)
@@ -0,0 +1,4 @@
+
+TetGen: A Quality Tetrahedral Mesh Generator and Three-Dimensional Delaunay Triangulator
+http://tetgen.berlios.de/
+
Added: cs/cigma/trunk/examples/utils/tetgen/cube.sh
===================================================================
--- cs/cigma/trunk/examples/utils/tetgen/cube.sh (rev 0)
+++ cs/cigma/trunk/examples/utils/tetgen/cube.sh 2009-01-28 17:05:27 UTC (rev 13993)
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# refine cube1
+o="-fen"
+./tetgen $o -p cube1
+./tetgen $o -r -a0.500 cube1.1
+./tetgen $o -r -a0.250 cube1.2
+./tetgen $o -r -a0.200 cube1.3
+./tetgen $o -r -a0.125 cube1.4
+./tetgen $o -r -a0.075 cube1.5
+./tetgen $o -r -a0.010 cube1.6
+
+# refine cube2
+o="-fen -o2"
+./tetgen $o -p cube2
+./tetgen $o -r -a0.500 cube2.1
+./tetgen $o -r -a0.250 cube2.2
+./tetgen $o -r -a0.200 cube2.3
+./tetgen $o -r -a0.125 cube2.4
+./tetgen $o -r -a0.075 cube2.5
+./tetgen $o -r -a0.010 cube2.6
Property changes on: cs/cigma/trunk/examples/utils/tetgen/cube.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: cs/cigma/trunk/examples/utils/tetgen/cube1.poly
===================================================================
--- cs/cigma/trunk/examples/utils/tetgen/cube1.poly (rev 0)
+++ cs/cigma/trunk/examples/utils/tetgen/cube1.poly 2009-01-28 17:05:27 UTC (rev 13993)
@@ -0,0 +1,36 @@
+# Part 1 - node list
+# node count, 3 dim, no attribute, no boundary marker
+8 3 0 0
+# Node index, node coordinates
+1 0.0 0.0 0.0
+2 2.0 0.0 0.0
+3 2.0 2.0 0.0
+4 0.0 2.0 0.0
+5 0.0 0.0 2.0
+6 2.0 0.0 2.0
+7 2.0 2.0 2.0
+8 0.0 2.0 2.0
+
+# Part 2 - facet list
+# facet count, no boundary marker
+6 0
+# facets
+1 # 1 polygon, no hole, no boundary marker
+4 1 2 3 4 # front
+1
+4 5 6 7 8 # back
+1
+4 1 2 6 5 # bottom
+1
+4 2 3 7 6 # right
+1
+4 3 4 8 7 # top
+1
+4 4 1 5 8 # left
+
+# Part 3 - hole list
+0 # no hole
+
+# Part 4 - region list
+0 # no region
+
Added: cs/cigma/trunk/examples/utils/tetgen/cube2.poly
===================================================================
--- cs/cigma/trunk/examples/utils/tetgen/cube2.poly (rev 0)
+++ cs/cigma/trunk/examples/utils/tetgen/cube2.poly 2009-01-28 17:05:27 UTC (rev 13993)
@@ -0,0 +1,36 @@
+# Part 1 - node list
+# node count, 3 dim, no attribute, no boundary marker
+8 3 0 0
+# Node index, node coordinates
+1 0.0 0.0 0.0
+2 2.0 0.0 0.0
+3 2.0 2.0 0.0
+4 0.0 2.0 0.0
+5 0.0 0.0 2.0
+6 2.0 0.0 2.0
+7 2.0 2.0 2.0
+8 0.0 2.0 2.0
+
+# Part 2 - facet list
+# facet count, no boundary marker
+6 0
+# facets
+1 # 1 polygon, no hole, no boundary marker
+4 1 2 3 4 # front
+1
+4 5 6 7 8 # back
+1
+4 1 2 6 5 # bottom
+1
+4 2 3 7 6 # right
+1
+4 3 4 8 7 # top
+1
+4 4 1 5 8 # left
+
+# Part 3 - hole list
+0 # no hole
+
+# Part 4 - region list
+0 # no region
+
More information about the CIG-COMMITS
mailing list