mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cv2DMesh: Initial Commit with tutorials
This commit is contained in:
50
tutorials/mesh/cv2DMesh/OpenCFD/0.org/T
Normal file
50
tutorials/mesh/cv2DMesh/OpenCFD/0.org/T
Normal file
@ -0,0 +1,50 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object T;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 1 0 0 0];
|
||||
|
||||
internalField uniform 1;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
box_inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
box_outlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
box_bottom
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
box_top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
letters_text
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
59
tutorials/mesh/cv2DMesh/OpenCFD/0.org/U
Normal file
59
tutorials/mesh/cv2DMesh/OpenCFD/0.org/U
Normal file
@ -0,0 +1,59 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
box_inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (3 0 0);
|
||||
}
|
||||
|
||||
box_outlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
box_bottom
|
||||
{
|
||||
type supersonicFreestream;
|
||||
UInf (3 0 0);
|
||||
pInf 1;
|
||||
TInf 1;
|
||||
gamma 1.4;
|
||||
}
|
||||
|
||||
box_top
|
||||
{
|
||||
type supersonicFreestream;
|
||||
UInf (3 0 0);
|
||||
pInf 1;
|
||||
TInf 1;
|
||||
gamma 1.4;
|
||||
}
|
||||
|
||||
letters_text
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
51
tutorials/mesh/cv2DMesh/OpenCFD/0.org/p
Normal file
51
tutorials/mesh/cv2DMesh/OpenCFD/0.org/p
Normal file
@ -0,0 +1,51 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 1;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
box_inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
box_outlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
box_bottom
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
box_top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
letters_text
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
15
tutorials/mesh/cv2DMesh/OpenCFD/Allclean
Executable file
15
tutorials/mesh/cv2DMesh/OpenCFD/Allclean
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
15
tutorials/mesh/cv2DMesh/OpenCFD/Allrun
Executable file
15
tutorials/mesh/cv2DMesh/OpenCFD/Allrun
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
cp system/controlDict.mesher system/controlDict
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
runApplication cv2DMesh -overwrite
|
||||
runApplication extrude2DMesh -overwrite polyMesh2D
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
18
tutorials/mesh/cv2DMesh/OpenCFD/Allrun-rhoCentralFoam
Executable file
18
tutorials/mesh/cv2DMesh/OpenCFD/Allrun-rhoCentralFoam
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get the number of processors to run on from system/decomposeParDict
|
||||
nProcs=$(getNumberOfProcessors)
|
||||
|
||||
cp system/controlDict.rhoCentralFoam system/controlDict
|
||||
cp -r 0.org 0
|
||||
|
||||
runApplication decomposePar
|
||||
runParallel rhoCentralFoam $nProcs
|
||||
runApplication reconstructPar
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,43 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermophysicalProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
thermoType hePsiThermo<pureMixture<const<hConst<perfectGas<specie>>,sensibleEnthalpy>>>;
|
||||
|
||||
// Note: these are the properties for a "normalised" inviscid gas
|
||||
// for which the speed of sound is 1 m/s at a temperature of 1K
|
||||
// and gamma = 7/5
|
||||
mixture
|
||||
{
|
||||
specie
|
||||
{
|
||||
nMoles 1;
|
||||
molWeight 11640.3;
|
||||
}
|
||||
thermodynamics
|
||||
{
|
||||
Cp 2.5;
|
||||
Hf 0;
|
||||
}
|
||||
transport
|
||||
{
|
||||
mu 0;
|
||||
Pr 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,96 @@
|
||||
solid back
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex -1.618703 -1.830978 -0.557967
|
||||
vertex 4.82342 2.27362 -0.557967
|
||||
vertex 4.82342 -1.830978 -0.557967
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex -1.618703 -1.830978 -0.557967
|
||||
vertex -1.618703 2.27362 -0.557967
|
||||
vertex 4.82342 2.27362 -0.557967
|
||||
endloop
|
||||
endfacet
|
||||
endsolid back
|
||||
solid front
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 4.82342 2.27362 0.586404
|
||||
vertex -1.618703 -1.830978 0.586404
|
||||
vertex 4.82342 -1.830978 0.586404
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 4.82342 2.27362 0.586404
|
||||
vertex -1.618703 2.27362 0.586404
|
||||
vertex -1.618703 -1.830978 0.586404
|
||||
endloop
|
||||
endfacet
|
||||
endsolid front
|
||||
solid bottom
|
||||
facet normal -2.19049e-08 -1 2.0834e-07
|
||||
outer loop
|
||||
vertex -1.618703 -1.830978 0.586404
|
||||
vertex -1.618703 -1.830978 -0.557967
|
||||
vertex 4.82342 -1.830978 -0.557967
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1.97144e-07 -1 -6.25021e-07
|
||||
outer loop
|
||||
vertex 4.82342 -1.830978 -0.557967
|
||||
vertex 4.82342 -1.830978 0.586404
|
||||
vertex -1.618703 -1.830978 0.586404
|
||||
endloop
|
||||
endfacet
|
||||
endsolid bottom
|
||||
solid top
|
||||
facet normal 6.57148e-08 1 4.1668e-07
|
||||
outer loop
|
||||
vertex 4.82342 2.27362 0.586404
|
||||
vertex 4.82342 2.27362 -0.557967
|
||||
vertex -1.618703 2.27362 -0.557967
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 8.76197e-08 1 3.1251e-07
|
||||
outer loop
|
||||
vertex -1.618703 2.27362 -0.557967
|
||||
vertex -1.618703 2.27362 0.586404
|
||||
vertex 4.82342 2.27362 0.586404
|
||||
endloop
|
||||
endfacet
|
||||
endsolid top
|
||||
solid inlet
|
||||
facet normal -1 2.54891e-07 -2.60425e-07
|
||||
outer loop
|
||||
vertex -1.618703 -1.830978 -0.557967
|
||||
vertex -1.618703 2.27362 0.586404
|
||||
vertex -1.618703 2.27362 -0.557967
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 1.69927e-07 -1.0417e-07
|
||||
outer loop
|
||||
vertex -1.618703 -1.830978 -0.557967
|
||||
vertex -1.618703 -1.830978 0.586404
|
||||
vertex -1.618703 2.27362 0.586404
|
||||
endloop
|
||||
endfacet
|
||||
endsolid inlet
|
||||
solid outlet
|
||||
facet normal 1 0 8.33361e-07
|
||||
outer loop
|
||||
vertex 4.82342 2.27362 -0.557967
|
||||
vertex 4.82342 -1.830978 0.586404
|
||||
vertex 4.82342 -1.830978 -0.557967
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 -6.79708e-07 -4.16681e-07
|
||||
outer loop
|
||||
vertex 4.82342 2.27362 -0.557967
|
||||
vertex 4.82342 2.27362 0.586404
|
||||
vertex 4.82342 -1.830978 0.586404
|
||||
endloop
|
||||
endfacet
|
||||
endsolid outlet
|
||||
16466
tutorials/mesh/cv2DMesh/OpenCFD/constant/triSurface/opencfd_text.stl
Normal file
16466
tutorials/mesh/cv2DMesh/OpenCFD/constant/triSurface/opencfd_text.stl
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
simulationType laminar;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
55
tutorials/mesh/cv2DMesh/OpenCFD/system/controlDict
Normal file
55
tutorials/mesh/cv2DMesh/OpenCFD/system/controlDict
Normal file
@ -0,0 +1,55 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application rhoCentralFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 10;
|
||||
|
||||
deltaT 0.001;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 1;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
55
tutorials/mesh/cv2DMesh/OpenCFD/system/controlDict.mesher
Normal file
55
tutorials/mesh/cv2DMesh/OpenCFD/system/controlDict.mesher
Normal file
@ -0,0 +1,55 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application rhoCentralFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 1;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 0.2;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,55 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application rhoCentralFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 10;
|
||||
|
||||
deltaT 0.001;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 1;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
158
tutorials/mesh/cv2DMesh/OpenCFD/system/cv2DMeshDict
Normal file
158
tutorials/mesh/cv2DMesh/OpenCFD/system/cv2DMeshDict
Normal file
@ -0,0 +1,158 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object cv2DMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
geometry
|
||||
{
|
||||
opencfd_text.stl
|
||||
{
|
||||
name letters;
|
||||
type closedTriSurfaceMesh;
|
||||
}
|
||||
|
||||
opencfd_box.stl
|
||||
{
|
||||
name box;
|
||||
type closedTriSurfaceMesh;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
// The z-coordinate of the plane is taken from here.
|
||||
locationInMesh (0 0 0);
|
||||
|
||||
pointPairDistanceCoeff 0.1;
|
||||
|
||||
minEdgeLenCoeff 0.1;
|
||||
|
||||
maxNotchLenCoeff 1.0;
|
||||
|
||||
minNearPointDistCoeff 0.1;
|
||||
|
||||
maxQuadAngle 120;
|
||||
|
||||
// Insert near-boundary point mirror or point-pairs
|
||||
insertSurfaceNearestPointPairs yes;
|
||||
|
||||
// Mirror near-boundary points rather than insert point-pairs
|
||||
mirrorPoints no;
|
||||
|
||||
// Insert point-pairs vor dual-cell vertices very near the surface
|
||||
insertSurfaceNearPointPairs yes;
|
||||
|
||||
// Maximum number of iterations used in boundaryConform.
|
||||
maxBoundaryConformingIter 5;
|
||||
|
||||
geometryToConformTo
|
||||
{
|
||||
letters
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "opencfd_text.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
box
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "opencfd_box.extendedFeatureEdgeMesh";
|
||||
}
|
||||
}
|
||||
|
||||
additionalFeatures
|
||||
{}
|
||||
|
||||
// Choose if to randomise the initial grid created by insertGrid.
|
||||
randomiseInitialGrid yes;
|
||||
|
||||
// Perturbation fraction, 1 = cell-size.
|
||||
randomPerturbation 0.1;
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
// This is a tolerance for determining whether to deal with surface
|
||||
// protrusions or not.
|
||||
minCellSize 0.02;
|
||||
|
||||
// Assign a priority to all requests for cell sizes, the highest overrules.
|
||||
defaultPriority 0;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
letters
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode bothSides;
|
||||
cellSizeFunction uniform;
|
||||
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSize $minCellSize;
|
||||
distance 1;
|
||||
}
|
||||
uniformCoeffs
|
||||
{}
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSize $minCellSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
relaxationModel adaptiveLinear;
|
||||
|
||||
adaptiveLinearCoeffs
|
||||
{
|
||||
relaxationStart 0.5;
|
||||
relaxationEnd 0.0;
|
||||
}
|
||||
|
||||
objOutput no;
|
||||
|
||||
meshedSurfaceOutput yes;
|
||||
|
||||
// Near-wall region where cells are aligned with the wall specified as a
|
||||
// number of cell layers
|
||||
nearWallAlignedDist 3;
|
||||
}
|
||||
|
||||
|
||||
shortEdgeFilter
|
||||
{
|
||||
// Factor to multiply the average of a face's edge lengths by.
|
||||
// If an edge of that face is smaller than that value then delete it.
|
||||
shortEdgeFilterFactor 0.2;
|
||||
|
||||
// Weighting for the lengths of edges that are attached to the boundaries.
|
||||
// Used when calculating the length of an edge. Default 2.0.
|
||||
edgeAttachedToBoundaryFactor 2.0;
|
||||
}
|
||||
|
||||
|
||||
extrusion
|
||||
{
|
||||
extrude off;
|
||||
|
||||
#include "extrude2DMeshDict"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
45
tutorials/mesh/cv2DMesh/OpenCFD/system/decomposeParDict
Normal file
45
tutorials/mesh/cv2DMesh/OpenCFD/system/decomposeParDict
Normal file
@ -0,0 +1,45 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 8;
|
||||
|
||||
method hierarchical;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 2 2 1 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 2 2 2 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
42
tutorials/mesh/cv2DMesh/OpenCFD/system/extrude2DMeshDict
Normal file
42
tutorials/mesh/cv2DMesh/OpenCFD/system/extrude2DMeshDict
Normal file
@ -0,0 +1,42 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object extrude2DMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
extrudeModel linearDirection;
|
||||
|
||||
patchInfo
|
||||
{}
|
||||
|
||||
patchType empty;
|
||||
|
||||
nLayers 1;
|
||||
|
||||
expansionRatio 1.0;
|
||||
|
||||
linearDirectionCoeffs
|
||||
{
|
||||
direction (0 0 1);
|
||||
thickness 0.1;
|
||||
}
|
||||
|
||||
wedgeCoeffs
|
||||
{
|
||||
axisPt (0 0 0);
|
||||
axis (1 0 0);
|
||||
angle 10;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
61
tutorials/mesh/cv2DMesh/OpenCFD/system/fvSchemes
Normal file
61
tutorials/mesh/cv2DMesh/OpenCFD/system/fvSchemes
Normal file
@ -0,0 +1,61 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//fluxScheme Kurganov;
|
||||
fluxScheme Tadmor;
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(tauMC) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
reconstruct(rho) vanLeer;
|
||||
reconstruct(U) vanLeerV;
|
||||
reconstruct(T) vanLeer;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
42
tutorials/mesh/cv2DMesh/OpenCFD/system/fvSolution
Normal file
42
tutorials/mesh/cv2DMesh/OpenCFD/system/fvSolution
Normal file
@ -0,0 +1,42 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
"(rho|rhoU|rhoE)"
|
||||
{
|
||||
solver diagonal;
|
||||
}
|
||||
|
||||
U
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
nSweeps 2;
|
||||
tolerance 1e-09;
|
||||
relTol 0.01;
|
||||
}
|
||||
|
||||
h
|
||||
{
|
||||
$U;
|
||||
tolerance 1e-10;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,87 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object surfaceFeatureExtractDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
opencfd_text.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
// Mark edges whose adjacent surface normals are at an angle less
|
||||
// than includedAngle as features
|
||||
// - 0 : selects no edges
|
||||
// - 180: selects all edges
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Use a plane to select feature edges
|
||||
// (normal)(basePoint)
|
||||
// Keep only edges that intersect the plane will be included
|
||||
plane (0 0 1)(0 0 0);
|
||||
|
||||
// Keep nonManifold edges (edges with >2 connected faces where
|
||||
// the faces form more than two different normal planes)
|
||||
nonManifoldEdges no;
|
||||
|
||||
// Keep open edges (edges with 1 connected face)
|
||||
openEdges no;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
// Write features to obj format for postprocessing
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
opencfd_box.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
// Mark edges whose adjacent surface normals are at an angle less
|
||||
// than includedAngle as features
|
||||
// - 0 : selects no edges
|
||||
// - 180: selects all edges
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Use a plane to select feature edges
|
||||
// (normal)(basePoint)
|
||||
// Keep only edges that intersect the plane will be included
|
||||
plane (0 0 1)(0 0 0);
|
||||
|
||||
// Keep nonManifold edges (edges with >2 connected faces where
|
||||
// the faces form more than two different normal planes)
|
||||
nonManifoldEdges no;
|
||||
|
||||
// Keep open edges (edges with 1 connected face)
|
||||
openEdges no;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
// Write features to obj format for postprocessing
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
16
tutorials/mesh/cv2DMesh/jaggedBoundary/Allclean
Executable file
16
tutorials/mesh/cv2DMesh/jaggedBoundary/Allclean
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/jaggedBoundary.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
13
tutorials/mesh/cv2DMesh/jaggedBoundary/Allrun
Executable file
13
tutorials/mesh/cv2DMesh/jaggedBoundary/Allrun
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
runApplication cv2DMesh -overwrite
|
||||
runApplication extrude2DMesh -overwrite MeshedSurface
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,954 @@
|
||||
solid jagged
|
||||
facet normal 0.468764725245 0.883323062286 -0
|
||||
outer loop
|
||||
vertex 0.0385189987719 -0.0289657991379 -1.5
|
||||
vertex -0.0187957007438 0.00145015004091 1.5
|
||||
vertex 0.0385189987719 -0.0289657991379 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.647754318236 0.761849291662 -0
|
||||
outer loop
|
||||
vertex -0.0682383030653 0.0434882007539 -1.5
|
||||
vertex -0.0682383030653 0.0434882007539 1.5
|
||||
vertex -0.0187957007438 0.00145015004091 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.647754318236 0.761849291662 -0
|
||||
outer loop
|
||||
vertex -0.0187957007438 0.00145015004091 -1.5
|
||||
vertex -0.0682383030653 0.0434882007539 1.5
|
||||
vertex -0.0187957007438 0.00145015004091 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.796376571447 0.604801088334 -0
|
||||
outer loop
|
||||
vertex -0.107496999204 0.0951823964715 -1.5
|
||||
vertex -0.107496999204 0.0951823964715 1.5
|
||||
vertex -0.0682383030653 0.0434882007539 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.796376571447 0.604801088334 -0
|
||||
outer loop
|
||||
vertex -0.0682383030653 0.0434882007539 -1.5
|
||||
vertex -0.107496999204 0.0951823964715 1.5
|
||||
vertex -0.0682383030653 0.0434882007539 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.907731420759 0.419551746233 -0
|
||||
outer loop
|
||||
vertex -0.134736001492 0.154116004705 -1.5
|
||||
vertex -0.134736001492 0.154116004705 1.5
|
||||
vertex -0.107496999204 0.0951823964715 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.907731420759 0.419551746233 -0
|
||||
outer loop
|
||||
vertex -0.107496999204 0.0951823964715 -1.5
|
||||
vertex -0.134736001492 0.154116004705 1.5
|
||||
vertex -0.107496999204 0.0951823964715 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.976665530864 0.214766014121 -0
|
||||
outer loop
|
||||
vertex -0.148680999875 0.217531993985 -1.5
|
||||
vertex -0.148680999875 0.217531993985 1.5
|
||||
vertex -0.134736001492 0.154116004705 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.976665530864 0.214766014121 -0
|
||||
outer loop
|
||||
vertex -0.134736001492 0.154116004705 -1.5
|
||||
vertex -0.148680999875 0.217531993985 1.5
|
||||
vertex -0.134736001492 0.154116004705 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 -0
|
||||
outer loop
|
||||
vertex -0.148680999875 0.282467007637 -1.5
|
||||
vertex -0.148680999875 0.282467007637 1.5
|
||||
vertex -0.148680999875 0.217531993985 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex -0.148680999875 0.217531993985 -1.5
|
||||
vertex -0.148680999875 0.282467007637 1.5
|
||||
vertex -0.148680999875 0.217531993985 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.976666240056 -0.214762788992 0
|
||||
outer loop
|
||||
vertex -0.134736001492 0.345883995295 -1.5
|
||||
vertex -0.134736001492 0.345883995295 1.5
|
||||
vertex -0.148680999875 0.282467007637 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.976666240056 -0.214762788992 0
|
||||
outer loop
|
||||
vertex -0.148680999875 0.282467007637 -1.5
|
||||
vertex -0.134736001492 0.345883995295 1.5
|
||||
vertex -0.148680999875 0.282467007637 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.90773249136 -0.4195494299 0
|
||||
outer loop
|
||||
vertex -0.107496999204 0.404817998409 -1.5
|
||||
vertex -0.107496999204 0.404817998409 1.5
|
||||
vertex -0.134736001492 0.345883995295 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.90773249136 -0.4195494299 0
|
||||
outer loop
|
||||
vertex -0.134736001492 0.345883995295 -1.5
|
||||
vertex -0.107496999204 0.404817998409 1.5
|
||||
vertex -0.134736001492 0.345883995295 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.796375500831 -0.604802498073 0
|
||||
outer loop
|
||||
vertex -0.0682383030653 0.456512004137 -1.5
|
||||
vertex -0.0682383030653 0.456512004137 1.5
|
||||
vertex -0.107496999204 0.404817998409 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.99415065992 0.108002154517 0
|
||||
outer loop
|
||||
vertex 0.442546993494 0.185445994139 -1.5
|
||||
vertex 0.442546993494 0.185445994139 1.5
|
||||
vertex 0.449559986591 0.25 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.99415065992 0.108002154517 0
|
||||
outer loop
|
||||
vertex 0.449559986591 0.25 -1.5
|
||||
vertex 0.442546993494 0.185445994139 1.5
|
||||
vertex 0.449559986591 0.25 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.947745893024 0.319026209355 0
|
||||
outer loop
|
||||
vertex 0.421833008528 0.12391000241 -1.5
|
||||
vertex 0.421833008528 0.12391000241 1.5
|
||||
vertex 0.442546993494 0.185445994139 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.947745893024 0.319026209355 0
|
||||
outer loop
|
||||
vertex 0.442546993494 0.185445994139 -1.5
|
||||
vertex 0.421833008528 0.12391000241 1.5
|
||||
vertex 0.442546993494 0.185445994139 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.857078113059 0.515186478971 0
|
||||
outer loop
|
||||
vertex 0.388388007879 0.0682699978352 -1.5
|
||||
vertex 0.388388007879 0.0682699978352 1.5
|
||||
vertex 0.421833008528 0.12391000241 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.857078113059 0.515186478971 0
|
||||
outer loop
|
||||
vertex 0.421833008528 0.12391000241 -1.5
|
||||
vertex 0.388388007879 0.0682699978352 1.5
|
||||
vertex 0.421833008528 0.12391000241 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.726331758 0.687344293146 0
|
||||
outer loop
|
||||
vertex 0.343775987625 0.02112749964 -1.5
|
||||
vertex 0.343775987625 0.02112749964 1.5
|
||||
vertex 0.388388007879 0.0682699978352 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.726331758 0.687344293146 0
|
||||
outer loop
|
||||
vertex 0.388388007879 0.0682699978352 -1.5
|
||||
vertex 0.343775987625 0.02112749964 1.5
|
||||
vertex 0.388388007879 0.0682699978352 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.561565427605 0.827432335916 0
|
||||
outer loop
|
||||
vertex 0.290082991123 -0.0153131000698 -1.5
|
||||
vertex 0.290082991123 -0.0153131000698 1.5
|
||||
vertex 0.343775987625 0.02112749964 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.561565427605 0.827432335916 0
|
||||
outer loop
|
||||
vertex 0.343775987625 0.02112749964 -1.5
|
||||
vertex 0.290082991123 -0.0153131000698 1.5
|
||||
vertex 0.343775987625 0.02112749964 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.370449778906 0.928852497068 0
|
||||
outer loop
|
||||
vertex 0.229818999767 -0.0393478982151 -1.5
|
||||
vertex 0.229818999767 -0.0393478982151 1.5
|
||||
vertex 0.290082991123 -0.0153131000698 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.370449778906 0.928852497068 0
|
||||
outer loop
|
||||
vertex 0.290082991123 -0.0153131000698 -1.5
|
||||
vertex 0.229818999767 -0.0393478982151 1.5
|
||||
vertex 0.290082991123 -0.0153131000698 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.161937308414 0.986801047904 0
|
||||
outer loop
|
||||
vertex 0.165802001953 -0.0498532988131 -1.5
|
||||
vertex 0.165802001953 -0.0498532988131 1.5
|
||||
vertex 0.229818999767 -0.0393478982151 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.161937308414 0.986801047904 0
|
||||
outer loop
|
||||
vertex 0.229818999767 -0.0393478982151 -1.5
|
||||
vertex 0.165802001953 -0.0498532988131 1.5
|
||||
vertex 0.229818999767 -0.0393478982151 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.0541918998299 0.998530539339 -0
|
||||
outer loop
|
||||
vertex 0.101025998592 -0.0463377982378 -1.5
|
||||
vertex 0.101025998592 -0.0463377982378 1.5
|
||||
vertex 0.165802001953 -0.0498532988131 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.0541918998299 0.998530539339 -0
|
||||
outer loop
|
||||
vertex 0.165802001953 -0.0498532988131 -1.5
|
||||
vertex 0.101025998592 -0.0463377982378 1.5
|
||||
vertex 0.165802001953 -0.0498532988131 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.267771842801 0.963482350748 -0
|
||||
outer loop
|
||||
vertex 0.0385189987719 -0.0289657991379 -1.5
|
||||
vertex 0.0385189987719 -0.0289657991379 1.5
|
||||
vertex 0.101025998592 -0.0463377982378 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.267771842801 0.963482350748 -0
|
||||
outer loop
|
||||
vertex 0.101025998592 -0.0463377982378 -1.5
|
||||
vertex 0.0385189987719 -0.0289657991379 1.5
|
||||
vertex 0.101025998592 -0.0463377982378 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.468764725245 0.883323062286 -0
|
||||
outer loop
|
||||
vertex -0.0187957007438 0.00145015004091 -1.5
|
||||
vertex -0.0187957007438 0.00145015004091 1.5
|
||||
vertex 0.0385189987719 -0.0289657991379 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.947745881345 -0.31902624405 0
|
||||
outer loop
|
||||
vertex 0.442546993494 0.314554005861 -1.5
|
||||
vertex 0.442546993494 0.314554005861 1.5
|
||||
vertex 0.421833008528 0.376089990139 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.947745881345 -0.31902624405 0
|
||||
outer loop
|
||||
vertex 0.421833008528 0.376089990139 -1.5
|
||||
vertex 0.442546993494 0.314554005861 1.5
|
||||
vertex 0.421833008528 0.376089990139 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.99415065992 -0.108002154517 0
|
||||
outer loop
|
||||
vertex 0.449559986591 0.25 -1.5
|
||||
vertex 0.449559986591 0.25 1.5
|
||||
vertex 0.442546993494 0.314554005861 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.99415065992 -0.108002154517 0
|
||||
outer loop
|
||||
vertex 0.442546993494 0.314554005861 -1.5
|
||||
vertex 0.449559986591 0.25 1.5
|
||||
vertex 0.442546993494 0.314554005861 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex -0.300000011921 0 -1.39999997616
|
||||
vertex -0.300000011921 0 1.5
|
||||
vertex -0.699999988079 0 -1.39999997616
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex -0.699999988079 0 -1.39999997616
|
||||
vertex -0.300000011921 0 1.5
|
||||
vertex -0.699999988079 0 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.300000011921 -0.40000000596 -1.39999997616
|
||||
vertex -0.300000011921 -0.40000000596 1.5
|
||||
vertex -0.300000011921 0 -1.39999997616
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.300000011921 0 -1.39999997616
|
||||
vertex -0.300000011921 -0.40000000596 1.5
|
||||
vertex -0.300000011921 0 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 0
|
||||
outer loop
|
||||
vertex -0.699999988079 -0.40000000596 -1.39999997616
|
||||
vertex -0.699999988079 -0.40000000596 1.5
|
||||
vertex -0.300000011921 -0.40000000596 -1.39999997616
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 -0
|
||||
outer loop
|
||||
vertex -0.300000011921 -0.40000000596 -1.39999997616
|
||||
vertex -0.699999988079 -0.40000000596 1.5
|
||||
vertex -0.300000011921 -0.40000000596 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 -0
|
||||
outer loop
|
||||
vertex -0.699999988079 0 -1.39999997616
|
||||
vertex -0.699999988079 0 1.5
|
||||
vertex -0.699999988079 -0.40000000596 -1.39999997616
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex -0.699999988079 -0.40000000596 -1.39999997616
|
||||
vertex -0.699999988079 0 1.5
|
||||
vertex -0.699999988079 -0.40000000596 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.796375500831 -0.604802498073 0
|
||||
outer loop
|
||||
vertex -0.107496999204 0.404817998409 -1.5
|
||||
vertex -0.0682383030653 0.456512004137 1.5
|
||||
vertex -0.107496999204 0.404817998409 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.647754558747 -0.761849087171 0
|
||||
outer loop
|
||||
vertex -0.018795799464 0.498549997807 -1.5
|
||||
vertex -0.018795799464 0.498549997807 1.5
|
||||
vertex -0.0682383030653 0.456512004137 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.647754558747 -0.761849087171 0
|
||||
outer loop
|
||||
vertex -0.0682383030653 0.456512004137 -1.5
|
||||
vertex -0.018795799464 0.498549997807 1.5
|
||||
vertex -0.0682383030653 0.456512004137 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.468765490288 -0.88332265629 0
|
||||
outer loop
|
||||
vertex 0.0385188981891 0.528966009617 -1.5
|
||||
vertex 0.0385188981891 0.528966009617 1.5
|
||||
vertex -0.018795799464 0.498549997807 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.468765490288 -0.88332265629 0
|
||||
outer loop
|
||||
vertex -0.018795799464 0.498549997807 -1.5
|
||||
vertex 0.0385188981891 0.528966009617 1.5
|
||||
vertex -0.018795799464 0.498549997807 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.267771629378 -0.963482410063 0
|
||||
outer loop
|
||||
vertex 0.101025998592 0.546338021755 -1.5
|
||||
vertex 0.101025998592 0.546338021755 1.5
|
||||
vertex 0.0385188981891 0.528966009617 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.267771629378 -0.963482410063 0
|
||||
outer loop
|
||||
vertex 0.0385188981891 0.528966009617 -1.5
|
||||
vertex 0.101025998592 0.546338021755 1.5
|
||||
vertex 0.0385188981891 0.528966009617 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.0541842846189 -0.9985309526 0
|
||||
outer loop
|
||||
vertex 0.165802001953 0.549853026867 -1.5
|
||||
vertex 0.165802001953 0.549853026867 1.5
|
||||
vertex 0.101025998592 0.546338021755 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.0541842846189 -0.9985309526 0
|
||||
outer loop
|
||||
vertex 0.101025998592 0.546338021755 -1.5
|
||||
vertex 0.165802001953 0.549853026867 1.5
|
||||
vertex 0.101025998592 0.546338021755 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.161931604744 -0.986801983878 0
|
||||
outer loop
|
||||
vertex 0.229818999767 0.539348006248 -1.5
|
||||
vertex 0.229818999767 0.539348006248 1.5
|
||||
vertex 0.165802001953 0.549853026867 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.161931604744 -0.986801983878 0
|
||||
outer loop
|
||||
vertex 0.165802001953 0.549853026867 -1.5
|
||||
vertex 0.229818999767 0.539348006248 1.5
|
||||
vertex 0.165802001953 0.549853026867 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.370452156748 -0.928851548721 0
|
||||
outer loop
|
||||
vertex 0.290082991123 0.515313029289 -1.5
|
||||
vertex 0.290082991123 0.515313029289 1.5
|
||||
vertex 0.229818999767 0.539348006248 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.370452156748 -0.928851548721 0
|
||||
outer loop
|
||||
vertex 0.229818999767 0.539348006248 -1.5
|
||||
vertex 0.290082991123 0.515313029289 1.5
|
||||
vertex 0.229818999767 0.539348006248 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.561559256785 -0.827436523921 0
|
||||
outer loop
|
||||
vertex 0.343775987625 0.47887301445 -1.5
|
||||
vertex 0.343775987625 0.47887301445 1.5
|
||||
vertex 0.290082991123 0.515313029289 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.561559256785 -0.827436523921 0
|
||||
outer loop
|
||||
vertex 0.290082991123 0.515313029289 -1.5
|
||||
vertex 0.343775987625 0.47887301445 1.5
|
||||
vertex 0.290082991123 0.515313029289 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.726335500024 -0.687340338846 0
|
||||
outer loop
|
||||
vertex 0.388388007879 0.431730002165 -1.5
|
||||
vertex 0.388388007879 0.431730002165 1.5
|
||||
vertex 0.343775987625 0.47887301445 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.726335500024 -0.687340338846 0
|
||||
outer loop
|
||||
vertex 0.343775987625 0.47887301445 -1.5
|
||||
vertex 0.388388007879 0.431730002165 1.5
|
||||
vertex 0.343775987625 0.47887301445 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.857078143521 -0.515186428295 0
|
||||
outer loop
|
||||
vertex 0.421833008528 0.376089990139 -1.5
|
||||
vertex 0.421833008528 0.376089990139 1.5
|
||||
vertex 0.388388007879 0.431730002165 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.857078143521 -0.515186428295 0
|
||||
outer loop
|
||||
vertex 0.388388007879 0.431730002165 -1.5
|
||||
vertex 0.421833008528 0.376089990139 1.5
|
||||
vertex 0.388388007879 0.431730002165 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 -0 0
|
||||
outer loop
|
||||
vertex 1.29999995232 0 1.5
|
||||
vertex 1.29999995232 0.40000000596 -1.5
|
||||
vertex 1.29999995232 0.40000000596 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0.899999976158 0 1.5
|
||||
vertex 0.899999976158 0 -1.5
|
||||
vertex 1.29999995232 0 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0.899999976158 0 1.5
|
||||
vertex 1.29999995232 0 -1.5
|
||||
vertex 1.29999995232 0 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.196116149188 -0.980580672881 0
|
||||
outer loop
|
||||
vertex 0.40000000596 -0.10000000149 1.5
|
||||
vertex 0.40000000596 -0.10000000149 -1.5
|
||||
vertex 0.899999976158 0 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.196116149188 -0.980580672881 0
|
||||
outer loop
|
||||
vertex 0.40000000596 -0.10000000149 1.5
|
||||
vertex 0.899999976158 0 -1.5
|
||||
vertex 0.899999976158 0 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex 0.40000000596 -0.300000011921 1.5
|
||||
vertex 0.40000000596 -0.300000011921 -1.5
|
||||
vertex 0.40000000596 -0.10000000149 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 -0 0
|
||||
outer loop
|
||||
vertex 0.40000000596 -0.300000011921 1.5
|
||||
vertex 0.40000000596 -0.10000000149 -1.5
|
||||
vertex 0.40000000596 -0.10000000149 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.242535608029 0.970142504397 0
|
||||
outer loop
|
||||
vertex 0.800000011921 -0.40000000596 1.5
|
||||
vertex 0.800000011921 -0.40000000596 -1.5
|
||||
vertex 0.40000000596 -0.300000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.242535608029 0.970142504397 0
|
||||
outer loop
|
||||
vertex 0.800000011921 -0.40000000596 1.5
|
||||
vertex 0.40000000596 -0.300000011921 -1.5
|
||||
vertex 0.40000000596 -0.300000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.242535591022 0.970142508649 0
|
||||
outer loop
|
||||
vertex 1.20000004768 -0.5 1.5
|
||||
vertex 1.20000004768 -0.5 -1.5
|
||||
vertex 0.800000011921 -0.40000000596 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.242535591022 0.970142508649 0
|
||||
outer loop
|
||||
vertex 1.20000004768 -0.5 1.5
|
||||
vertex 0.800000011921 -0.40000000596 -1.5
|
||||
vertex 0.800000011921 -0.40000000596 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.980580666699 -0.196116180098 0
|
||||
outer loop
|
||||
vertex 1.10000002384 -1 1.5
|
||||
vertex 1.10000002384 -1 -1.5
|
||||
vertex 1.20000004768 -0.5 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.980580666699 -0.196116180098 0
|
||||
outer loop
|
||||
vertex 1.10000002384 -1 1.5
|
||||
vertex 1.20000004768 -0.5 -1.5
|
||||
vertex 1.20000004768 -0.5 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.124034761887 -0.992277873301 0
|
||||
outer loop
|
||||
vertex 0.300000011921 -1.10000002384 1.5
|
||||
vertex 0.300000011921 -1.10000002384 -1.5
|
||||
vertex 1.10000002384 -1 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.124034761887 -0.992277873301 0
|
||||
outer loop
|
||||
vertex 0.300000011921 -1.10000002384 1.5
|
||||
vertex 1.10000002384 -1 -1.5
|
||||
vertex 1.10000002384 -1 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427244312 0.447213488876 0
|
||||
outer loop
|
||||
vertex 0.40000000596 -0.899999976158 1.5
|
||||
vertex 0.40000000596 -0.899999976158 -1.5
|
||||
vertex 0.300000011921 -1.10000002384 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707106781187 0.707106781187 0
|
||||
outer loop
|
||||
vertex -0.600000023842 0.699999988079 1.5
|
||||
vertex -0.600000023842 0.699999988079 -1.5
|
||||
vertex -0.800000011921 0.899999976158 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707106781187 0.707106781187 0
|
||||
outer loop
|
||||
vertex -0.600000023842 0.699999988079 1.5
|
||||
vertex -0.800000011921 0.899999976158 -1.5
|
||||
vertex -0.800000011921 0.899999976158 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 0
|
||||
outer loop
|
||||
vertex -0.40000000596 0.699999988079 1.5
|
||||
vertex -0.40000000596 0.699999988079 -1.5
|
||||
vertex -0.600000023842 0.699999988079 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 0
|
||||
outer loop
|
||||
vertex -0.40000000596 0.699999988079 1.5
|
||||
vertex -0.600000023842 0.699999988079 -1.5
|
||||
vertex -0.600000023842 0.699999988079 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.948683307475 0.316227737744 0
|
||||
outer loop
|
||||
vertex -0.300000011921 1 1.5
|
||||
vertex -0.300000011921 1 -1.5
|
||||
vertex -0.40000000596 0.699999988079 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.948683307475 0.316227737744 0
|
||||
outer loop
|
||||
vertex -0.300000011921 1 1.5
|
||||
vertex -0.40000000596 0.699999988079 -1.5
|
||||
vertex -0.40000000596 0.699999988079 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.316227822563 0.948683279202 0
|
||||
outer loop
|
||||
vertex 0 1.10000002384 1.5
|
||||
vertex 0 1.10000002384 -1.5
|
||||
vertex -0.300000011921 1 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.316227822563 0.948683279202 0
|
||||
outer loop
|
||||
vertex 0 1.10000002384 1.5
|
||||
vertex -0.300000011921 1 -1.5
|
||||
vertex -0.300000011921 1 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.447213675468 0.894427151016 0
|
||||
outer loop
|
||||
vertex 0.20000000298 1 1.5
|
||||
vertex 0.20000000298 1 -1.5
|
||||
vertex 0 1.10000002384 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.447213675468 0.894427151016 0
|
||||
outer loop
|
||||
vertex 0.20000000298 1 1.5
|
||||
vertex 0 1.10000002384 -1.5
|
||||
vertex 0 1.10000002384 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.554700177151 0.832050307054 0
|
||||
outer loop
|
||||
vertex 0.5 0.800000011921 1.5
|
||||
vertex 0.5 0.800000011921 -1.5
|
||||
vertex 0.20000000298 1 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.554700177151 0.832050307054 0
|
||||
outer loop
|
||||
vertex 0.5 0.800000011921 1.5
|
||||
vertex 0.20000000298 1 -1.5
|
||||
vertex 0.20000000298 1 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106781187 0.707106781187 0
|
||||
outer loop
|
||||
vertex 0.699999988079 1 1.5
|
||||
vertex 0.699999988079 1 -1.5
|
||||
vertex 0.5 0.800000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106781187 0.707106781187 0
|
||||
outer loop
|
||||
vertex 0.699999988079 1 1.5
|
||||
vertex 0.5 0.800000011921 -1.5
|
||||
vertex 0.5 0.800000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.554700158076 0.832050319771 0
|
||||
outer loop
|
||||
vertex 1 0.800000011921 1.5
|
||||
vertex 1 0.800000011921 -1.5
|
||||
vertex 0.699999988079 1 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.554700158076 0.832050319771 0
|
||||
outer loop
|
||||
vertex 1 0.800000011921 1.5
|
||||
vertex 0.699999988079 1 -1.5
|
||||
vertex 0.699999988079 1 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.800000050068 0.599999933243 0
|
||||
outer loop
|
||||
vertex 1.29999995232 0.40000000596 1.5
|
||||
vertex 1.29999995232 0.40000000596 -1.5
|
||||
vertex 1 0.800000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.800000050068 0.599999933243 0
|
||||
outer loop
|
||||
vertex 1.29999995232 0.40000000596 1.5
|
||||
vertex 1 0.800000011921 -1.5
|
||||
vertex 1 0.800000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex 1.29999995232 0 1.5
|
||||
vertex 1.29999995232 0 -1.5
|
||||
vertex 1.29999995232 0.40000000596 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106702161 -0.707106860212 -0
|
||||
outer loop
|
||||
vertex -1.20000004768 0.10000000149 1.5
|
||||
vertex -1.20000004768 0.10000000149 -1.5
|
||||
vertex -1.10000002384 0 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106702161 -0.707106860212 0
|
||||
outer loop
|
||||
vertex -1.20000004768 0.10000000149 1.5
|
||||
vertex -1.10000002384 0 -1.5
|
||||
vertex -1.10000002384 0 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427370928 -0.447213235644 -0
|
||||
outer loop
|
||||
vertex -1.29999995232 0.300000011921 1.5
|
||||
vertex -1.29999995232 0.300000011921 -1.5
|
||||
vertex -1.20000004768 0.10000000149 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427370928 -0.447213235644 0
|
||||
outer loop
|
||||
vertex -1.29999995232 0.300000011921 1.5
|
||||
vertex -1.20000004768 0.10000000149 -1.5
|
||||
vertex -1.20000004768 0.10000000149 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427350936 0.447213275628 0
|
||||
outer loop
|
||||
vertex -1.20000004768 0.5 1.5
|
||||
vertex -1.20000004768 0.5 -1.5
|
||||
vertex -1.29999995232 0.300000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427350936 0.447213275628 0
|
||||
outer loop
|
||||
vertex -1.20000004768 0.5 1.5
|
||||
vertex -1.29999995232 0.300000011921 -1.5
|
||||
vertex -1.29999995232 0.300000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427350936 -0.447213275628 -0
|
||||
outer loop
|
||||
vertex -1.29999995232 0.699999988079 1.5
|
||||
vertex -1.29999995232 0.699999988079 -1.5
|
||||
vertex -1.20000004768 0.5 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427350936 -0.447213275628 0
|
||||
outer loop
|
||||
vertex -1.29999995232 0.699999988079 1.5
|
||||
vertex -1.20000004768 0.5 -1.5
|
||||
vertex -1.20000004768 0.5 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 -0
|
||||
outer loop
|
||||
vertex -1.29999995232 0.800000011921 1.5
|
||||
vertex -1.29999995232 0.800000011921 -1.5
|
||||
vertex -1.29999995232 0.699999988079 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex -1.29999995232 0.800000011921 1.5
|
||||
vertex -1.29999995232 0.699999988079 -1.5
|
||||
vertex -1.29999995232 0.699999988079 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.447213808748 0.894427084376 0
|
||||
outer loop
|
||||
vertex -1.10000002384 0.699999988079 1.5
|
||||
vertex -1.10000002384 0.699999988079 -1.5
|
||||
vertex -1.29999995232 0.800000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.447213808748 0.894427084376 0
|
||||
outer loop
|
||||
vertex -1.10000002384 0.699999988079 1.5
|
||||
vertex -1.29999995232 0.800000011921 -1.5
|
||||
vertex -1.29999995232 0.800000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.4472135955 0.894427191 0
|
||||
outer loop
|
||||
vertex -0.899999976158 0.800000011921 1.5
|
||||
vertex -0.899999976158 0.800000011921 -1.5
|
||||
vertex -1.10000002384 0.699999988079 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.4472135955 0.894427191 0
|
||||
outer loop
|
||||
vertex -0.899999976158 0.800000011921 1.5
|
||||
vertex -1.10000002384 0.699999988079 -1.5
|
||||
vertex -1.10000002384 0.699999988079 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106781187 0.707106781187 0
|
||||
outer loop
|
||||
vertex -0.800000011921 0.899999976158 1.5
|
||||
vertex -0.800000011921 0.899999976158 -1.5
|
||||
vertex -0.899999976158 0.800000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106781187 0.707106781187 0
|
||||
outer loop
|
||||
vertex -0.800000011921 0.899999976158 1.5
|
||||
vertex -0.899999976158 0.800000011921 -1.5
|
||||
vertex -0.899999976158 0.800000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.894427244312 0.447213488876 0
|
||||
outer loop
|
||||
vertex 0.40000000596 -0.899999976158 1.5
|
||||
vertex 0.300000011921 -1.10000002384 -1.5
|
||||
vertex 0.300000011921 -1.10000002384 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.316227744812 -0.948683305119 -0
|
||||
outer loop
|
||||
vertex -0.20000000298 -0.699999988079 1.5
|
||||
vertex -0.20000000298 -0.699999988079 -1.5
|
||||
vertex 0.40000000596 -0.899999976158 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.316227744812 -0.948683305119 0
|
||||
outer loop
|
||||
vertex -0.20000000298 -0.699999988079 1.5
|
||||
vertex 0.40000000596 -0.899999976158 -1.5
|
||||
vertex 0.40000000596 -0.899999976158 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707106754845 -0.707106807528 0
|
||||
outer loop
|
||||
vertex -0.40000000596 -0.899999976158 1.5
|
||||
vertex -0.40000000596 -0.899999976158 -1.5
|
||||
vertex -0.20000000298 -0.699999988079 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707106754845 -0.707106807528 0
|
||||
outer loop
|
||||
vertex -0.40000000596 -0.899999976158 1.5
|
||||
vertex -0.20000000298 -0.699999988079 -1.5
|
||||
vertex -0.20000000298 -0.699999988079 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.196116078939 -0.980580686931 -0
|
||||
outer loop
|
||||
vertex -0.899999976158 -0.800000011921 1.5
|
||||
vertex -0.899999976158 -0.800000011921 -1.5
|
||||
vertex -0.40000000596 -0.899999976158 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.196116078939 -0.980580686931 0
|
||||
outer loop
|
||||
vertex -0.899999976158 -0.800000011921 1.5
|
||||
vertex -0.40000000596 -0.899999976158 -1.5
|
||||
vertex -0.40000000596 -0.899999976158 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.316227766017 -0.948683298051 -0
|
||||
outer loop
|
||||
vertex -1.20000004768 -0.699999988079 1.5
|
||||
vertex -1.20000004768 -0.699999988079 -1.5
|
||||
vertex -0.899999976158 -0.800000011921 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.316227766017 -0.948683298051 0
|
||||
outer loop
|
||||
vertex -1.20000004768 -0.699999988079 1.5
|
||||
vertex -0.899999976158 -0.800000011921 -1.5
|
||||
vertex -0.899999976158 -0.800000011921 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.948683382869 -0.31622751156 -0
|
||||
outer loop
|
||||
vertex -1.29999995232 -0.40000000596 1.5
|
||||
vertex -1.29999995232 -0.40000000596 -1.5
|
||||
vertex -1.20000004768 -0.699999988079 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.948683382869 -0.31622751156 0
|
||||
outer loop
|
||||
vertex -1.29999995232 -0.40000000596 1.5
|
||||
vertex -1.20000004768 -0.699999988079 -1.5
|
||||
vertex -1.20000004768 -0.699999988079 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106912895 0.707106649478 0
|
||||
outer loop
|
||||
vertex -1.10000002384 -0.20000000298 1.5
|
||||
vertex -1.10000002384 -0.20000000298 -1.5
|
||||
vertex -1.29999995232 -0.40000000596 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.707106912895 0.707106649478 0
|
||||
outer loop
|
||||
vertex -1.10000002384 -0.20000000298 1.5
|
||||
vertex -1.29999995232 -0.40000000596 -1.5
|
||||
vertex -1.29999995232 -0.40000000596 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.447213515532 0.894427230984 0
|
||||
outer loop
|
||||
vertex -0.899999976158 -0.10000000149 1.5
|
||||
vertex -0.899999976158 -0.10000000149 -1.5
|
||||
vertex -1.10000002384 -0.20000000298 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0.447213515532 0.894427230984 0
|
||||
outer loop
|
||||
vertex -0.899999976158 -0.10000000149 1.5
|
||||
vertex -1.10000002384 -0.20000000298 -1.5
|
||||
vertex -1.10000002384 -0.20000000298 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 -0
|
||||
outer loop
|
||||
vertex -0.899999976158 0.20000000298 1.5
|
||||
vertex -0.899999976158 0.20000000298 -1.5
|
||||
vertex -0.899999976158 -0.10000000149 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex -0.899999976158 0.20000000298 1.5
|
||||
vertex -0.899999976158 -0.10000000149 -1.5
|
||||
vertex -0.899999976158 -0.10000000149 1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707106702161 -0.707106860212 0
|
||||
outer loop
|
||||
vertex -1.10000002384 0 1.5
|
||||
vertex -1.10000002384 0 -1.5
|
||||
vertex -0.899999976158 0.20000000298 -1.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707106702161 -0.707106860212 0
|
||||
outer loop
|
||||
vertex -1.10000002384 0 1.5
|
||||
vertex -0.899999976158 0.20000000298 -1.5
|
||||
vertex -0.899999976158 0.20000000298 1.5
|
||||
endloop
|
||||
endfacet
|
||||
endsolid jagged
|
||||
47
tutorials/mesh/cv2DMesh/jaggedBoundary/system/controlDict
Normal file
47
tutorials/mesh/cv2DMesh/jaggedBoundary/system/controlDict
Normal file
@ -0,0 +1,47 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 1;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
147
tutorials/mesh/cv2DMesh/jaggedBoundary/system/cv2DMeshDict
Normal file
147
tutorials/mesh/cv2DMesh/jaggedBoundary/system/cv2DMeshDict
Normal file
@ -0,0 +1,147 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object cv2DMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
geometry
|
||||
{
|
||||
jaggedBoundary.stl
|
||||
{
|
||||
name jaggedBoundary;
|
||||
type closedTriSurfaceMesh;
|
||||
}
|
||||
}
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
// The z-coordinate of the plane is taken from here.
|
||||
locationInMesh (-0.6 0.3 0.0);
|
||||
|
||||
pointPairDistanceCoeff 0.001;
|
||||
|
||||
// If area of a dual cell is less than the square of this, do not refine.
|
||||
minEdgeLenCoeff 0.001;
|
||||
|
||||
// How much cells are allowed to stick out of the surfaces before
|
||||
// points are inserted onto the boundary
|
||||
maxNotchLenCoeff 1;
|
||||
|
||||
minNearPointDistCoeff 0.001;
|
||||
|
||||
maxQuadAngle 125;
|
||||
|
||||
// Insert near-boundary point mirror or point-pairs
|
||||
insertSurfaceNearestPointPairs yes;
|
||||
|
||||
// Mirror near-boundary points rather than insert point-pairs
|
||||
mirrorPoints no;
|
||||
|
||||
// Insert point-pairs vor dual-cell vertices very near the surface
|
||||
insertSurfaceNearPointPairs yes;
|
||||
|
||||
// Maximum number of iterations used in boundaryConform.
|
||||
maxBoundaryConformingIter 5;
|
||||
|
||||
geometryToConformTo
|
||||
{
|
||||
jaggedBoundary
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "jaggedBoundary.extendedFeatureEdgeMesh";
|
||||
}
|
||||
}
|
||||
|
||||
additionalFeatures
|
||||
{
|
||||
}
|
||||
|
||||
// Choose if to randomise the initial grid created by insertGrid.
|
||||
randomiseInitialGrid yes;
|
||||
|
||||
// Perturbation fraction, 1 = cell-size.
|
||||
randomPerturbation 0.1;
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
// This is a tolerance for determining whether to deal with surface
|
||||
// protrusions or not.
|
||||
minCellSize 0.04;
|
||||
|
||||
// Assign a priority to all requests for cell sizes, the highest overrules.
|
||||
defaultPriority 0;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
jaggedBoundary
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode inside;
|
||||
|
||||
cellSizeFunction surfaceOffsetLinearDistance;
|
||||
surfaceOffsetLinearDistanceCoeffs
|
||||
{
|
||||
distanceCellSize $minCellSize;
|
||||
totalDistance 0.2;
|
||||
surfaceOffset 0.05;
|
||||
}
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSize 0.005;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
relaxationModel adaptiveLinear;
|
||||
|
||||
adaptiveLinearCoeffs
|
||||
{
|
||||
relaxationStart 0.5;
|
||||
relaxationEnd 0.0;
|
||||
}
|
||||
|
||||
objOutput no;
|
||||
|
||||
meshedSurfaceOutput yes;
|
||||
|
||||
// Near-wall region where cells are aligned with the wall specified as a
|
||||
// number of cell layers
|
||||
nearWallAlignedDist 3;
|
||||
}
|
||||
|
||||
|
||||
shortEdgeFilter
|
||||
{
|
||||
// Factor to multiply the average of a face's edge lengths by.
|
||||
// If an edge of that face is smaller than that value then delete it.
|
||||
shortEdgeFilterFactor 0.2;
|
||||
|
||||
// Weighting for the lengths of edges that are attached to the boundaries.
|
||||
// Used when calculating the length of an edge. Default 2.0.
|
||||
edgeAttachedToBoundaryFactor 2.0;
|
||||
}
|
||||
|
||||
|
||||
extrusion
|
||||
{
|
||||
extrude off;
|
||||
#include "extrude2DMeshDict";
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,42 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object extrude2DMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
extrudeModel linearDirection;
|
||||
|
||||
patchInfo
|
||||
{}
|
||||
|
||||
patchType empty;
|
||||
|
||||
nLayers 1;
|
||||
|
||||
expansionRatio 1.0;
|
||||
|
||||
linearDirectionCoeffs
|
||||
{
|
||||
direction (0 0 1);
|
||||
thickness 0.1;
|
||||
}
|
||||
|
||||
wedgeCoeffs
|
||||
{
|
||||
axisPt (0 0 0);
|
||||
axis (1 0 0);
|
||||
angle 10;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
54
tutorials/mesh/cv2DMesh/jaggedBoundary/system/fvSchemes
Normal file
54
tutorials/mesh/cv2DMesh/jaggedBoundary/system/fvSchemes
Normal file
@ -0,0 +1,54 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
22
tutorials/mesh/cv2DMesh/jaggedBoundary/system/fvSolution
Normal file
22
tutorials/mesh/cv2DMesh/jaggedBoundary/system/fvSolution
Normal file
@ -0,0 +1,22 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,52 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object surfaceFeatureExtractDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
jaggedBoundary.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
// Mark edges whose adjacent surface normals are at an angle less
|
||||
// than includedAngle as features
|
||||
// - 0 : selects no edges
|
||||
// - 180: selects all edges
|
||||
includedAngle 175;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Use a plane to select feature edges
|
||||
// (normal)(basePoint)
|
||||
// Keep only edges that intersect the plane will be included
|
||||
plane (0 0 1)(-0.6 0.3 0.0);
|
||||
|
||||
// Keep nonManifold edges (edges with >2 connected faces where
|
||||
// the faces form more than two different normal planes)
|
||||
nonManifoldEdges no;
|
||||
|
||||
// Keep open edges (edges with 1 connected face)
|
||||
openEdges no;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
// Write features to obj format for postprocessing
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
16
tutorials/mesh/cv2DMesh/square/Allclean
Executable file
16
tutorials/mesh/cv2DMesh/square/Allclean
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/unit_cube.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
|
||||
rm -rf MeshedSurface*.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
13
tutorials/mesh/cv2DMesh/square/Allrun
Executable file
13
tutorials/mesh/cv2DMesh/square/Allrun
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
runApplication cv2DMesh -overwrite
|
||||
runApplication extrude2DMesh -overwrite polyMesh2D
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,88 @@
|
||||
solid inlet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex 1 1 0.5
|
||||
vertex 1 0 0.5
|
||||
vertex 1 0 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 -0
|
||||
outer loop
|
||||
vertex 1 1 -0.5
|
||||
vertex 1 1 0.5
|
||||
vertex 1 0 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
endsolid inlet
|
||||
solid cube.tri
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex 0 0 -0.5
|
||||
vertex 0 0 0.5
|
||||
vertex 0 1 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex 0 1 -0.5
|
||||
vertex 0 0 -0.5
|
||||
vertex 0 1 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 0
|
||||
outer loop
|
||||
vertex 1 1 0.5
|
||||
vertex 1 1 -0.5
|
||||
vertex 0 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 1 0
|
||||
outer loop
|
||||
vertex 0 1 0.5
|
||||
vertex 1 1 0.5
|
||||
vertex 0 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0 0 -0.5
|
||||
vertex 1 0 -0.5
|
||||
vertex 1 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0 0 0.5
|
||||
vertex 0 0 -0.5
|
||||
vertex 1 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 1 1 0.5
|
||||
vertex 0 1 0.5
|
||||
vertex 0 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex 1 0 0.5
|
||||
vertex 1 1 0.5
|
||||
vertex 0 0 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex 0 0 -0.5
|
||||
vertex 0 1 -0.5
|
||||
vertex 1 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex 1 0 -0.5
|
||||
vertex 0 0 -0.5
|
||||
vertex 1 1 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
endsolid cube.tri
|
||||
52
tutorials/mesh/cv2DMesh/square/system/controlDict
Normal file
52
tutorials/mesh/cv2DMesh/square/system/controlDict
Normal file
@ -0,0 +1,52 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 1;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
DebugSwitches
|
||||
{
|
||||
shortEdgeFilter2D 0;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
165
tutorials/mesh/cv2DMesh/square/system/cv2DMeshDict
Normal file
165
tutorials/mesh/cv2DMesh/square/system/cv2DMeshDict
Normal file
@ -0,0 +1,165 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object DMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
geometry
|
||||
{
|
||||
unit_cube.stl
|
||||
{
|
||||
name cube;
|
||||
type triSurfaceMesh;
|
||||
}
|
||||
|
||||
refinementBox
|
||||
{
|
||||
type searchableBox;
|
||||
min (0.25 0.25 -1000);
|
||||
max (0.75 0.75 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
// The z-coordinate of the plane is taken from here.
|
||||
locationInMesh (0 0 0);
|
||||
|
||||
pointPairDistanceCoeff 0.005;
|
||||
|
||||
minEdgeLenCoeff 0.005;
|
||||
|
||||
maxNotchLenCoeff 0.003;
|
||||
|
||||
minNearPointDistCoeff 0.0025;
|
||||
|
||||
maxQuadAngle 125;
|
||||
|
||||
// Insert near-boundary point mirror or point-pairs
|
||||
insertSurfaceNearestPointPairs yes;
|
||||
|
||||
// Mirror near-boundary points rather than insert point-pairs
|
||||
mirrorPoints no;
|
||||
|
||||
// Insert point-pairs vor dual-cell vertices very near the surface
|
||||
insertSurfaceNearPointPairs yes;
|
||||
|
||||
// Maximum number of iterations used in boundaryConform.
|
||||
maxBoundaryConformingIter 5;
|
||||
|
||||
geometryToConformTo
|
||||
{
|
||||
cube
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "unit_cube.extendedFeatureEdgeMesh";
|
||||
}
|
||||
}
|
||||
|
||||
additionalFeatures
|
||||
{}
|
||||
|
||||
// Choose if to randomise the initial grid created by insertGrid.
|
||||
randomiseInitialGrid yes;
|
||||
|
||||
// Perturbation fraction, 1 = cell-size.
|
||||
randomPerturbation 0.1;
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
minCellSize 0.04;
|
||||
|
||||
// Assign a priority to all requests for cell sizes, the highest overrules.
|
||||
defaultPriority 0;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
cube
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode bothSides;
|
||||
cellSizeFunction linearDistance;
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSize $minCellSize;
|
||||
distance #calc"5*$minCellSize";
|
||||
}
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSize #calc"0.05*$minCellSize";
|
||||
}
|
||||
}
|
||||
|
||||
refinementBox
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode bothSides;
|
||||
cellSizeFunction linearDistance;
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSize $minCellSize;
|
||||
distance #calc"5*$minCellSize";
|
||||
}
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSize #calc"0.05*$minCellSize";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
relaxationModel adaptiveLinear;
|
||||
|
||||
adaptiveLinearCoeffs
|
||||
{
|
||||
relaxationStart 0.5;
|
||||
relaxationEnd 0.0;
|
||||
}
|
||||
|
||||
objOutput no;
|
||||
|
||||
meshedSurfaceOutput yes;
|
||||
|
||||
// Near-wall region where cells are aligned with the wall specified as a
|
||||
// number of cell layers
|
||||
nearWallAlignedDist 3;
|
||||
}
|
||||
|
||||
|
||||
shortEdgeFilter
|
||||
{
|
||||
// Factor to multiply the average of a face's edge lengths by.
|
||||
// If an edge of that face is smaller than that value then delete it.
|
||||
shortEdgeFilterFactor 0.25;
|
||||
|
||||
// Weighting for the lengths of edges that are attached to the boundaries.
|
||||
// Used when calculating the length of an edge. Default 2.0.
|
||||
edgeAttachedToBoundaryFactor 2.0;
|
||||
}
|
||||
|
||||
|
||||
extrusion
|
||||
{
|
||||
extrude off;
|
||||
|
||||
#include "extrude2DMeshDict";
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
42
tutorials/mesh/cv2DMesh/square/system/extrude2DMeshDict
Normal file
42
tutorials/mesh/cv2DMesh/square/system/extrude2DMeshDict
Normal file
@ -0,0 +1,42 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object extrude2DMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
extrudeModel wedge;
|
||||
|
||||
patchInfo
|
||||
{}
|
||||
|
||||
patchType wedge;
|
||||
|
||||
nLayers 1;
|
||||
|
||||
expansionRatio 1.0;
|
||||
|
||||
linearDirectionCoeffs
|
||||
{
|
||||
direction (0 0 1);
|
||||
thickness 0.1;
|
||||
}
|
||||
|
||||
wedgeCoeffs
|
||||
{
|
||||
axisPt (0 0 0);
|
||||
axis (1 0 0);
|
||||
angle 10;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
54
tutorials/mesh/cv2DMesh/square/system/fvSchemes
Normal file
54
tutorials/mesh/cv2DMesh/square/system/fvSchemes
Normal file
@ -0,0 +1,54 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
22
tutorials/mesh/cv2DMesh/square/system/fvSolution
Normal file
22
tutorials/mesh/cv2DMesh/square/system/fvSolution
Normal file
@ -0,0 +1,22 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,52 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object surfaceFeatureExtractDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
unit_cube.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
// Mark edges whose adjacent surface normals are at an angle less
|
||||
// than includedAngle as features
|
||||
// - 0 : selects no edges
|
||||
// - 180: selects all edges
|
||||
includedAngle 175;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Use a plane to select feature edges
|
||||
// (normal)(basePoint)
|
||||
// Keep only edges that intersect the plane will be included
|
||||
plane (0 0 1)(0 0 0);
|
||||
|
||||
// Keep nonManifold edges (edges with >2 connected faces where
|
||||
// the faces form more than two different normal planes)
|
||||
nonManifoldEdges no;
|
||||
|
||||
// Keep open edges (edges with 1 connected face)
|
||||
openEdges yes;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
// Write features to obj format for postprocessing
|
||||
writeObj yes;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user