ENH: simpleShapes: tutorial

This commit is contained in:
mattijs
2011-06-16 21:51:26 +01:00
parent 1d39f8a3f4
commit c851cbc2a6
3 changed files with 65 additions and 13 deletions

View File

@ -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
vertex -0.7 1.1 -1
endloop
endfacet
facet normal 1 0 -0
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
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 1.3 -0.9 1
vertex -0.7 -0.9 1
endloop
endfacet
facet normal -0 1 0
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
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 1.1 -1
vertex 1.3 -0.9 -1
endloop
endfacet
facet normal 0 -0 1
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
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

View File

@ -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;
}

View File

@ -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);
}
}