diff --git a/tutorials/mesh/cvMesh/simpleShapes/constant/triSurface/domain.stl b/tutorials/mesh/cvMesh/simpleShapes/constant/triSurface/domain.stl index 7760e2c52a3af709962a436d5e438b82dda6d206..5650ed200133c64ccaf37ccf55701500b6acfbac 100644 --- a/tutorials/mesh/cvMesh/simpleShapes/constant/triSurface/domain.stl +++ b/tutorials/mesh/cvMesh/simpleShapes/constant/triSurface/domain.stl @@ -3,42 +3,84 @@ solid ascii outer loop vertex -0.7 -0.9 -1 vertex -0.7 -0.9 1 + vertex -0.7 1.1 -1 + endloop + endfacet + facet normal -1 0 0 + outer loop vertex -0.7 1.1 1 + vertex -0.7 1.1 -1 + vertex -0.7 -0.9 1 endloop endfacet - facet normal 1 0 -0 + facet normal 1 0 0 outer loop vertex 1.3 -0.9 -1 vertex 1.3 1.1 -1 + vertex 1.3 -0.9 1 + endloop + endfacet + facet normal 1 -0 0 + outer loop vertex 1.3 1.1 1 + vertex 1.3 -0.9 1 + vertex 1.3 1.1 -1 endloop endfacet facet normal 0 -1 0 outer loop vertex -0.7 -0.9 -1 vertex 1.3 -0.9 -1 + vertex -0.7 -0.9 1 + endloop + endfacet + facet normal 0 -1 0 + outer loop vertex 1.3 -0.9 1 + vertex -0.7 -0.9 1 + vertex 1.3 -0.9 -1 endloop endfacet - facet normal -0 1 0 + facet normal 0 1 0 outer loop vertex -0.7 1.1 -1 vertex -0.7 1.1 1 + vertex 1.3 1.1 -1 + endloop + endfacet + facet normal 0 1 -0 + outer loop vertex 1.3 1.1 1 + vertex 1.3 1.1 -1 + vertex -0.7 1.1 1 endloop endfacet facet normal 0 0 -1 outer loop vertex -0.7 -0.9 -1 vertex -0.7 1.1 -1 + vertex 1.3 -0.9 -1 + endloop + endfacet + facet normal 0 0 -1 + outer loop vertex 1.3 1.1 -1 + vertex 1.3 -0.9 -1 + vertex -0.7 1.1 -1 endloop endfacet - facet normal 0 -0 1 + facet normal 0 0 1 outer loop vertex -0.7 -0.9 1 vertex 1.3 -0.9 1 + vertex -0.7 1.1 1 + endloop + endfacet + facet normal -0 0 1 + outer loop vertex 1.3 1.1 1 + vertex -0.7 1.1 1 + vertex 1.3 -0.9 1 endloop endfacet endsolid diff --git a/tutorials/mesh/cvMesh/simpleShapes/system/cvMeshDict-generatePoints b/tutorials/mesh/cvMesh/simpleShapes/system/cvMeshDict-generatePoints index 591e493356fdf1d5d42b5fe04e7e42557b2735c5..987ce8de30fa3ec04f6fefdb1f1e4d22e18c6b58 100644 --- a/tutorials/mesh/cvMesh/simpleShapes/system/cvMeshDict-generatePoints +++ b/tutorials/mesh/cvMesh/simpleShapes/system/cvMeshDict-generatePoints @@ -23,8 +23,8 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Impoprtant: -// ----------- +// Important: +// ---------- // Any scalar with a name <name>Coeff specifies a value that will be implemented // as a faction of the local target cell size // Any scalar with a name <name>Size specifies an absolute size. @@ -41,9 +41,19 @@ geometry // Internal shape coneAndSphere.obj { + name coneAndSphere; type triSurfaceMesh; + tolerance 0.00001; } +// // Internal shape +// coneAndSphere +// { +// type searchableSurfaceWithGaps; +// surface coneAndSphere.obj; +// gap 0.001; +// } + // Bounds of domain domain.stl { @@ -119,7 +129,7 @@ surfaceConformation geometryToConformTo { - coneAndSphere.obj + coneAndSphere { featureMethod extendedFeatureEdgeMesh; extendedFeatureEdgeMesh "coneAndSphere.extendedFeatureEdgeMesh"; @@ -161,7 +171,7 @@ initialPoints maxSizeRatio 5.0; // Per box sample 3x3x3 internally sampleResolution 3; - // Additionally per face of the box sample 5x5 + // Additionally per face of the box sample 3 surfaceSampleResolution 3; } diff --git a/tutorials/mesh/cvMesh/simpleShapes/system/topoSetDict b/tutorials/mesh/cvMesh/simpleShapes/system/topoSetDict index 0137b5762a1fe4b73cef9757efba11926711580b..d896ebdc0c83e27fc1cb0331ce394598642b977f 100644 --- a/tutorials/mesh/cvMesh/simpleShapes/system/topoSetDict +++ b/tutorials/mesh/cvMesh/simpleShapes/system/topoSetDict @@ -24,7 +24,7 @@ actions source boxToCell; sourceInfo { - box (-100 -100 -0.01)(100 100 100); + box (-100 -100 0)(100 100 100); } } @@ -67,7 +67,7 @@ actions source boxToCell; sourceInfo { - box (-100 0 -100)(100 100 100); + box (-100 0.1 -100)(100 100 100); } } @@ -110,7 +110,7 @@ actions source boxToCell; sourceInfo { - box (0 -100 -100)(100 100 100); + box (0.3 -100 -100)(100 100 100); } }