mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: simpleShapes: tutorial
This commit is contained in:
@ -3,42 +3,84 @@ solid ascii
|
|||||||
outer loop
|
outer loop
|
||||||
vertex -0.7 -0.9 -1
|
vertex -0.7 -0.9 -1
|
||||||
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
|
endloop
|
||||||
endfacet
|
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
|
outer loop
|
||||||
vertex 1.3 -0.9 -1
|
vertex 1.3 -0.9 -1
|
||||||
vertex 1.3 1.1 -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 1.1 1
|
||||||
|
vertex 1.3 -0.9 1
|
||||||
|
vertex 1.3 1.1 -1
|
||||||
endloop
|
endloop
|
||||||
endfacet
|
endfacet
|
||||||
facet normal 0 -1 0
|
facet normal 0 -1 0
|
||||||
outer loop
|
outer loop
|
||||||
vertex -0.7 -0.9 -1
|
vertex -0.7 -0.9 -1
|
||||||
vertex 1.3 -0.9 -1
|
vertex 1.3 -0.9 -1
|
||||||
vertex 1.3 -0.9 1
|
vertex -0.7 -0.9 1
|
||||||
endloop
|
endloop
|
||||||
endfacet
|
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
|
outer loop
|
||||||
vertex -0.7 1.1 -1
|
vertex -0.7 1.1 -1
|
||||||
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 1.3 1.1 -1
|
||||||
|
vertex -0.7 1.1 1
|
||||||
endloop
|
endloop
|
||||||
endfacet
|
endfacet
|
||||||
facet normal 0 0 -1
|
facet normal 0 0 -1
|
||||||
outer loop
|
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
|
||||||
vertex 1.3 1.1 -1
|
vertex 1.3 -0.9 -1
|
||||||
endloop
|
endloop
|
||||||
endfacet
|
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
|
outer loop
|
||||||
vertex -0.7 -0.9 1
|
vertex -0.7 -0.9 1
|
||||||
vertex 1.3 -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 1.3 1.1 1
|
||||||
|
vertex -0.7 1.1 1
|
||||||
|
vertex 1.3 -0.9 1
|
||||||
endloop
|
endloop
|
||||||
endfacet
|
endfacet
|
||||||
endsolid
|
endsolid
|
||||||
|
|||||||
@ -23,8 +23,8 @@ FoamFile
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
// Impoprtant:
|
// Important:
|
||||||
// -----------
|
// ----------
|
||||||
// Any scalar with a name <name>Coeff specifies a value that will be implemented
|
// Any scalar with a name <name>Coeff specifies a value that will be implemented
|
||||||
// as a faction of the local target cell size
|
// as a faction of the local target cell size
|
||||||
// Any scalar with a name <name>Size specifies an absolute size.
|
// Any scalar with a name <name>Size specifies an absolute size.
|
||||||
@ -41,9 +41,19 @@ geometry
|
|||||||
// Internal shape
|
// Internal shape
|
||||||
coneAndSphere.obj
|
coneAndSphere.obj
|
||||||
{
|
{
|
||||||
|
name coneAndSphere;
|
||||||
type triSurfaceMesh;
|
type triSurfaceMesh;
|
||||||
|
tolerance 0.00001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// // Internal shape
|
||||||
|
// coneAndSphere
|
||||||
|
// {
|
||||||
|
// type searchableSurfaceWithGaps;
|
||||||
|
// surface coneAndSphere.obj;
|
||||||
|
// gap 0.001;
|
||||||
|
// }
|
||||||
|
|
||||||
// Bounds of domain
|
// Bounds of domain
|
||||||
domain.stl
|
domain.stl
|
||||||
{
|
{
|
||||||
@ -119,7 +129,7 @@ surfaceConformation
|
|||||||
|
|
||||||
geometryToConformTo
|
geometryToConformTo
|
||||||
{
|
{
|
||||||
coneAndSphere.obj
|
coneAndSphere
|
||||||
{
|
{
|
||||||
featureMethod extendedFeatureEdgeMesh;
|
featureMethod extendedFeatureEdgeMesh;
|
||||||
extendedFeatureEdgeMesh "coneAndSphere.extendedFeatureEdgeMesh";
|
extendedFeatureEdgeMesh "coneAndSphere.extendedFeatureEdgeMesh";
|
||||||
@ -161,7 +171,7 @@ initialPoints
|
|||||||
maxSizeRatio 5.0;
|
maxSizeRatio 5.0;
|
||||||
// Per box sample 3x3x3 internally
|
// Per box sample 3x3x3 internally
|
||||||
sampleResolution 3;
|
sampleResolution 3;
|
||||||
// Additionally per face of the box sample 5x5
|
// Additionally per face of the box sample 3
|
||||||
surfaceSampleResolution 3;
|
surfaceSampleResolution 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ actions
|
|||||||
source boxToCell;
|
source boxToCell;
|
||||||
sourceInfo
|
sourceInfo
|
||||||
{
|
{
|
||||||
box (-100 -100 -0.01)(100 100 100);
|
box (-100 -100 0)(100 100 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ actions
|
|||||||
source boxToCell;
|
source boxToCell;
|
||||||
sourceInfo
|
sourceInfo
|
||||||
{
|
{
|
||||||
box (-100 0 -100)(100 100 100);
|
box (-100 0.1 -100)(100 100 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ actions
|
|||||||
source boxToCell;
|
source boxToCell;
|
||||||
sourceInfo
|
sourceInfo
|
||||||
{
|
{
|
||||||
box (0 -100 -100)(100 100 100);
|
box (0.3 -100 -100)(100 100 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user