Add the OpenFOAM source tree
This commit is contained in:
29
tutorials/mesh/foamyHexMesh/Allrun
Executable file
29
tutorials/mesh/foamyHexMesh/Allrun
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
|
||||
(
|
||||
cd blob || exit
|
||||
./Allrun
|
||||
)
|
||||
(
|
||||
cd flange || exit
|
||||
./Allrun
|
||||
)
|
||||
(
|
||||
cd simpleShapes || exit
|
||||
./Allrun
|
||||
)
|
||||
(
|
||||
cd mixerVessel || exit
|
||||
./Allrun
|
||||
)
|
||||
|
||||
exit 0
|
||||
|
||||
# Any cases that are links to solver test cases and are run when the Allrun
|
||||
# scripts of those solvers are run.
|
||||
|
||||
# This dummy Allrun script avoids meshing these cases twice.
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
27
tutorials/mesh/foamyHexMesh/blob/Allclean
Executable file
27
tutorials/mesh/foamyHexMesh/blob/Allclean
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/triSurface/blob.stl.gz > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/cellAlignments > /dev/null 2>&1
|
||||
rm -rf constant/targetCellSize > /dev/null 2>&1
|
||||
rm -rf constant/internalDelaunayVertices > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/faces > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/neighbour > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/owner > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/points > /dev/null 2>&1
|
||||
|
||||
rm -rf snapToSurface?.obj > /dev/null 2>&1
|
||||
rm -rf tetsToSnapTo.obj > /dev/null 2>&1
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
21
tutorials/mesh/foamyHexMesh/blob/Allrun
Executable file
21
tutorials/mesh/foamyHexMesh/blob/Allrun
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy flange surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/blob.stl.gz constant/triSurface/
|
||||
|
||||
runApplication foamyHexMesh
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaces
|
||||
mv log.collapseEdges log.collapseFaces
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaceSet indirectPatchFaces
|
||||
mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runApplication checkMesh -latestTime -allGeometry -allTopology
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
29
tutorials/mesh/foamyHexMesh/blob/Allrun-parallel
Executable file
29
tutorials/mesh/foamyHexMesh/blob/Allrun-parallel
Executable file
@ -0,0 +1,29 @@
|
||||
#!/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
|
||||
nProc=$(getNumberOfProcessors)
|
||||
|
||||
# copy flange surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/blob.stl.gz constant/triSurface/
|
||||
|
||||
runApplication blockMesh -region backgroundMeshDecomposition
|
||||
runApplication decomposePar -region backgroundMeshDecomposition
|
||||
|
||||
runParallel foamyHexMesh $nProc
|
||||
|
||||
runParallel collapseEdges $nProc -latestTime -collapseFaces
|
||||
mv log.collapseEdges log.collapseFaces
|
||||
|
||||
runParallel collapseEdges $nProc -latestTime -collapseFaceSet indirectPatchFaces
|
||||
mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runParallel checkMesh $nProc -latestTime -allTopology -allGeometry
|
||||
|
||||
runApplication reconstructParMesh -latestTime
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,69 @@
|
||||
/*--------------------------------*- 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 blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 1.0;
|
||||
|
||||
xmin -1.3;
|
||||
xmax 0.65;
|
||||
ymin -1.1;
|
||||
ymax 0.8;
|
||||
zmin -1.4;
|
||||
zmax 0.55;
|
||||
|
||||
vertices
|
||||
(
|
||||
($xmin $ymin $zmin)
|
||||
($xmax $ymin $zmin)
|
||||
($xmax $ymax $zmin)
|
||||
($xmin $ymax $zmin)
|
||||
($xmin $ymin $zmax)
|
||||
($xmax $ymin $zmax)
|
||||
($xmax $ymax $zmax)
|
||||
($xmin $ymax $zmax)
|
||||
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) (11 11 9) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
);
|
||||
|
||||
boundary
|
||||
(
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(3 7 6 2)
|
||||
(0 4 7 3)
|
||||
(2 6 5 1)
|
||||
(1 5 4 0)
|
||||
(0 3 2 1)
|
||||
(4 5 6 7)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,4 @@
|
||||
Directory to house tri-surfaces
|
||||
|
||||
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||
directory
|
||||
@ -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 decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 2;
|
||||
|
||||
method scotch;
|
||||
//method ptscotch;
|
||||
// method hierarchical;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 2 2 1 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 2 1 1 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1 @@
|
||||
../fvSchemes
|
||||
@ -0,0 +1 @@
|
||||
../fvSolution
|
||||
84
tutorials/mesh/foamyHexMesh/blob/system/collapseDict
Normal file
84
tutorials/mesh/foamyHexMesh/blob/system/collapseDict
Normal file
@ -0,0 +1,84 @@
|
||||
/*--------------------------------*- 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 collapseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
controlMeshQuality on;
|
||||
|
||||
collapseEdgesCoeffs
|
||||
{
|
||||
// Edges shorter than this absolute value will be merged
|
||||
minimumEdgeLength 1e-6;
|
||||
|
||||
// The maximum angle between two edges that share a point attached to
|
||||
// no other edges
|
||||
maximumMergeAngle 180;
|
||||
}
|
||||
|
||||
collapseFacesCoeffs
|
||||
{
|
||||
// The initial face length factor
|
||||
initialFaceLengthFactor 0.5;
|
||||
|
||||
// If the face can't be collapsed to an edge, and it has a span less than
|
||||
// the target face length multiplied by this coefficient, collapse it
|
||||
// to a point.
|
||||
maxCollapseFaceToPointSideLengthCoeff 0.3;
|
||||
|
||||
// Allow early collapse of edges to a point
|
||||
allowEarlyCollapseToPoint on;
|
||||
|
||||
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
|
||||
// allowEarlyCollapseToPoint is enabled
|
||||
allowEarlyCollapseCoeff 0.2;
|
||||
|
||||
// Defining how close to the midpoint (M) of the projected
|
||||
// vertices line a projected vertex (X) can be before making this
|
||||
// an invalid edge collapse
|
||||
//
|
||||
// X---X-g----------------M----X-----------g----X--X
|
||||
//
|
||||
// Only allow a collapse if all projected vertices are outwith
|
||||
// guardFraction (g) of the distance form the face centre to the
|
||||
// furthest vertex in the considered direction
|
||||
guardFraction 0.1;
|
||||
}
|
||||
|
||||
controlMeshQualityCoeffs
|
||||
{
|
||||
// Name of the dictionary that has the mesh quality coefficients used
|
||||
// by motionSmoother::checkMesh
|
||||
#include "meshQualityDict";
|
||||
|
||||
// The amount that minimumEdgeLength will be reduced by for each
|
||||
// edge if that edge's collapse generates a poor quality face
|
||||
edgeReductionFactor 0.5;
|
||||
|
||||
// The amount that initialFaceLengthFactor will be reduced by for each
|
||||
// face if its collapse generates a poor quality face
|
||||
faceReductionFactor 0.5;
|
||||
|
||||
// Maximum number of smoothing iterations for the reductionFactors
|
||||
maximumSmoothingIterations 2;
|
||||
|
||||
// Maximum number of outer iterations is mesh quality checking is enabled
|
||||
maximumIterations 10;
|
||||
|
||||
// Maximum number of iterations deletion of a point can cause a bad face
|
||||
// to be constructed before it is forced to not be deleted
|
||||
maxPointErrorCount 3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
53
tutorials/mesh/foamyHexMesh/blob/system/controlDict
Normal file
53
tutorials/mesh/foamyHexMesh/blob/system/controlDict
Normal file
@ -0,0 +1,53 @@
|
||||
/*--------------------------------*- 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;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object controlDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 80;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 80;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
// ************************************************************************* //
|
||||
47
tutorials/mesh/foamyHexMesh/blob/system/decomposeParDict
Normal file
47
tutorials/mesh/foamyHexMesh/blob/system/decomposeParDict
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 decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 2;
|
||||
|
||||
method scotch;
|
||||
//method ptscotch;
|
||||
// method hierarchical;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 2 2 1 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 2 1 1 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
131
tutorials/mesh/foamyHexMesh/blob/system/foamyHexMeshDict
Normal file
131
tutorials/mesh/foamyHexMesh/blob/system/foamyHexMeshDict
Normal file
@ -0,0 +1,131 @@
|
||||
/*--------------------------------*- 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 foamyHexMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Include defaults parameters from master dictionary
|
||||
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
|
||||
|
||||
geometry
|
||||
{
|
||||
blob.stl
|
||||
{
|
||||
name blob;
|
||||
type triSurfaceMesh;
|
||||
}
|
||||
|
||||
refinementBox
|
||||
{
|
||||
type searchableBox;
|
||||
min (-0.2 -0.6 -0.2);
|
||||
max ( 0.4 0.2 0.35);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
backgroundMeshDecomposition
|
||||
{
|
||||
minLevels 0;
|
||||
sampleResolution 4;
|
||||
spanScale 20;
|
||||
maxCellWeightCoeff 20;
|
||||
}
|
||||
|
||||
|
||||
initialPoints
|
||||
{
|
||||
initialPointsMethod autoDensity;
|
||||
// initialPointsMethod pointFile;
|
||||
|
||||
autoDensityCoeffs
|
||||
{
|
||||
minLevels 0;
|
||||
maxSizeRatio 5.0;
|
||||
sampleResolution 5;
|
||||
surfaceSampleResolution 5;
|
||||
}
|
||||
|
||||
pointFileCoeffs
|
||||
{
|
||||
pointFile "constant/internalDelaunayVertices";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
locationInMesh (0.1 0.1 0.2);
|
||||
|
||||
featurePointControls
|
||||
{
|
||||
specialiseFeaturePoints off;
|
||||
edgeAiming off;
|
||||
guardFeaturePoints off;
|
||||
snapFeaturePoints off;
|
||||
circulateEdges off;
|
||||
}
|
||||
|
||||
geometryToConformTo
|
||||
{
|
||||
blob
|
||||
{
|
||||
featureMethod none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
defaultCellSize 0.1;
|
||||
|
||||
minimumCellSizeCoeff 0;
|
||||
|
||||
maxSmoothingIterations 100;
|
||||
|
||||
maxRefinementIterations 0;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
blob
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode bothSides;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
|
||||
cellSizeFunction uniform;
|
||||
uniformCoeffs
|
||||
{}
|
||||
}
|
||||
}
|
||||
|
||||
objOutput no;
|
||||
|
||||
timeChecks no;
|
||||
}
|
||||
|
||||
|
||||
meshQualityControls
|
||||
{
|
||||
#include "meshQualityDict"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
54
tutorials/mesh/foamyHexMesh/blob/system/fvSchemes
Normal file
54
tutorials/mesh/foamyHexMesh/blob/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/foamyHexMesh/blob/system/fvSolution
Normal file
22
tutorials/mesh/foamyHexMesh/blob/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
|
||||
{
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
65
tutorials/mesh/foamyHexMesh/blob/system/meshQualityDict
Normal file
65
tutorials/mesh/foamyHexMesh/blob/system/meshQualityDict
Normal file
@ -0,0 +1,65 @@
|
||||
/*--------------------------------*- 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 meshQualityDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
||||
maxNonOrtho 65;
|
||||
|
||||
//- Max skewness allowed. Set to <0 to disable.
|
||||
maxBoundarySkewness 50;
|
||||
maxInternalSkewness 10;
|
||||
|
||||
//- Max concaveness allowed. Is angle (in degrees) below which concavity
|
||||
// is allowed. 0 is straight face, <0 would be convex face.
|
||||
// Set to 180 to disable.
|
||||
maxConcave 80;
|
||||
|
||||
//- Minimum quality of the tet formed by the face-centre
|
||||
// and variable base point minimum decomposition triangles and
|
||||
// the cell centre. This has to be a positive number for tracking
|
||||
// to work. Set to very negative number (e.g. -1E30) to
|
||||
// disable.
|
||||
// <0 = inside out tet,
|
||||
// 0 = flat tet
|
||||
// 1 = regular tet
|
||||
minTetQuality 1e-30;
|
||||
|
||||
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
|
||||
// Set to a sensible fraction of the smallest cell volume expected.
|
||||
// Set to very negative number (e.g. -1E30) to disable.
|
||||
minVol 1e-20;
|
||||
|
||||
//- Minimum face area. Set to <0 to disable.
|
||||
minArea -1;
|
||||
|
||||
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
|
||||
//- and face centre triangles normal
|
||||
minTwist 0.001;
|
||||
|
||||
//- minimum normalised cell determinant
|
||||
//- 1 = hex, <= 0 = folded or flattened illegal cell
|
||||
minDeterminant 0.001;
|
||||
|
||||
//- minFaceWeight (0 -> 0.5)
|
||||
minFaceWeight 0.02;
|
||||
|
||||
//- minVolRatio (0 -> 1)
|
||||
minVolRatio 0.01;
|
||||
|
||||
//must be >0 for Fluent compatibility
|
||||
minTriangleTwist -1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
302
tutorials/mesh/foamyHexMesh/blob/system/snappyHexMeshDict
Normal file
302
tutorials/mesh/foamyHexMesh/blob/system/snappyHexMeshDict
Normal file
@ -0,0 +1,302 @@
|
||||
/*--------------------------------*- 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 snappyHexMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Which of the steps to run
|
||||
castellatedMesh false;
|
||||
snap false;
|
||||
addLayers true;
|
||||
|
||||
|
||||
// Geometry. Definition of all surfaces. All surfaces are of class
|
||||
// searchableSurface.
|
||||
// Surfaces are used
|
||||
// - to specify refinement for any mesh cell intersecting it
|
||||
// - to specify refinement for any mesh cell inside/outside/near
|
||||
// - to 'snap' the mesh boundary to the surface
|
||||
geometry
|
||||
{
|
||||
// motorBike.obj
|
||||
// {
|
||||
// type triSurfaceMesh;
|
||||
// name motorBike;
|
||||
// }
|
||||
//
|
||||
// refinementBox
|
||||
// {
|
||||
// type searchableBox;
|
||||
// min (-1.0 -0.7 0.0);
|
||||
// max ( 8.0 0.7 2.5);
|
||||
// }
|
||||
};
|
||||
|
||||
|
||||
|
||||
// Settings for the castellatedMesh generation.
|
||||
castellatedMeshControls
|
||||
{
|
||||
|
||||
// Refinement parameters
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// If local number of cells is >= maxLocalCells on any processor
|
||||
// switches from from refinement followed by balancing
|
||||
// (current method) to (weighted) balancing before refinement.
|
||||
maxLocalCells 100000;
|
||||
|
||||
// Overall cell limit (approximately). Refinement will stop immediately
|
||||
// upon reaching this number so a refinement level might not complete.
|
||||
// Note that this is the number of cells before removing the part which
|
||||
// is not 'visible' from the keepPoint. The final number of cells might
|
||||
// actually be a lot less.
|
||||
maxGlobalCells 2000000;
|
||||
|
||||
// The surface refinement loop might spend lots of iterations refining just a
|
||||
// few cells. This setting will cause refinement to stop if <= minimumRefine
|
||||
// are selected for refinement. Note: it will at least do one iteration
|
||||
// (unless the number of cells to refine is 0)
|
||||
minRefinementCells 10;
|
||||
|
||||
// Allow a certain level of imbalance during refining
|
||||
// (since balancing is quite expensive)
|
||||
// Expressed as fraction of perfect balance (= overall number of cells /
|
||||
// nProcs). 0=balance always.
|
||||
maxLoadUnbalance 0.10;
|
||||
|
||||
|
||||
// Number of buffer layers between different levels.
|
||||
// 1 means normal 2:1 refinement restriction, larger means slower
|
||||
// refinement.
|
||||
nCellsBetweenLevels 3;
|
||||
|
||||
|
||||
|
||||
// Explicit feature edge refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies a level for any cell intersected by its edges.
|
||||
// This is a featureEdgeMesh, read from constant/triSurface for now.
|
||||
features
|
||||
(
|
||||
//{
|
||||
// file "someLine.eMesh";
|
||||
// level 2;
|
||||
//}
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Surface based refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies two levels for every surface. The first is the minimum level,
|
||||
// every cell intersecting a surface gets refined up to the minimum level.
|
||||
// The second level is the maximum level. Cells that 'see' multiple
|
||||
// intersections where the intersections make an
|
||||
// angle > resolveFeatureAngle get refined up to the maximum level.
|
||||
|
||||
refinementSurfaces
|
||||
{
|
||||
// motorBike
|
||||
// {
|
||||
// // Surface-wise min and max refinement level
|
||||
// level (5 6);
|
||||
//
|
||||
// // Optional specification of patch type (default is wall). No
|
||||
// // constraint types (cyclic, symmetry) etc. are allowed.
|
||||
// patchInfo
|
||||
// {
|
||||
// type wall;
|
||||
// inGroups (motorBike);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// Resolve sharp angles
|
||||
resolveFeatureAngle 30;
|
||||
|
||||
|
||||
// Region-wise refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies refinement level for cells in relation to a surface. One of
|
||||
// three modes
|
||||
// - distance. 'levels' specifies per distance to the surface the
|
||||
// wanted refinement level. The distances need to be specified in
|
||||
// descending order.
|
||||
// - inside. 'levels' is only one entry and only the level is used. All
|
||||
// cells inside the surface get refined up to the level. The surface
|
||||
// needs to be closed for this to be possible.
|
||||
// - outside. Same but cells outside.
|
||||
|
||||
refinementRegions
|
||||
{
|
||||
// refinementBox
|
||||
// {
|
||||
// mode inside;
|
||||
// levels ((1E15 4));
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
// Mesh selection
|
||||
// ~~~~~~~~~~~~~~
|
||||
|
||||
// After refinement patches get added for all refinementSurfaces and
|
||||
// all cells intersecting the surfaces get put into these patches. The
|
||||
// section reachable from the locationInMesh is kept.
|
||||
// NOTE: This point should never be on a face, always inside a cell, even
|
||||
// after refinement.
|
||||
locationInMesh (-1 0 0);
|
||||
|
||||
|
||||
// Whether any faceZones (as specified in the refinementSurfaces)
|
||||
// are only on the boundary of corresponding cellZones or also allow
|
||||
// free-standing zone faces. Not used if there are no faceZones.
|
||||
allowFreeStandingZoneFaces true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Settings for the snapping.
|
||||
snapControls
|
||||
{
|
||||
//- Number of patch smoothing iterations before finding correspondence
|
||||
// to surface
|
||||
nSmoothPatch 3;
|
||||
|
||||
//- Relative distance for points to be attracted by surface feature point
|
||||
// or edge. True distance is this factor times local
|
||||
// maximum edge length.
|
||||
tolerance 4.0;
|
||||
|
||||
//- Number of mesh displacement relaxation iterations.
|
||||
nSolveIter 0;
|
||||
|
||||
//- Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 5;
|
||||
|
||||
//- Highly experimental and wip: number of feature edge snapping
|
||||
// iterations. Leave out altogether to disable.
|
||||
// Do not use here since mesh resolution too low and baffles present
|
||||
//nFeatureSnapIter 10;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Settings for the layer addition.
|
||||
addLayersControls
|
||||
{
|
||||
// Are the thickness parameters below relative to the undistorted
|
||||
// size of the refined cell outside layer (true) or absolute sizes (false).
|
||||
relativeSizes false;
|
||||
|
||||
// Per final patch (so not geometry!) the layer information
|
||||
layers
|
||||
{
|
||||
blob.stl_patch1
|
||||
{
|
||||
nSurfaceLayers 4;
|
||||
}
|
||||
}
|
||||
|
||||
// Expansion factor for layer mesh
|
||||
expansionRatio 1.5;
|
||||
|
||||
// Wanted thickness of final added cell layer. If multiple layers
|
||||
// is the thickness of the layer furthest away from the wall.
|
||||
// Relative to undistorted size of cell outside layer.
|
||||
// is the thickness of the layer furthest away from the wall.
|
||||
// See relativeSizes parameter.
|
||||
finalLayerThickness 0.02;
|
||||
|
||||
// Minimum thickness of cell layer. If for any reason layer
|
||||
// cannot be above minThickness do not add layer.
|
||||
// Relative to undistorted size of cell outside layer.
|
||||
minThickness 0.005;
|
||||
|
||||
// If points get not extruded do nGrow layers of connected faces that are
|
||||
// also not grown. This helps convergence of the layer addition process
|
||||
// close to features.
|
||||
// Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
|
||||
nGrow 0;
|
||||
|
||||
// Advanced settings
|
||||
|
||||
// When not to extrude surface. 0 is flat surface, 90 is when two faces
|
||||
// are perpendicular
|
||||
featureAngle 90;
|
||||
|
||||
// Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 3;
|
||||
|
||||
// Number of smoothing iterations of surface normals
|
||||
nSmoothSurfaceNormals 1;
|
||||
|
||||
// Number of smoothing iterations of interior mesh movement direction
|
||||
nSmoothNormals 3;
|
||||
|
||||
// Smooth layer thickness over surface patches
|
||||
nSmoothThickness 10;
|
||||
|
||||
// Stop layer growth on highly warped cells
|
||||
maxFaceThicknessRatio 1000;
|
||||
|
||||
// Reduce layer growth where ratio thickness to medial
|
||||
// distance is large
|
||||
maxThicknessToMedialRatio 0.3;
|
||||
|
||||
// Angle used to pick up medial axis points
|
||||
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
|
||||
minMedianAxisAngle 90;
|
||||
|
||||
|
||||
// Create buffer region for new layer terminations
|
||||
nBufferCellsNoExtrude 0;
|
||||
|
||||
|
||||
// Overall max number of layer addition iterations. The mesher will exit
|
||||
// if it reaches this number of iterations; possibly with an illegal
|
||||
// mesh.
|
||||
nLayerIter 50;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Generic mesh quality settings. At any undoable phase these determine
|
||||
// where to undo.
|
||||
meshQualityControls
|
||||
{
|
||||
#include "meshQualityDict"
|
||||
|
||||
// Advanced
|
||||
|
||||
//- Number of error distribution iterations
|
||||
nSmoothScale 4;
|
||||
//- amount to scale back displacement at error points
|
||||
errorReduction 0.75;
|
||||
}
|
||||
|
||||
|
||||
// Advanced
|
||||
|
||||
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
|
||||
// Note: the write tolerance needs to be higher than this.
|
||||
mergeTolerance 1e-6;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
149
tutorials/mesh/foamyHexMesh/blob/system/topoSetDict
Normal file
149
tutorials/mesh/foamyHexMesh/blob/system/topoSetDict
Normal file
@ -0,0 +1,149 @@
|
||||
/*--------------------------------*- 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 topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name z;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (-100 -100 -0.2)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name zf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set z;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name z;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name zf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set z;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~ //
|
||||
|
||||
{
|
||||
name x;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (-0.32 -100 -100)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name xf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set x;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name x;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name xf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set x;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~ //
|
||||
|
||||
{
|
||||
name sp;
|
||||
type cellSet;
|
||||
action new;
|
||||
source sphereToCell;
|
||||
sourceInfo
|
||||
{
|
||||
centre (-0.3 -0.3 -0.3);
|
||||
radius 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name spf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set sp;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name sp;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name spf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set sp;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
24
tutorials/mesh/foamyHexMesh/flange/Allclean
Executable file
24
tutorials/mesh/foamyHexMesh/flange/Allclean
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -r constant/triSurface/flange.stl.gz > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -r constant/ccx constant/ccy constant/ccz > /dev/null 2>&1
|
||||
rm -r constant/internalDelaunayVertices constant/targetCellSize > /dev/null 2>&1
|
||||
rm -r 0 > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/faces > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/neighbour > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/owner > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/points > /dev/null 2>&1
|
||||
|
||||
rm -r *.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
21
tutorials/mesh/foamyHexMesh/flange/Allrun
Executable file
21
tutorials/mesh/foamyHexMesh/flange/Allrun
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy flange surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||
|
||||
runApplication foamyHexMesh
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaces
|
||||
mv log.collapseEdges log.collapseFaces
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaceSet indirectPatchFaces
|
||||
mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runApplication checkMesh -latestTime -allGeometry -allTopology
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
30
tutorials/mesh/foamyHexMesh/flange/Allrun-parallel
Executable file
30
tutorials/mesh/foamyHexMesh/flange/Allrun-parallel
Executable file
@ -0,0 +1,30 @@
|
||||
#!/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
|
||||
nProc=$(getNumberOfProcessors)
|
||||
|
||||
# copy flange surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||
|
||||
# Create tight-fitting background mesh
|
||||
runApplication blockMesh -region backgroundMeshDecomposition
|
||||
runApplication decomposePar -region backgroundMeshDecomposition
|
||||
|
||||
runParallel foamyHexMesh $nProc
|
||||
|
||||
runParallel collapseEdges $nProc -latestTime -collapseFaces
|
||||
mv log.collapseEdges log.collapseFaces
|
||||
|
||||
runParallel collapseEdges $nProc -latestTime -collapseFaceSet indirectPatchFaces
|
||||
mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runParallel checkMesh $nProc -latestTime -allTopology -allGeometry
|
||||
|
||||
runApplication reconstructParMesh -latestTime
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
32
tutorials/mesh/foamyHexMesh/flange/Alltest
Executable file
32
tutorials/mesh/foamyHexMesh/flange/Alltest
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy flange surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||
|
||||
cp system/controlDict system/controlDict.org
|
||||
|
||||
sed -e s/"\(endTime[ \t]*\)\([0-9]*\);"/"\1 10;"/g \
|
||||
-e s/"\(writeInterval[ \t]*\)\([0-9]*\);"/"\1 10;"/g \
|
||||
system/controlDict.org > system/controlDict
|
||||
|
||||
runApplication foamyHexMesh
|
||||
|
||||
# Change collapseEdges to only do one iteration
|
||||
cp system/collapseDict system/collapseDict.org
|
||||
|
||||
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
|
||||
system/collapseDict.org > system/collapseDict
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaces
|
||||
|
||||
cp system/controlDict.org system/controlDict
|
||||
cp system/collapseDict.org system/collapseDict
|
||||
|
||||
rm -f system/controlDict.org system/collapseDict.org
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,69 @@
|
||||
/*--------------------------------*- 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 blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 1.0;
|
||||
|
||||
xmin -0.0265;
|
||||
xmax 0.0265;
|
||||
ymin -0.028;
|
||||
ymax 0.023;
|
||||
zmin -0.024;
|
||||
zmax 0.01;
|
||||
|
||||
vertices
|
||||
(
|
||||
($xmin $ymin $zmin)
|
||||
($xmax $ymin $zmin)
|
||||
($xmax $ymax $zmin)
|
||||
($xmin $ymax $zmin)
|
||||
($xmin $ymin $zmax)
|
||||
($xmax $ymin $zmax)
|
||||
($xmax $ymax $zmax)
|
||||
($xmin $ymax $zmax)
|
||||
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) (5 6 3) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
);
|
||||
|
||||
boundary
|
||||
(
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(3 7 6 2)
|
||||
(0 4 7 3)
|
||||
(2 6 5 1)
|
||||
(1 5 4 0)
|
||||
(0 3 2 1)
|
||||
(4 5 6 7)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,4 @@
|
||||
Directory to house tri-surfaces
|
||||
|
||||
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||
directory
|
||||
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- 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 scotch;
|
||||
method hierarchical;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 2 2 2 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 2 2 2 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1 @@
|
||||
../fvSchemes
|
||||
@ -0,0 +1 @@
|
||||
../fvSolution
|
||||
84
tutorials/mesh/foamyHexMesh/flange/system/collapseDict
Normal file
84
tutorials/mesh/foamyHexMesh/flange/system/collapseDict
Normal file
@ -0,0 +1,84 @@
|
||||
/*--------------------------------*- 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 collapseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
controlMeshQuality on;
|
||||
|
||||
collapseEdgesCoeffs
|
||||
{
|
||||
// Edges shorter than this absolute value will be merged
|
||||
minimumEdgeLength 1e-6;
|
||||
|
||||
// The maximum angle between two edges that share a point attached to
|
||||
// no other edges
|
||||
maximumMergeAngle 180;
|
||||
}
|
||||
|
||||
collapseFacesCoeffs
|
||||
{
|
||||
// The initial face length factor
|
||||
initialFaceLengthFactor 0.5;
|
||||
|
||||
// If the face can't be collapsed to an edge, and it has a span less than
|
||||
// the target face length multiplied by this coefficient, collapse it
|
||||
// to a point.
|
||||
maxCollapseFaceToPointSideLengthCoeff 0.3;
|
||||
|
||||
// Allow early collapse of edges to a point
|
||||
allowEarlyCollapseToPoint on;
|
||||
|
||||
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
|
||||
// allowEarlyCollapseToPoint is enabled
|
||||
allowEarlyCollapseCoeff 0.2;
|
||||
|
||||
// Defining how close to the midpoint (M) of the projected
|
||||
// vertices line a projected vertex (X) can be before making this
|
||||
// an invalid edge collapse
|
||||
//
|
||||
// X---X-g----------------M----X-----------g----X--X
|
||||
//
|
||||
// Only allow a collapse if all projected vertices are outwith
|
||||
// guardFraction (g) of the distance form the face centre to the
|
||||
// furthest vertex in the considered direction
|
||||
guardFraction 0.1;
|
||||
}
|
||||
|
||||
controlMeshQualityCoeffs
|
||||
{
|
||||
// Name of the dictionary that has the mesh quality coefficients used
|
||||
// by motionSmoother::checkMesh
|
||||
#include "meshQualityDict";
|
||||
|
||||
// The amount that minimumEdgeLength will be reduced by for each
|
||||
// edge if that edge's collapse generates a poor quality face
|
||||
edgeReductionFactor 0.5;
|
||||
|
||||
// The amount that initialFaceLengthFactor will be reduced by for each
|
||||
// face if its collapse generates a poor quality face
|
||||
faceReductionFactor 0.5;
|
||||
|
||||
// Maximum number of smoothing iterations for the reductionFactors
|
||||
maximumSmoothingIterations 2;
|
||||
|
||||
// Maximum number of outer iterations is mesh quality checking is enabled
|
||||
maximumIterations 10;
|
||||
|
||||
// Maximum number of iterations deletion of a point can cause a bad face
|
||||
// to be constructed before it is forced to not be deleted
|
||||
maxPointErrorCount 3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
58
tutorials/mesh/foamyHexMesh/flange/system/controlDict
Normal file
58
tutorials/mesh/foamyHexMesh/flange/system/controlDict
Normal file
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- 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;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object controlDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application foamyHexMesh;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 100;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 10;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
libs ("libdistributed.so");
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
46
tutorials/mesh/foamyHexMesh/flange/system/decomposeParDict
Normal file
46
tutorials/mesh/foamyHexMesh/flange/system/decomposeParDict
Normal file
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- 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 scotch;
|
||||
method hierarchical;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 2 2 2 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 2 2 2 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
35
tutorials/mesh/foamyHexMesh/flange/system/faceSetDict
Normal file
35
tutorials/mesh/foamyHexMesh/flange/system/faceSetDict
Normal file
@ -0,0 +1,35 @@
|
||||
/*--------------------------------*- 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 faceSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Name of set to operate on
|
||||
name facesToBeRemoved;
|
||||
|
||||
// One of clear/new/invert/add/delete|subset/list
|
||||
action new;
|
||||
|
||||
// Actions to apply to pointSet. These are all the topoSetSource's ending
|
||||
// in ..ToFace (see the meshTools library).
|
||||
topoSetSources
|
||||
(
|
||||
// Select by explicitly providing face labels
|
||||
labelToFace
|
||||
{
|
||||
value #include "../facesToBeRemoved";
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
178
tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict
Normal file
178
tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict
Normal file
@ -0,0 +1,178 @@
|
||||
/*--------------------------------*- 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 foamyHexMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Include defaults parameters from master dictionary
|
||||
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
|
||||
|
||||
// Any scalar with a name <name>Coeff specifies a value that will be implemented
|
||||
// as a faction of the target cell size
|
||||
|
||||
geometry
|
||||
{
|
||||
#include "meshDict.geometry"
|
||||
}
|
||||
|
||||
|
||||
initialPoints
|
||||
{
|
||||
initialPointsMethod autoDensity;
|
||||
|
||||
autoDensityCoeffs
|
||||
{
|
||||
minLevels 2;
|
||||
maxSizeRatio 3.0;
|
||||
sampleResolution 4;
|
||||
surfaceSampleResolution 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
locationInMesh (0 0 0);
|
||||
|
||||
geometryToConformTo
|
||||
{
|
||||
flange
|
||||
{
|
||||
featureMethod extractFeatures;
|
||||
includedAngle 140;
|
||||
|
||||
regions
|
||||
{
|
||||
patch1
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (groupFlange groupWalls);
|
||||
}
|
||||
}
|
||||
|
||||
patch2
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (groupFlange groupWalls);
|
||||
}
|
||||
}
|
||||
|
||||
patch3
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (groupFlange);
|
||||
}
|
||||
}
|
||||
|
||||
patch4
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type patch;
|
||||
inGroups (groupFlange);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
defaultCellSize 0.0008;
|
||||
|
||||
minimumCellSizeCoeff 0;
|
||||
|
||||
maxSmoothingIterations 100;
|
||||
|
||||
maxRefinementIterations 0;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
flange
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode inside;
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
cellSizeFunction surfaceOffsetLinearDistance;
|
||||
surfaceOffsetLinearDistanceCoeffs
|
||||
{
|
||||
distanceCellSizeCoeff 1;
|
||||
surfaceOffsetCoeff 2.5;
|
||||
linearDistanceCoeff 2.5;
|
||||
}
|
||||
|
||||
regions
|
||||
{
|
||||
patch3
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 2;
|
||||
mode inside;
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 0.25;
|
||||
}
|
||||
cellSizeFunction surfaceOffsetLinearDistance;
|
||||
surfaceOffsetLinearDistanceCoeffs
|
||||
{
|
||||
distanceCellSizeCoeff 1;
|
||||
surfaceOffsetCoeff 2;
|
||||
linearDistanceCoeff 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
adaptiveLinearCoeffs
|
||||
{
|
||||
relaxationStart 1.0;
|
||||
relaxationEnd 0.0;
|
||||
}
|
||||
|
||||
objOutput no;
|
||||
|
||||
timeChecks no;
|
||||
}
|
||||
|
||||
|
||||
backgroundMeshDecomposition
|
||||
{
|
||||
minLevels 1;
|
||||
sampleResolution 4;
|
||||
spanScale 5;
|
||||
maxCellWeightCoeff 10;
|
||||
}
|
||||
|
||||
|
||||
meshQualityControls
|
||||
{
|
||||
#include "meshQualityDict"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
55
tutorials/mesh/foamyHexMesh/flange/system/fvSchemes
Normal file
55
tutorials/mesh/foamyHexMesh/flange/system/fvSchemes
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 fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(nn) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default none;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
29
tutorials/mesh/foamyHexMesh/flange/system/fvSolution
Normal file
29
tutorials/mesh/foamyHexMesh/flange/system/fvSolution
Normal file
@ -0,0 +1,29 @@
|
||||
/*--------------------------------*- 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
|
||||
{
|
||||
nn
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
47
tutorials/mesh/foamyHexMesh/flange/system/meshDict.geometry
Normal file
47
tutorials/mesh/foamyHexMesh/flange/system/meshDict.geometry
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;
|
||||
object meshDict.geometry;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
flange.stl
|
||||
{
|
||||
name flange;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
patch1
|
||||
{
|
||||
name wall;
|
||||
}
|
||||
|
||||
patch2
|
||||
{
|
||||
name plate;
|
||||
}
|
||||
|
||||
patch3
|
||||
{
|
||||
name rings;
|
||||
}
|
||||
|
||||
patch4
|
||||
{
|
||||
name outlet;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
65
tutorials/mesh/foamyHexMesh/flange/system/meshQualityDict
Normal file
65
tutorials/mesh/foamyHexMesh/flange/system/meshQualityDict
Normal file
@ -0,0 +1,65 @@
|
||||
/*--------------------------------*- 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 meshQualityDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
||||
maxNonOrtho 45;
|
||||
|
||||
//- Max skewness allowed. Set to <0 to disable.
|
||||
maxBoundarySkewness 50;
|
||||
maxInternalSkewness 10;
|
||||
|
||||
//- Max concaveness allowed. Is angle (in degrees) below which concavity
|
||||
// is allowed. 0 is straight face, <0 would be convex face.
|
||||
// Set to 180 to disable.
|
||||
maxConcave 80;
|
||||
|
||||
//- Minimum quality of the tet formed by the face-centre
|
||||
// and variable base point minimum decomposition triangles and
|
||||
// the cell centre. This has to be a positive number for tracking
|
||||
// to work. Set to very negative number (e.g. -1E30) to
|
||||
// disable.
|
||||
// <0 = inside out tet,
|
||||
// 0 = flat tet
|
||||
// 1 = regular tet
|
||||
minTetQuality 1e-30;
|
||||
|
||||
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
|
||||
// Set to a sensible fraction of the smallest cell volume expected.
|
||||
// Set to very negative number (e.g. -1E30) to disable.
|
||||
minVol 0;
|
||||
|
||||
//- Minimum face area. Set to <0 to disable.
|
||||
minArea -1;
|
||||
|
||||
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
|
||||
//- and face centre triangles normal
|
||||
minTwist 0.001;
|
||||
|
||||
//- minimum normalised cell determinant
|
||||
//- 1 = hex, <= 0 = folded or flattened illegal cell
|
||||
minDeterminant 0.001;
|
||||
|
||||
//- minFaceWeight (0 -> 0.5)
|
||||
minFaceWeight 0.02;
|
||||
|
||||
//- minVolRatio (0 -> 1)
|
||||
minVolRatio 0.01;
|
||||
|
||||
//must be >0 for Fluent compatibility
|
||||
minTriangleTwist -1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
311
tutorials/mesh/foamyHexMesh/flange/system/snappyHexMeshDict
Normal file
311
tutorials/mesh/foamyHexMesh/flange/system/snappyHexMeshDict
Normal file
@ -0,0 +1,311 @@
|
||||
/*--------------------------------*- 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 snappyHexMeshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Which of the steps to run
|
||||
castellatedMesh true;
|
||||
snap true;
|
||||
addLayers false;
|
||||
|
||||
|
||||
foamyHexMesh
|
||||
{
|
||||
#include "foamyHexMeshDict"
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Geometry. Definition of all surfaces. All surfaces are of class
|
||||
// searchableSurface.
|
||||
// Surfaces are used
|
||||
// - to specify refinement for any mesh cell intersecting it
|
||||
// - to specify refinement for any mesh cell inside/outside/near
|
||||
// - to 'snap' the mesh boundary to the surface
|
||||
geometry
|
||||
{
|
||||
${:foamyHexMesh.geometry};
|
||||
}
|
||||
|
||||
|
||||
// Settings for the castellatedMesh generation.
|
||||
castellatedMeshControls
|
||||
{
|
||||
|
||||
// Refinement parameters
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// If local number of cells is >= maxLocalCells on any processor
|
||||
// switches from from refinement followed by balancing
|
||||
// (current method) to (weighted) balancing before refinement.
|
||||
maxLocalCells 100000;
|
||||
|
||||
// Overall cell limit (approximately). Refinement will stop immediately
|
||||
// upon reaching this number so a refinement level might not complete.
|
||||
// Note that this is the number of cells before removing the part which
|
||||
// is not 'visible' from the keepPoint. The final number of cells might
|
||||
// actually be a lot less.
|
||||
maxGlobalCells 2000000;
|
||||
|
||||
// The surface refinement loop might spend lots of iterations refining just a
|
||||
// few cells. This setting will cause refinement to stop if <= minimumRefine
|
||||
// are selected for refinement. Note: it will at least do one iteration
|
||||
// (unless the number of cells to refine is 0)
|
||||
minRefinementCells 0;
|
||||
|
||||
// Number of buffer layers between different levels.
|
||||
// 1 means normal 2:1 refinement restriction, larger means slower
|
||||
// refinement.
|
||||
nCellsBetweenLevels 1;
|
||||
|
||||
|
||||
|
||||
// Explicit feature edge refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies a level for any cell intersected by its edges.
|
||||
// This is a featureEdgeMesh, read from constant/triSurface for now.
|
||||
features
|
||||
(
|
||||
{
|
||||
file "flange.eMesh";
|
||||
level 0;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Surface based refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies two levels for every surface. The first is the minimum level,
|
||||
// every cell intersecting a surface gets refined up to the minimum level.
|
||||
// The second level is the maximum level. Cells that 'see' multiple
|
||||
// intersections where the intersections make an
|
||||
// angle > resolveFeatureAngle get refined up to the maximum level.
|
||||
|
||||
refinementSurfaces
|
||||
{
|
||||
flange
|
||||
{
|
||||
// Surface-wise min and max refinement level
|
||||
level (2 2);
|
||||
}
|
||||
}
|
||||
|
||||
// Resolve sharp angles
|
||||
resolveFeatureAngle 30;
|
||||
|
||||
|
||||
// Region-wise refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies refinement level for cells in relation to a surface. One of
|
||||
// three modes
|
||||
// - distance. 'levels' specifies per distance to the surface the
|
||||
// wanted refinement level. The distances need to be specified in
|
||||
// descending order.
|
||||
// - inside. 'levels' is only one entry and only the level is used. All
|
||||
// cells inside the surface get refined up to the level. The surface
|
||||
// needs to be closed for this to be possible.
|
||||
// - outside. Same but cells outside.
|
||||
|
||||
refinementRegions
|
||||
{
|
||||
refineHole
|
||||
{
|
||||
mode inside;
|
||||
levels ((1E15 3));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Mesh selection
|
||||
// ~~~~~~~~~~~~~~
|
||||
|
||||
// After refinement patches get added for all refinementSurfaces and
|
||||
// all cells intersecting the surfaces get put into these patches. The
|
||||
// section reachable from the locationInMesh is kept.
|
||||
// NOTE: This point should never be on a face, always inside a cell, even
|
||||
// after refinement.
|
||||
locationInMesh ${:foamyHexMesh.surfaceConformation.locationInMesh};
|
||||
|
||||
|
||||
// Whether any faceZones (as specified in the refinementSurfaces)
|
||||
// are only on the boundary of corresponding cellZones or also allow
|
||||
// free-standing zone faces. Not used if there are no faceZones.
|
||||
allowFreeStandingZoneFaces true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Settings for the snapping.
|
||||
snapControls
|
||||
{
|
||||
//- Number of patch smoothing iterations before finding correspondence
|
||||
// to surface
|
||||
nSmoothPatch 3;
|
||||
|
||||
//- Relative distance for points to be attracted by surface feature point
|
||||
// or edge. True distance is this factor times local
|
||||
// maximum edge length.
|
||||
tolerance 1.0;
|
||||
|
||||
//- Number of mesh displacement relaxation iterations.
|
||||
nSolveIter 300;
|
||||
|
||||
//- Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 5;
|
||||
|
||||
// Feature snapping
|
||||
|
||||
// Number of feature edge snapping iterations.
|
||||
// Leave out altogether to disable.
|
||||
nFeatureSnapIter 10;
|
||||
|
||||
// Detect (geometric only) features by sampling the surface
|
||||
// (default=false).
|
||||
implicitFeatureSnap true;
|
||||
|
||||
// Use castellatedMeshControls::features (default = true)
|
||||
explicitFeatureSnap false;
|
||||
|
||||
// Detect features between multiple surfaces
|
||||
// (only for explicitFeatureSnap, default = false)
|
||||
multiRegionFeatureSnap true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Settings for the layer addition.
|
||||
addLayersControls
|
||||
{
|
||||
// Are the thickness parameters below relative to the undistorted
|
||||
// size of the refined cell outside layer (true) or absolute sizes (false).
|
||||
relativeSizes false;
|
||||
|
||||
// Per final patch (so not geometry!) the layer information
|
||||
layers
|
||||
{
|
||||
"flange_.*"
|
||||
{
|
||||
nSurfaceLayers 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Expansion factor for layer mesh
|
||||
expansionRatio 1.0;
|
||||
|
||||
|
||||
// Wanted thickness of final added cell layer. If multiple layers
|
||||
// is the thickness of the layer furthest away from the wall.
|
||||
// Relative to undistorted size of cell outside layer.
|
||||
// is the thickness of the layer furthest away from the wall.
|
||||
// See relativeSizes parameter.
|
||||
finalLayerThickness 0.0003;
|
||||
|
||||
// Minimum thickness of cell layer. If for any reason layer
|
||||
// cannot be above minThickness do not add layer.
|
||||
// Relative to undistorted size of cell outside layer.
|
||||
minThickness 0.0001;
|
||||
|
||||
// If points get not extruded do nGrow layers of connected faces that are
|
||||
// also not grown. This helps convergence of the layer addition process
|
||||
// close to features.
|
||||
nGrow 0;
|
||||
|
||||
|
||||
// Advanced settings
|
||||
|
||||
// When not to extrude surface. 0 is flat surface, 90 is when two faces
|
||||
// are perpendicular
|
||||
featureAngle 90;
|
||||
|
||||
// Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 3;
|
||||
|
||||
// Number of smoothing iterations of surface normals
|
||||
nSmoothSurfaceNormals 1;
|
||||
|
||||
// Number of smoothing iterations of interior mesh movement direction
|
||||
nSmoothNormals 3;
|
||||
|
||||
// Smooth layer thickness over surface patches
|
||||
nSmoothThickness 10;
|
||||
|
||||
// Stop layer growth on highly warped cells
|
||||
maxFaceThicknessRatio 1000;
|
||||
|
||||
// Reduce layer growth where ratio thickness to medial
|
||||
// distance is large
|
||||
maxThicknessToMedialRatio 0.3;
|
||||
|
||||
// Angle used to pick up medial axis points
|
||||
minMedianAxisAngle 90;
|
||||
|
||||
// Create buffer region for new layer terminations
|
||||
nBufferCellsNoExtrude 0;
|
||||
|
||||
|
||||
// Overall max number of layer addition iterations. The mesher will exit
|
||||
// if it reaches this number of iterations; possibly with an illegal
|
||||
// mesh.
|
||||
nLayerIter 50;
|
||||
|
||||
// Max number of iterations after which relaxed meshQuality controls
|
||||
// get used. Up to nRelaxIter it uses the settings in meshQualityControls,
|
||||
// after nRelaxIter it uses the values in meshQualityControls::relaxed.
|
||||
nRelaxedIter 20;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Generic mesh quality settings. At any undoable phase these determine
|
||||
// where to undo.
|
||||
meshQualityControls
|
||||
{
|
||||
// Generic mesh quality settings. At any undoable phase these determine
|
||||
// where to undo.
|
||||
#include "meshQualityDict"
|
||||
|
||||
maxNonOrtho 65;
|
||||
|
||||
// Optional : some meshing phases allow usage of relaxed rules.
|
||||
// See e.g. addLayersControls::nRelaxedIter.
|
||||
relaxed
|
||||
{
|
||||
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
||||
maxNonOrtho 75;
|
||||
}
|
||||
|
||||
// Advanced
|
||||
|
||||
//- Number of error distribution iterations
|
||||
nSmoothScale 4;
|
||||
//- amount to scale back displacement at error points
|
||||
errorReduction 0.75;
|
||||
}
|
||||
|
||||
|
||||
// Advanced
|
||||
|
||||
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
|
||||
// Note: the write tolerance needs to be higher than this.
|
||||
mergeTolerance 1E-6;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
319
tutorials/mesh/foamyHexMesh/flange/system/topoSetDict-background
Normal file
319
tutorials/mesh/foamyHexMesh/flange/system/topoSetDict-background
Normal file
@ -0,0 +1,319 @@
|
||||
/*--------------------------------*- 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 topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// List of actions. Each action is a dictionary with e.g.
|
||||
// // name of set
|
||||
// name c0;
|
||||
//
|
||||
// // type: pointSet/faceSet/cellSet/faceZoneSet/cellZoneSet
|
||||
// type cellSet;
|
||||
//
|
||||
// // action to perform on set. Two types:
|
||||
// // - require no source : clear/invert
|
||||
// // - require source : new/add/delete/subset
|
||||
// action new;
|
||||
//
|
||||
// The source entry varies according to the type of set:
|
||||
//
|
||||
// cellSet
|
||||
// ~~~~~~~
|
||||
//
|
||||
// // Select by explicitly providing cell labels
|
||||
// source labelToCell;
|
||||
// {
|
||||
// value (12 13 56); // labels of cells
|
||||
// }
|
||||
//
|
||||
// // Copy elements from cellSet
|
||||
// source cellToCell;
|
||||
// {
|
||||
// set c1;
|
||||
// }
|
||||
//
|
||||
// // Cells in cell zone
|
||||
// source zoneToCell;
|
||||
// {
|
||||
// name ".*Zone"; // Name of cellZone, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // Cells on master or slave side of faceZone
|
||||
// source faceZoneToCell;
|
||||
// {
|
||||
// name ".*Zone"; // Name of faceZone, regular expressions allowed
|
||||
// option master; // master/slave
|
||||
// }
|
||||
//
|
||||
// // Select based on faceSet
|
||||
// source faceToCell;
|
||||
// {
|
||||
// set f0; // Name of faceSet
|
||||
//
|
||||
// //option neighbour; // cell with neighbour in faceSet
|
||||
// //option owner; // ,, owner
|
||||
// option any; // cell with any face in faceSet
|
||||
// //option all; // cell with all faces in faceSet
|
||||
// }
|
||||
//
|
||||
// // Select based on pointSet
|
||||
// source pointToCell;
|
||||
// {
|
||||
// set p0;
|
||||
// option any; // cell with any point in pointSet
|
||||
// //option all; // cell with all points in pointSet
|
||||
// }
|
||||
//
|
||||
// // Select based on cellShape
|
||||
// source shapeToCell;
|
||||
// {
|
||||
// type hex; // hex/wedge/prism/pyr/tet/tetWedge/splitHex
|
||||
// }
|
||||
//
|
||||
// // Cells with cell centre within box
|
||||
// source boxToCell;
|
||||
// {
|
||||
// box (0 0 0) (1 1 1);
|
||||
// }
|
||||
//
|
||||
// // Cells with cell centre within box
|
||||
// // Is skewed, rotated box. Given as origin and three spanning vectors.
|
||||
// source rotatedBoxToCell;
|
||||
// {
|
||||
// origin (0.2 0.2 -10);
|
||||
// i (0.2 0.2 0);
|
||||
// j (-0.2 0.2 0);
|
||||
// k (10 10 10);
|
||||
// }
|
||||
//
|
||||
// // Cells with centre within cylinder
|
||||
// source cylinderToCell;
|
||||
// {
|
||||
// p1 (0.2 0.2 -10); // start point on cylinder axis
|
||||
// p2 (0.2 0.2 0); // end point on cylinder axis
|
||||
// radius 5.0;
|
||||
// }
|
||||
//
|
||||
// // Cells with centre within sphere
|
||||
// source sphereToCell;
|
||||
// {
|
||||
// centre (0.2 0.2 -10);
|
||||
// radius 5.0;
|
||||
// }
|
||||
//
|
||||
// // Cells with cellCentre nearest to coordinates
|
||||
// source nearestToCell;
|
||||
// {
|
||||
// points ((0 0 0) (1 1 1)(2 2 2));
|
||||
// }
|
||||
//
|
||||
// // Select based on surface
|
||||
// source surfaceToCell;
|
||||
// {
|
||||
// file "www.avl.com-geometry.stl";
|
||||
// outsidePoints ((-99 -99 -59)); // definition of outside
|
||||
// includeCut false; // cells cut by surface
|
||||
// includeInside false; // cells not on outside of surf
|
||||
// includeOutside false; // cells on outside of surf
|
||||
// nearDistance -1; // cells with centre near surf
|
||||
// // (set to -1 if not used)
|
||||
// curvature 0.9; // cells within nearDistance
|
||||
// // and near surf curvature
|
||||
// // (set to -100 if not used)
|
||||
// }
|
||||
//
|
||||
// // values of field within certain range
|
||||
// source fieldToCell;
|
||||
// {
|
||||
// fieldName U; // Note: uses mag(U) since volVectorField
|
||||
// min 0.1;
|
||||
// max 0.5;
|
||||
// }
|
||||
//
|
||||
// // Mesh region (non-face connected part of (subset of)mesh)
|
||||
// source regionToCell;
|
||||
// {
|
||||
// set c0; // name of cellSet giving mesh subset
|
||||
// insidePoint (1 2 3); // point inside region to select
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// faceSet
|
||||
// ~~~~~~~
|
||||
//
|
||||
// // Copy elements from faceSet
|
||||
// source faceToFace;
|
||||
// {
|
||||
// set f1;
|
||||
// }
|
||||
//
|
||||
// // Select based on cellSet
|
||||
// source cellToFace;
|
||||
// {
|
||||
// set c0;
|
||||
// option all; // All faces of cells
|
||||
// //option both; // Only faces whose owner&neighbour are in cellSet
|
||||
// }
|
||||
//
|
||||
// // Select based on pointSet
|
||||
// source pointToFace;
|
||||
// {
|
||||
// set p0;
|
||||
// option any; // Faces using any point in pointSet
|
||||
// //option all // Faces with all points in pointSet
|
||||
// }
|
||||
//
|
||||
// // Select by explicitly providing face labels
|
||||
// source labelToFace;
|
||||
// {
|
||||
// value (12 13 56); // labels of faces
|
||||
// }
|
||||
//
|
||||
// // All faces of patch
|
||||
// source patchToFace;
|
||||
// {
|
||||
// name ".*Wall"; // Name of patch, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // All faces of faceZone
|
||||
// source zoneToFace;
|
||||
// {
|
||||
// name ".*Zone1"; // Name of faceZone, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // Faces with face centre within box
|
||||
// source boxToFace;
|
||||
// {
|
||||
// box (0 0 0) (1 1 1);
|
||||
// }
|
||||
//
|
||||
// // Faces with normal to within certain angle aligned with vector.
|
||||
// source normalToFace;
|
||||
// {
|
||||
// normal (0 0 1); // Vector
|
||||
// cos 0.01; // Tolerance (max cos of angle)
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// pointSet
|
||||
// ~~~~~~~
|
||||
//
|
||||
// // Copy elements from pointSet
|
||||
// source pointToPoint;
|
||||
// {
|
||||
// set p1;
|
||||
// }
|
||||
//
|
||||
// // Select based on cellSet
|
||||
// source cellToPoint;
|
||||
// {
|
||||
// set c0;
|
||||
// option all; // all points of cell
|
||||
// }
|
||||
//
|
||||
// // Select based on faceSet
|
||||
// source faceToPoint;
|
||||
// {
|
||||
// set f0; // name of faceSet
|
||||
// option all; // all points of face
|
||||
// }
|
||||
//
|
||||
// // Select by explicitly providing point labels
|
||||
// source labelToPoint;
|
||||
// {
|
||||
// value (12 13 56); // labels of points
|
||||
// }
|
||||
//
|
||||
// // All points in pointzone
|
||||
// source zoneToPoint;
|
||||
// {
|
||||
// name ".*Zone"; // name of pointZone, regular expressions allowed
|
||||
// }
|
||||
//
|
||||
// // Points nearest to coordinates
|
||||
// source nearestToPoint;
|
||||
// {
|
||||
// points ((0 0 0) (1 1 1));
|
||||
// }
|
||||
//
|
||||
// // Points with coordinate within box
|
||||
// source boxToPoint;
|
||||
// {
|
||||
// box (0 0 0) (1 1 1);
|
||||
// }
|
||||
//
|
||||
// // Select based on surface
|
||||
// source surfaceToPoint;
|
||||
// {
|
||||
// file "www.avl.com-geometry.stl";
|
||||
// nearDistance 0.1; // points near to surface
|
||||
// includeInside false; // points on inside of surface
|
||||
// // (requires closed surface with consistent
|
||||
// // normals)
|
||||
// includeOutside false; // ,, outside ,,
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// cellZoneSet
|
||||
// ~~~~~~~~~~~
|
||||
// (mirrors operations on a cellSet into a cellZone)
|
||||
//
|
||||
// // Select based on cellSet
|
||||
// source setToCellZone;
|
||||
// {
|
||||
// set c0; // name of cellSet
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// faceZoneSet
|
||||
// ~~~~~~~~~~~
|
||||
// // Select based on faceSet without orientation
|
||||
// source setToFaceZone;
|
||||
// {
|
||||
// set f0; // name of faceSet
|
||||
// }
|
||||
//
|
||||
// // Select based on faceSet, using cellSet to determine orientation
|
||||
// source setsToFaceZone;
|
||||
// {
|
||||
// faceSet f0; // name of faceSet
|
||||
// cellSet c0; // name of cellSet of slave side
|
||||
// }
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name background;
|
||||
type cellSet;
|
||||
action new;
|
||||
source surfaceToCell;
|
||||
sourceInfo
|
||||
{
|
||||
file "constant/triSurface/flange.obj";
|
||||
outsidePoints ((-0.026 -0.0275 -0.0235));
|
||||
includeCut true;
|
||||
includeInside true;
|
||||
includeOutside false;
|
||||
nearDistance -1;
|
||||
curvature -100;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
152
tutorials/mesh/foamyHexMesh/flange/system/topoSetDict-slices
Normal file
152
tutorials/mesh/foamyHexMesh/flange/system/topoSetDict-slices
Normal file
@ -0,0 +1,152 @@
|
||||
/*--------------------------------*- 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 topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
zSlice -0.009;
|
||||
ySlice 0.0;
|
||||
xSlice 0.0;
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name z;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (-100 -100 $zSlice)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name zf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set z;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name z;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name zf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set z;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~ //
|
||||
|
||||
{
|
||||
name y;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (-100 $ySlice -100)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name yf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set y;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name y;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name yf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set y;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~ //
|
||||
|
||||
{
|
||||
name x;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box ($xSlice -100 -100)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name xf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set x;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name x;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name xf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set x;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
64
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/U
Normal file
64
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/U
Normal file
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- 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 binary;
|
||||
class volVectorField;
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0.5);
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type pressureInletOutletVelocity;
|
||||
phi phi;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"(shaftRotating|stirrer)"
|
||||
{
|
||||
type movingWallVelocity;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
shaft
|
||||
{
|
||||
type rotatingWallVelocity;
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
omega -5;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
47
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/alpha.phase1
Normal file
47
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/alpha.phase1
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 volScalarField;
|
||||
object alpha.phase1;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
50
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/epsilon
Normal file
50
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/epsilon
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 epsilon;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -3 0 0 0 0];
|
||||
|
||||
internalField uniform 7e-3;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
49
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/k
Normal file
49
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/k
Normal file
@ -0,0 +1,49 @@
|
||||
/*--------------------------------*- 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 k;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 0.01;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
48
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/nut
Normal file
48
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/nut
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- 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 nut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type nutkWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
43
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/p_rgh
Normal file
43
tutorials/mesh/foamyHexMesh/mixerVessel/0.org/p_rgh
Normal 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 volScalarField;
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 1.25e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
phi phiAbs;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
24
tutorials/mesh/foamyHexMesh/mixerVessel/Allclean
Executable file
24
tutorials/mesh/foamyHexMesh/mixerVessel/Allclean
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
\rm -rf constant/extendedFeatureEdgeMesh/
|
||||
\rm -f constant/triSurface/*.eMesh*
|
||||
\rm -f constant/triSurface/*.stl
|
||||
\rm -f constant/triSurface/*.obj
|
||||
\rm -f constant/triSurface/problemFaces
|
||||
\rm -f *.obj
|
||||
|
||||
\rm -f constant/backgroundMeshDecomposition/polyMesh/boundary
|
||||
\rm -f constant/backgroundMeshDecomposition/polyMesh/faces
|
||||
\rm -f constant/backgroundMeshDecomposition/polyMesh/neighbour
|
||||
\rm -f constant/backgroundMeshDecomposition/polyMesh/owner
|
||||
\rm -f constant/backgroundMeshDecomposition/polyMesh/points
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
13
tutorials/mesh/foamyHexMesh/mixerVessel/Allrun
Executable file
13
tutorials/mesh/foamyHexMesh/mixerVessel/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
|
||||
|
||||
# Generate mesh
|
||||
./Allrun-pre
|
||||
|
||||
# Run simulation
|
||||
./Allrun-simulation
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
109
tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre
Executable file
109
tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre
Executable file
@ -0,0 +1,109 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
intersectSurfaces()
|
||||
{
|
||||
runApplication \
|
||||
surfaceBooleanFeatures \
|
||||
intersection \
|
||||
"$@"
|
||||
|
||||
outputName1=$(basename $1)
|
||||
outputName1=${outputName1%.*}
|
||||
|
||||
outputName2=$(basename $2)
|
||||
outputName2=${outputName2%.*}
|
||||
|
||||
mv log.surfaceBooleanFeatures \
|
||||
log.surfaceBooleanFeatures.$outputName1:$outputName2
|
||||
}
|
||||
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
# Get number of processors to run on
|
||||
nProcs=$(getNumberOfProcessors)
|
||||
|
||||
\rm -rf 0
|
||||
|
||||
|
||||
# Run the surface preparation script
|
||||
./constant/triSurface/surfaceProcess.sh > log.surfaceProcess 2>&1
|
||||
|
||||
|
||||
# Surface intersections
|
||||
intersectSurfaces \
|
||||
constant/triSurface/vessel.stl \
|
||||
constant/triSurface/spargerShaft.stl \
|
||||
-perturb
|
||||
|
||||
intersectSurfaces \
|
||||
constant/triSurface/vessel.stl \
|
||||
constant/triSurface/shaft.stl \
|
||||
-perturb
|
||||
|
||||
intersectSurfaces \
|
||||
constant/triSurface/spargerShaft.stl \
|
||||
constant/triSurface/spargerInlet.stl \
|
||||
-perturb
|
||||
|
||||
intersectSurfaces \
|
||||
constant/triSurface/stirrer.stl \
|
||||
constant/triSurface/shaftRotating.stl \
|
||||
-perturb
|
||||
|
||||
intersectSurfaces \
|
||||
constant/triSurface/stirrer_baffles.stl \
|
||||
constant/triSurface/stirrer.stl \
|
||||
-surf1Baffle \
|
||||
-perturb
|
||||
|
||||
intersectSurfaces \
|
||||
constant/triSurface/rotating.stl \
|
||||
constant/triSurface/shaft.stl \
|
||||
-surf1Baffle \
|
||||
-perturb
|
||||
|
||||
# Intersect blades with the plate
|
||||
for bladeI in $(seq 1 6);
|
||||
do
|
||||
intersectSurfaces \
|
||||
constant/triSurface/stirrer_baffles_$bladeI.obj \
|
||||
constant/triSurface/stirrer_baffles_plate.obj \
|
||||
-surf1Baffle \
|
||||
-surf2Baffle
|
||||
done
|
||||
|
||||
|
||||
# Meshing
|
||||
\cp system/controlDict.mesh system/controlDict
|
||||
\cp system/collapseDict.collapseFaces system/collapseDict
|
||||
|
||||
runApplication blockMesh -region backgroundMeshDecomposition
|
||||
|
||||
runApplication decomposePar -region backgroundMeshDecomposition
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
|
||||
runParallel foamyHexMesh $nProcs
|
||||
|
||||
runParallel collapseEdges $nProcs -collapseFaces -latestTime
|
||||
mv log.collapseEdges log.collapseFaces
|
||||
|
||||
#\cp system/collapseDict.indirectPatchFaces system/collapseDict
|
||||
#runParallel collapseEdges $nProcs -collapseFaceSet indirectPatchFaces -latestTime
|
||||
#mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runParallel checkMesh $nProcs -allTopology -allGeometry -latestTime
|
||||
|
||||
runApplication reconstructParMesh -latestTime
|
||||
|
||||
# Copy the mesh into polyMesh and delete the 102 directory
|
||||
\cp -r 101/polyMesh constant
|
||||
\rm -rf 101
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
40
tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation
Executable file
40
tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
\cp system/controlDict.flow system/controlDict
|
||||
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
# Get number of processors to run on
|
||||
nProcs=$(getNumberOfProcessors)
|
||||
|
||||
\rm -rf 0
|
||||
|
||||
runApplication createBaffles -overwrite
|
||||
runApplication mergeOrSplitBaffles -split -overwrite
|
||||
|
||||
# Get rid of zero faced patches
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
# Copy fields after meshing to avoind the generation of unnecessary patch fields
|
||||
\cp -r 0.org 0
|
||||
|
||||
# Initialize alpha
|
||||
runApplication setFields
|
||||
|
||||
# Decompose
|
||||
\rm log.decomposePar
|
||||
runApplication decomposePar -force
|
||||
|
||||
# Run
|
||||
runParallel $application $nProcs
|
||||
|
||||
# Reconstruct
|
||||
runApplication reconstructPar -noFunctionObjects
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
9
tutorials/mesh/foamyHexMesh/mixerVessel/Alltest
Executable file
9
tutorials/mesh/foamyHexMesh/mixerVessel/Alltest
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Do nothing for now.
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,25 @@
|
||||
/*--------------------------------*- 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 RASProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
RASModel kEpsilon;
|
||||
|
||||
turbulence on;
|
||||
|
||||
printCoeffs off;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- 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 blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 1e-3;
|
||||
|
||||
vertices
|
||||
(
|
||||
( -309 -309 -250)
|
||||
( 300 -309 -250)
|
||||
( 300 300 -250)
|
||||
( -309 300 -250)
|
||||
( -309 -309 1500)
|
||||
( 300 -309 1500)
|
||||
( 300 300 1500)
|
||||
( -309 300 1500)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) (30 30 67) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
);
|
||||
|
||||
boundary
|
||||
(
|
||||
allBoundary
|
||||
{
|
||||
type patch;
|
||||
faces
|
||||
(
|
||||
(3 7 6 2)
|
||||
(0 4 7 3)
|
||||
(2 6 5 1)
|
||||
(1 5 4 0)
|
||||
(0 3 2 1)
|
||||
(4 5 6 7)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,36 @@
|
||||
/*--------------------------------*- 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 dynamicMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dynamicFvMesh solidBodyMotionFvMesh;
|
||||
|
||||
motionSolverLibs ( "libfvMotionSolvers.so" );
|
||||
|
||||
solidBodyMotionFvMeshCoeffs
|
||||
{
|
||||
cellZone rotating;
|
||||
|
||||
solidBodyMotionFunction rotatingMotion;
|
||||
rotatingMotionCoeffs
|
||||
{
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
omega -5; // 5 rad/s
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
22
tutorials/mesh/foamyHexMesh/mixerVessel/constant/g
Normal file
22
tutorials/mesh/foamyHexMesh/mixerVessel/constant/g
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 uniformDimensionedVectorField;
|
||||
location "constant";
|
||||
object g;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -2 0 0 0 0];
|
||||
value ( 0 0 -9.81 );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,36 @@
|
||||
/*--------------------------------*- 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 transportProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
phases (phase1 phase2);
|
||||
|
||||
phase1
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 300;
|
||||
}
|
||||
|
||||
phase2
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-6;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 1027;
|
||||
}
|
||||
|
||||
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,114 @@
|
||||
solid baffles
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.025
|
||||
vertex 0.137322 -0.137322 0.4
|
||||
vertex 0.155 -0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.4
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.155 -0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.025
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.172678 -0.172678 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.172678 -0.172678 0.4
|
||||
vertex 0.172678 -0.172678 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.4
|
||||
vertex 0.137322 -0.137322 0.775
|
||||
vertex 0.155 -0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.775
|
||||
vertex 0.155 -0.155 0.775
|
||||
vertex 0.155 -0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.155 -0.155 0.775
|
||||
vertex 0.172678 -0.172678 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.775
|
||||
vertex 0.172678 -0.172678 0.775
|
||||
vertex 0.172678 -0.172678 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.025
|
||||
vertex -0.172678 0.172678 0.4
|
||||
vertex -0.155 0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.4
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.155 0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.025
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.137322 0.137322 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.137322 0.137322 0.4
|
||||
vertex -0.137322 0.137322 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.4
|
||||
vertex -0.172678 0.172678 0.775
|
||||
vertex -0.155 0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.775
|
||||
vertex -0.155 0.155 0.775
|
||||
vertex -0.155 0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.155 0.155 0.775
|
||||
vertex -0.137322 0.137322 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.775
|
||||
vertex -0.137322 0.137322 0.775
|
||||
vertex -0.137322 0.137322 0.4
|
||||
endloop
|
||||
endfacet
|
||||
endsolid baffles
|
||||
@ -0,0 +1,254 @@
|
||||
solid gasInlet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0984808 0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex 0.1 0 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0939693 0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0984808 0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0866025 0.05 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0939693 0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0766044 0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0866025 0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0642788 0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0766044 0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.05 0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0642788 0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.034202 0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex 0.05 0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0173648 0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex 0.034202 0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 6.12323e-18 0.1 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0173648 0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0173648 0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex 6.12323e-18 0.1 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.034202 0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0173648 0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.05 0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex -0.034202 0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0642788 0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex -0.05 0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0766044 0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0642788 0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0866025 0.05 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0766044 0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0939693 0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0866025 0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0984808 0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0939693 0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.1 1.22465e-17 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0984808 0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0984808 -0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex -0.1 1.22465e-17 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0939693 -0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0984808 -0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0866025 -0.05 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0939693 -0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0766044 -0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0866025 -0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0642788 -0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0766044 -0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.05 -0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0642788 -0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.034202 -0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex -0.05 -0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0173648 -0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex -0.034202 -0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -1.83697e-17 -0.1 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0173648 -0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0173648 -0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex -1.83697e-17 -0.1 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.034202 -0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0173648 -0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.05 -0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex 0.034202 -0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0642788 -0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex 0.05 -0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0766044 -0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0642788 -0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0866025 -0.05 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0766044 -0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0939693 -0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0866025 -0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0984808 -0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0939693 -0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.1 -2.44929e-17 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0984808 -0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
endsolid gasInlet
|
||||
@ -0,0 +1,240 @@
|
||||
solid outlet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.13 -0.1 1.3
|
||||
vertex -0.129544 -0.105209 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.125981 -0.115 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.128191 -0.110261 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.128191 -0.110261 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.129544 -0.105209 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.122981 -0.119284 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.125981 -0.115 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.119284 -0.122981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.122981 -0.119284 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.115 -0.125981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.119284 -0.122981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.110261 -0.128191 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.115 -0.125981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.105209 -0.129544 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.110261 -0.128191 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.1 -0.13 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.105209 -0.129544 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0947905 -0.129544 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.1 -0.13 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0897394 -0.128191 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0947905 -0.129544 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.085 -0.125981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0897394 -0.128191 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0807164 -0.122981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.085 -0.125981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0770187 -0.119284 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0807164 -0.122981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0740192 -0.115 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0770187 -0.119284 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0718092 -0.110261 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0740192 -0.115 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0704558 -0.105209 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0718092 -0.110261 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.07 -0.1 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0704558 -0.105209 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0704558 -0.0947905 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.07 -0.1 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0718092 -0.0897394 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0704558 -0.0947905 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0740192 -0.085 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0718092 -0.0897394 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0770187 -0.0807164 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0740192 -0.085 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0807164 -0.0770187 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0770187 -0.0807164 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.085 -0.0740192 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0807164 -0.0770187 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0897394 -0.0718092 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.085 -0.0740192 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0947905 -0.0704558 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0897394 -0.0718092 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.1 -0.07 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0947905 -0.0704558 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.105209 -0.0704558 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.1 -0.07 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.110261 -0.0718092 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.105209 -0.0704558 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.115 -0.0740192 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.110261 -0.0718092 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.119284 -0.0770187 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.115 -0.0740192 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.122981 -0.0807164 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.119284 -0.0770187 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.125981 -0.085 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.122981 -0.0807164 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.128191 -0.0897394 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.125981 -0.085 1.3
|
||||
endloop
|
||||
endfacet
|
||||
endsolid ascii
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
\cp rawSurfaces/*.stl .
|
||||
|
||||
|
||||
# Vessel surface
|
||||
surfaceAdd outlet.stl vessel.stl vessel.stl
|
||||
|
||||
# Sparger
|
||||
surfaceCheck sparger.stl
|
||||
surfaceAdd gasInlet.stl sparger_0.obj spargerInlet.stl
|
||||
surfaceConvert sparger_1.obj spargerShaft.stl
|
||||
surfaceOrient -inside spargerInlet.stl "(0 0.1 1)" spargerInlet.stl
|
||||
surfaceOrient -inside spargerShaft.stl "(0 0.1 -0.1)" spargerShaft.stl
|
||||
|
||||
# Rotating shaft
|
||||
surfaceOrient -inside shaftRotating.stl "(0 0.1 1)" shaftRotating.stl
|
||||
|
||||
# Static shaft
|
||||
surfaceOrient -inside shaft.stl "(0 0.1 1)" shaft.stl
|
||||
|
||||
# Stirrer
|
||||
surfaceSplitByTopology stirrer.stl stirrer.stl
|
||||
surfaceOrient -inside stirrer.stl "(0 0.1 1)" stirrer.stl
|
||||
|
||||
\mv stirrer_bafflePart_0.stl stirrer_baffles.stl
|
||||
|
||||
surfaceCheck stirrer_baffles.stl
|
||||
\mv stirrer_baffles_0.obj stirrer_baffles_plate.obj
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- 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 RASModel;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1 @@
|
||||
.
|
||||
@ -0,0 +1 @@
|
||||
.
|
||||
85
tutorials/mesh/foamyHexMesh/mixerVessel/system/collapseDict
Normal file
85
tutorials/mesh/foamyHexMesh/mixerVessel/system/collapseDict
Normal file
@ -0,0 +1,85 @@
|
||||
/*--------------------------------*- 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 collapseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// If on, after collapsing check the quality of the mesh. If bad faces are
|
||||
// generated then redo the collapsing with stricter filtering.
|
||||
controlMeshQuality on;
|
||||
|
||||
collapseEdgesCoeffs
|
||||
{
|
||||
// Edges shorter than this absolute value will be merged
|
||||
minimumEdgeLength 1e-6;
|
||||
|
||||
// The maximum angle between two edges that share a point attached to
|
||||
// no other edges
|
||||
maximumMergeAngle 180;
|
||||
}
|
||||
|
||||
|
||||
collapseFacesCoeffs
|
||||
{
|
||||
// The initial face length factor
|
||||
initialFaceLengthFactor 1;
|
||||
|
||||
// If the face can't be collapsed to an edge, and it has a span less than
|
||||
// the target face length multiplied by this coefficient, collapse it
|
||||
// to a point.
|
||||
maxCollapseFaceToPointSideLengthCoeff 0.3;
|
||||
|
||||
// Allow early collapse of edges to a point
|
||||
allowEarlyCollapseToPoint on;
|
||||
|
||||
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
|
||||
// allowEarlyCollapseToPoint is enabled
|
||||
allowEarlyCollapseCoeff 0.2;
|
||||
|
||||
// Defining how close to the midpoint (M) of the projected
|
||||
// vertices line a projected vertex (X) can be before making this
|
||||
// an invalid edge collapse
|
||||
//
|
||||
// X---X-g----------------M----X-----------g----X--X
|
||||
//
|
||||
// Only allow a collapse if all projected vertices are outwith
|
||||
// guardFraction (g) of the distance form the face centre to the
|
||||
// furthest vertex in the considered direction
|
||||
guardFraction 0.1;
|
||||
}
|
||||
|
||||
|
||||
controlMeshQualityCoeffs
|
||||
{
|
||||
// Name of the dictionary that has the mesh quality coefficients used
|
||||
// by motionSmoother::checkMesh
|
||||
#include "meshQualityDict";
|
||||
|
||||
// The amount that minimumEdgeLength will be reduced by for each
|
||||
// edge if that edge's collapse generates a poor quality face
|
||||
edgeReductionFactor 0.5;
|
||||
|
||||
// The amount that initialFaceLengthFactor will be reduced by for each
|
||||
// face if its collapse generates a poor quality face
|
||||
faceReductionFactor 0.5;
|
||||
|
||||
// Maximum number of outer iterations is mesh quality checking is enabled
|
||||
maximumIterations 10;
|
||||
|
||||
maximumSmoothingIterations 1;
|
||||
|
||||
maxPointErrorCount 3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,85 @@
|
||||
/*--------------------------------*- 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 collapseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// If on, after collapsing check the quality of the mesh. If bad faces are
|
||||
// generated then redo the collapsing with stricter filtering.
|
||||
controlMeshQuality on;
|
||||
|
||||
collapseEdgesCoeffs
|
||||
{
|
||||
// Edges shorter than this absolute value will be merged
|
||||
minimumEdgeLength 1e-6;
|
||||
|
||||
// The maximum angle between two edges that share a point attached to
|
||||
// no other edges
|
||||
maximumMergeAngle 180;
|
||||
}
|
||||
|
||||
|
||||
collapseFacesCoeffs
|
||||
{
|
||||
// The initial face length factor
|
||||
initialFaceLengthFactor 0.35;
|
||||
|
||||
// If the face can't be collapsed to an edge, and it has a span less than
|
||||
// the target face length multiplied by this coefficient, collapse it
|
||||
// to a point.
|
||||
maxCollapseFaceToPointSideLengthCoeff 0.3;
|
||||
|
||||
// Allow early collapse of edges to a point
|
||||
allowEarlyCollapseToPoint on;
|
||||
|
||||
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
|
||||
// allowEarlyCollapseToPoint is enabled
|
||||
allowEarlyCollapseCoeff 0.2;
|
||||
|
||||
// Defining how close to the midpoint (M) of the projected
|
||||
// vertices line a projected vertex (X) can be before making this
|
||||
// an invalid edge collapse
|
||||
//
|
||||
// X---X-g----------------M----X-----------g----X--X
|
||||
//
|
||||
// Only allow a collapse if all projected vertices are outwith
|
||||
// guardFraction (g) of the distance form the face centre to the
|
||||
// furthest vertex in the considered direction
|
||||
guardFraction 0.1;
|
||||
}
|
||||
|
||||
|
||||
controlMeshQualityCoeffs
|
||||
{
|
||||
// Name of the dictionary that has the mesh quality coefficients used
|
||||
// by motionSmoother::checkMesh
|
||||
#include "meshQualityDict";
|
||||
|
||||
// The amount that minimumEdgeLength will be reduced by for each
|
||||
// edge if that edge's collapse generates a poor quality face
|
||||
edgeReductionFactor 0.5;
|
||||
|
||||
// The amount that initialFaceLengthFactor will be reduced by for each
|
||||
// face if its collapse generates a poor quality face
|
||||
faceReductionFactor 0.5;
|
||||
|
||||
// Maximum number of outer iterations is mesh quality checking is enabled
|
||||
maximumIterations 10;
|
||||
|
||||
maximumSmoothingIterations 1;
|
||||
|
||||
maxPointErrorCount 3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,85 @@
|
||||
/*--------------------------------*- 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 collapseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// If on, after collapsing check the quality of the mesh. If bad faces are
|
||||
// generated then redo the collapsing with stricter filtering.
|
||||
controlMeshQuality on;
|
||||
|
||||
collapseEdgesCoeffs
|
||||
{
|
||||
// Edges shorter than this absolute value will be merged
|
||||
minimumEdgeLength 1e-6;
|
||||
|
||||
// The maximum angle between two edges that share a point attached to
|
||||
// no other edges
|
||||
maximumMergeAngle 180;
|
||||
}
|
||||
|
||||
|
||||
collapseFacesCoeffs
|
||||
{
|
||||
// The initial face length factor
|
||||
initialFaceLengthFactor 1;
|
||||
|
||||
// If the face can't be collapsed to an edge, and it has a span less than
|
||||
// the target face length multiplied by this coefficient, collapse it
|
||||
// to a point.
|
||||
maxCollapseFaceToPointSideLengthCoeff 0.3;
|
||||
|
||||
// Allow early collapse of edges to a point
|
||||
allowEarlyCollapseToPoint on;
|
||||
|
||||
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
|
||||
// allowEarlyCollapseToPoint is enabled
|
||||
allowEarlyCollapseCoeff 0.2;
|
||||
|
||||
// Defining how close to the midpoint (M) of the projected
|
||||
// vertices line a projected vertex (X) can be before making this
|
||||
// an invalid edge collapse
|
||||
//
|
||||
// X---X-g----------------M----X-----------g----X--X
|
||||
//
|
||||
// Only allow a collapse if all projected vertices are outwith
|
||||
// guardFraction (g) of the distance form the face centre to the
|
||||
// furthest vertex in the considered direction
|
||||
guardFraction 0.1;
|
||||
}
|
||||
|
||||
|
||||
controlMeshQualityCoeffs
|
||||
{
|
||||
// Name of the dictionary that has the mesh quality coefficients used
|
||||
// by motionSmoother::checkMesh
|
||||
#include "meshQualityDict";
|
||||
|
||||
// The amount that minimumEdgeLength will be reduced by for each
|
||||
// edge if that edge's collapse generates a poor quality face
|
||||
edgeReductionFactor 0.5;
|
||||
|
||||
// The amount that initialFaceLengthFactor will be reduced by for each
|
||||
// face if its collapse generates a poor quality face
|
||||
faceReductionFactor 0.5;
|
||||
|
||||
// Maximum number of outer iterations is mesh quality checking is enabled
|
||||
maximumIterations 10;
|
||||
|
||||
maximumSmoothingIterations 1;
|
||||
|
||||
maxPointErrorCount 3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
48
tutorials/mesh/foamyHexMesh/mixerVessel/system/controlDict
Normal file
48
tutorials/mesh/foamyHexMesh/mixerVessel/system/controlDict
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- 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 foamyHexMesh;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 100;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat binary;
|
||||
|
||||
writePrecision 10;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,56 @@
|
||||
/*--------------------------------*- 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 interDyMFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 5.0;
|
||||
|
||||
deltaT 1e-4;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 0.05;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat binary;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 10;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 1.5;
|
||||
|
||||
maxAlphaCo 1;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- 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 foamyHexMesh;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 100;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat binary;
|
||||
|
||||
writePrecision 10;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
// ************************************************************************* //
|
||||
103
tutorials/mesh/foamyHexMesh/mixerVessel/system/createBafflesDict
Normal file
103
tutorials/mesh/foamyHexMesh/mixerVessel/system/createBafflesDict
Normal file
@ -0,0 +1,103 @@
|
||||
/*--------------------------------*- 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 createBafflesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Whether to convert internal faces only (so leave boundary faces intact).
|
||||
// This is only relevant if your face selection type can pick up boundary
|
||||
// faces.
|
||||
internalFacesOnly true;
|
||||
|
||||
|
||||
// Baffles to create.
|
||||
baffles
|
||||
{
|
||||
baffles
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName baffles;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
name baffles;
|
||||
type wall;
|
||||
}
|
||||
slave
|
||||
{
|
||||
${..master}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stirrer_baffles
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName stirrer_baffles;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
name stirrer_baffles;
|
||||
type wall;
|
||||
}
|
||||
slave
|
||||
{
|
||||
${..master}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rotating
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName rotating;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
name AMI1;
|
||||
type cyclicAMI;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch AMI2;
|
||||
transform noOrdering;
|
||||
// Switch to zero-gradient for low weights
|
||||
lowWeightCorrection 0.2;
|
||||
}
|
||||
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
name AMI2;
|
||||
type cyclicAMI;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch AMI1;
|
||||
transform noOrdering;
|
||||
lowWeightCorrection 0.2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,27 @@
|
||||
/*--------------------------------*- 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 createPatchDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Do a synchronisation of coupled points after creation of any patches.
|
||||
// Note: this does not work with points that are on multiple coupled patches
|
||||
// with transformations (i.e. cyclics).
|
||||
pointSync false;
|
||||
|
||||
// Patches to create.
|
||||
patches
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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 decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 8;
|
||||
|
||||
//method ptscotch;
|
||||
method hierarchical;
|
||||
//method scotch;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 2 2 1 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 2 2 2 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
109
tutorials/mesh/foamyHexMesh/mixerVessel/system/foamyHexMeshDict
Normal file
109
tutorials/mesh/foamyHexMesh/mixerVessel/system/foamyHexMeshDict
Normal file
@ -0,0 +1,109 @@
|
||||
/*--------------------------------*- 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 foamyHexMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
|
||||
|
||||
geometry
|
||||
{
|
||||
#include "meshDict.geometry"
|
||||
}
|
||||
|
||||
|
||||
initialPoints
|
||||
{
|
||||
//initialPointsMethod pointFile;
|
||||
initialPointsMethod autoDensity;
|
||||
|
||||
autoDensityCoeffs
|
||||
{
|
||||
minLevels 2;
|
||||
maxSizeRatio 2.0;
|
||||
sampleResolution 5;
|
||||
surfaceSampleResolution 5;
|
||||
}
|
||||
|
||||
pointFileCoeffs
|
||||
{
|
||||
insideOutsideCheck off;
|
||||
randomiseInitialGrid off;
|
||||
randomPerturbationCoeff 1e-3;
|
||||
pointFile "0/internalDelaunayVertices";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
locationInMesh (0 0.1 1.0);
|
||||
|
||||
#include "meshDict.conformationSurfaces"
|
||||
|
||||
featurePointExclusionDistanceCoeff 0.65;
|
||||
featureEdgeExclusionDistanceCoeff 0.5;
|
||||
maxSurfaceProtrusionCoeff 0.1;
|
||||
|
||||
conformationControls
|
||||
{
|
||||
edgeSearchDistCoeff 5;
|
||||
surfacePtReplaceDistCoeff 0.5;
|
||||
surfacePtExclusionDistanceCoeff 0.5;
|
||||
maxIterations 15;
|
||||
iterationToInitialHitRatioLimit 0.0001;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
defaultCellSize 6e-3;
|
||||
|
||||
minimumCellSizeCoeff 0.1;
|
||||
|
||||
maxRefinementIterations 1;
|
||||
|
||||
maxSmoothingIterations 100;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
#include "meshDict.cellShapeControl"
|
||||
}
|
||||
|
||||
objOutput no;
|
||||
|
||||
timeChecks no;
|
||||
}
|
||||
|
||||
|
||||
backgroundMeshDecomposition
|
||||
{
|
||||
minLevels 1;
|
||||
sampleResolution 4;
|
||||
spanScale 20;
|
||||
maxCellWeightCoeff 20;
|
||||
}
|
||||
|
||||
|
||||
polyMeshFiltering
|
||||
{
|
||||
writeBackgroundMeshDecomposition true;
|
||||
writeCellShapeControlMesh true;
|
||||
writeTetDualMesh false;
|
||||
filterEdges on;
|
||||
filterFaces off;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
66
tutorials/mesh/foamyHexMesh/mixerVessel/system/fvSchemes
Normal file
66
tutorials/mesh/foamyHexMesh/mixerVessel/system/fvSchemes
Normal file
@ -0,0 +1,66 @@
|
||||
/*--------------------------------*- 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 Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(U) cellLimited Gauss linear 1;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
div(rhoPhi,U) Gauss linearUpwind grad(U);
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phirb,alpha) Gauss linear;
|
||||
div(phid1,p_rgh) Gauss upwind;
|
||||
div(phid2,p_rgh) Gauss upwind;
|
||||
div(rhoPhi,T) Gauss linearUpwind unlimited;
|
||||
div(rhoPhi,K) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div((muEff*dev(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear limited 0.333;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default limited 0.333;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p_rgh;
|
||||
pcorr;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
111
tutorials/mesh/foamyHexMesh/mixerVessel/system/fvSolution
Normal file
111
tutorials/mesh/foamyHexMesh/mixerVessel/system/fvSolution
Normal file
@ -0,0 +1,111 @@
|
||||
/*--------------------------------*- 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
|
||||
{
|
||||
alpha.phase1
|
||||
{
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 2;
|
||||
cAlpha 1;
|
||||
}
|
||||
|
||||
p_rgh
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-6;
|
||||
relTol 0.02;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pcorr
|
||||
{
|
||||
$p_rgh;
|
||||
tolerance 0.1;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
p_rghFinal
|
||||
{
|
||||
$p_rgh;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
pcorrFinal
|
||||
{
|
||||
$pcorr;
|
||||
tolerance 0.1;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
".*(rho|rhoFinal)"
|
||||
{
|
||||
solver diagonal;
|
||||
}
|
||||
|
||||
"U.*"
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother symGaussSeidel;
|
||||
tolerance 1e-6;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
"(T|k|epsilon).*"
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother symGaussSeidel;
|
||||
tolerance 1e-6;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
momentumPredictor yes;
|
||||
correctPhi yes;
|
||||
transSonic no;
|
||||
nOuterCorrectors 1;
|
||||
nCorrectors 3;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 2;
|
||||
cAlpha 1;
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
}
|
||||
equations
|
||||
{
|
||||
"U.*" 1;
|
||||
"k.*" 1;
|
||||
"epsilon.*" 1;
|
||||
"T.*" 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,189 @@
|
||||
/*--------------------------------*- 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 meshDict.cellShapeControl;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
vessel
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode inside;
|
||||
forceInitialPointInsertion off;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
|
||||
cellSizeFunction uniform;
|
||||
uniformCoeffs{}
|
||||
|
||||
regions
|
||||
{
|
||||
vessel
|
||||
{
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
|
||||
cellSizeFunction uniform;
|
||||
uniformCoeffs{}
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
priority 2;
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 0.5;
|
||||
}
|
||||
|
||||
cellSizeFunction uniformDistance;
|
||||
uniformDistanceCoeffs
|
||||
{
|
||||
distanceCoeff 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shaftRotating
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 2;
|
||||
mode inside;
|
||||
forceInitialPointInsertion on;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 0.5;
|
||||
}
|
||||
|
||||
cellSizeFunction linearDistance;
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSizeCoeff 1;
|
||||
distanceCoeff 4;
|
||||
}
|
||||
}
|
||||
|
||||
shaft
|
||||
{
|
||||
${shaftRotating};
|
||||
}
|
||||
|
||||
stirrer
|
||||
{
|
||||
${shaftRotating};
|
||||
}
|
||||
|
||||
spargerInlet
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 2;
|
||||
mode inside;
|
||||
forceInitialPointInsertion on;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 0.5;
|
||||
}
|
||||
|
||||
cellSizeFunction linearDistance;
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSizeCoeff 1;
|
||||
distanceCoeff 4;
|
||||
}
|
||||
}
|
||||
|
||||
spargerShaft
|
||||
{
|
||||
${spargerInlet}
|
||||
}
|
||||
|
||||
stirrer_baffles
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 2;
|
||||
mode bothSides;
|
||||
forceInitialPointInsertion on;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 0.5;
|
||||
}
|
||||
|
||||
cellSizeFunction linearDistance;
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSizeCoeff 1;
|
||||
distanceCoeff 4;
|
||||
}
|
||||
}
|
||||
|
||||
rotating
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 2;
|
||||
mode bothSides;
|
||||
forceInitialPointInsertion on;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
|
||||
cellSizeFunction uniform;
|
||||
uniformCoeffs{}
|
||||
//cellSizeFunction linearDistance;
|
||||
//linearDistanceCoeffs
|
||||
//{
|
||||
// distanceCellSizeCoeff 1;
|
||||
// distanceCoeff 4;
|
||||
//}
|
||||
}
|
||||
|
||||
baffles
|
||||
{
|
||||
${rotating}
|
||||
/* type searchableSurfaceControl;*/
|
||||
/* priority 3;*/
|
||||
/* mode bothSides;*/
|
||||
/* forceInitialPointInsertion on;*/
|
||||
|
||||
/* surfaceCellSizeFunction uniformValue;*/
|
||||
/* uniformValueCoeffs*/
|
||||
/* {*/
|
||||
/* surfaceCellSizeCoeff 0.25;*/
|
||||
/* }*/
|
||||
|
||||
/* cellSizeFunction linearDistance;*/
|
||||
/* linearDistanceCoeffs*/
|
||||
/* {*/
|
||||
/* distanceCellSizeCoeff 1;*/
|
||||
/* distanceCoeff 4;*/
|
||||
/* }*/
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,228 @@
|
||||
/*--------------------------------*- 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 meshDict.conformationSurfaces;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
geometryToConformTo
|
||||
{
|
||||
spargerInlet
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "spargerInlet.extendedFeatureEdgeMesh";
|
||||
|
||||
regions
|
||||
{
|
||||
gasInlet
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type patch;
|
||||
}
|
||||
}
|
||||
|
||||
sparger
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spargerShaft
|
||||
{
|
||||
featureMethod none;
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
|
||||
vessel
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "vessel.extendedFeatureEdgeMesh";
|
||||
regions
|
||||
{
|
||||
outlet
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type patch;
|
||||
}
|
||||
}
|
||||
vessel
|
||||
{
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shaftRotating
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "shaftRotating.extendedFeatureEdgeMesh";
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
|
||||
shaft
|
||||
{
|
||||
featureMethod none;
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
|
||||
stirrer
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer.extendedFeatureEdgeMesh";
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
|
||||
stirrer_baffles
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles.extendedFeatureEdgeMesh";
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
meshableSide both;
|
||||
|
||||
faceZone stirrer_baffles;
|
||||
}
|
||||
|
||||
rotating
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "rotating.extendedFeatureEdgeMesh";
|
||||
meshableSide both;
|
||||
|
||||
faceZone rotating;
|
||||
cellZone rotating;
|
||||
cellZoneInside inside;
|
||||
}
|
||||
|
||||
baffles
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "baffles.extendedFeatureEdgeMesh";
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
meshableSide both;
|
||||
|
||||
faceZone baffles;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
additionalFeatures
|
||||
{
|
||||
spargerShaft_spargerInlet_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "spargerShaft_spargerInlet_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
vessel_shaft_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "vessel_shaft_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
vessel_spargerShaft_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "vessel_spargerShaft_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_shaftRotating_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_shaftRotating_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
rotating_shaft_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "rotating_shaft_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_stirrer_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_stirrer_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_1_stirrer_baffles_plate_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_1_stirrer_baffles_plate_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_2_stirrer_baffles_plate_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_2_stirrer_baffles_plate_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_3_stirrer_baffles_plate_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_3_stirrer_baffles_plate_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_4_stirrer_baffles_plate_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_4_stirrer_baffles_plate_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_5_stirrer_baffles_plate_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_5_stirrer_baffles_plate_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
|
||||
stirrer_baffles_6_stirrer_baffles_plate_intersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "stirrer_baffles_6_stirrer_baffles_plate_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
155
tutorials/mesh/foamyHexMesh/mixerVessel/system/meshDict.geometry
Normal file
155
tutorials/mesh/foamyHexMesh/mixerVessel/system/meshDict.geometry
Normal file
@ -0,0 +1,155 @@
|
||||
/*--------------------------------*- 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 meshDict.geometry;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
vessel.stl
|
||||
{
|
||||
name vessel;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
outlet {name outlet;}
|
||||
vessel {name vessel;}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
spargerInlet.stl
|
||||
{
|
||||
name spargerInlet;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
gasInlet
|
||||
{
|
||||
name gasInlet;
|
||||
}
|
||||
|
||||
sparger
|
||||
{
|
||||
name sparger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
spargerShaft.stl
|
||||
{
|
||||
name spargerShaft;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
sparger
|
||||
{
|
||||
name spargerShaft;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
shaftRotating.stl
|
||||
{
|
||||
name shaftRotating;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
shaftRotating
|
||||
{
|
||||
name shaftRotating;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
shaft.stl
|
||||
{
|
||||
name shaft;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
shaft
|
||||
{
|
||||
name shaft;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stirrer_baffles.stl
|
||||
{
|
||||
name stirrer_baffles;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
stirrer
|
||||
{
|
||||
name stirrer_baffles;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stirrer.stl
|
||||
{
|
||||
name stirrer;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
stirrer
|
||||
{
|
||||
name stirrer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
rotating.stl
|
||||
{
|
||||
name rotating;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
MRF
|
||||
{
|
||||
name rotating;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
baffles.stl
|
||||
{
|
||||
name baffles;
|
||||
type triSurfaceMesh;
|
||||
|
||||
regions
|
||||
{
|
||||
baffles
|
||||
{
|
||||
name baffles;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,30 @@
|
||||
/*--------------------------------*- 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 meshQualityControls;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
maxNonOrtho 60;
|
||||
maxBoundarySkewness 50;
|
||||
maxInternalSkewness 10;
|
||||
maxConcave 80;
|
||||
minVol 1e-20;
|
||||
minTetQuality 1e-30;
|
||||
minArea -1;
|
||||
minTwist 0.0;
|
||||
minDeterminant 0.001;
|
||||
minFaceWeight 0.02;
|
||||
minVolRatio 0.01;
|
||||
minTriangleTwist -1;
|
||||
|
||||
// ************************************************************************* //
|
||||
36
tutorials/mesh/foamyHexMesh/mixerVessel/system/setFieldsDict
Normal file
36
tutorials/mesh/foamyHexMesh/mixerVessel/system/setFieldsDict
Normal file
@ -0,0 +1,36 @@
|
||||
/*--------------------------------*- 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 setFieldsDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.phase1 1
|
||||
);
|
||||
|
||||
regions
|
||||
(
|
||||
boxToCell
|
||||
{
|
||||
box (-4 -4 -1) (4 4 0.74);
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.phase1 0
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,144 @@
|
||||
/*--------------------------------*- 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
shaftRotating.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 100;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Remove the top feature
|
||||
insideBox (-0.1 -0.1 -0.1)(0.1 0.1 0.1);
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj yes;
|
||||
}
|
||||
|
||||
|
||||
vessel.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// 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
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
spargerInlet.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
stirrer.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
stirrer_baffles.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
baffles (stirrer);
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
rotating.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
baffles (MRF);
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj yes;
|
||||
}
|
||||
|
||||
|
||||
baffles.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
baffles (baffles);
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
22
tutorials/mesh/foamyHexMesh/simpleShapes/Allclean
Executable file
22
tutorials/mesh/foamyHexMesh/simpleShapes/Allclean
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -r constant/extendedFeatureEdgeMesh constant/internalDelaunayVertices > /dev/null 2>&1
|
||||
rm constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm constant/triSurface/*_orient* > /dev/null 2>&1
|
||||
rm -r constant/polyMesh > /dev/null 2>&1
|
||||
rm -r constant/polyMesh > /dev/null 2>&1
|
||||
rm -r constant/tetDualMesh > /dev/null 2>&1
|
||||
|
||||
rm -r snapToSurface?.obj tetsToSnapTo.obj > /dev/null 2>&1
|
||||
|
||||
rm domain coneAndSphere > /dev/null 2>&1
|
||||
|
||||
rm -rf 0/
|
||||
|
||||
cleanCase
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
31
tutorials/mesh/foamyHexMesh/simpleShapes/Allrun
Executable file
31
tutorials/mesh/foamyHexMesh/simpleShapes/Allrun
Executable file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication surfaceOrient \
|
||||
constant/triSurface/cone.stl \
|
||||
-inside '(0 -0.5 0)' \
|
||||
constant/triSurface/cone_orient.stl
|
||||
mv log.surfaceOrient log.surfaceOrient.cone
|
||||
|
||||
runApplication surfaceOrient \
|
||||
constant/triSurface/sphere.stl \
|
||||
-inside '(0 -0.5 0)' \
|
||||
constant/triSurface/sphere_orient.stl
|
||||
mv log.surfaceOrient log.surfaceOrient.sphere
|
||||
|
||||
runApplication surfaceBooleanFeatures intersection \
|
||||
constant/triSurface/cone_orient.stl \
|
||||
constant/triSurface/sphere_orient.stl
|
||||
|
||||
runApplication foamyHexMesh
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaceSet indirectPatchFaces
|
||||
mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaces
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,828 @@
|
||||
solid ascii
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.475528 -0.154509
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.489074 -0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.489074 -0.103956
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.497261 -0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.497261 -0.0522642
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.5 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.5 0
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.497261 0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.497261 0.0522642
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.489074 0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.489074 0.103956
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.475528 0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.475528 0.154509
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.456773 0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.456773 0.203368
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.433013 0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.433013 -0.25
|
||||
vertex -0.5 0.433013 0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.433013 0.25
|
||||
vertex -0.5 0.433013 -0.25
|
||||
vertex -0.5 0.404509 0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.404509 0.293893
|
||||
vertex -0.5 0.433013 -0.25
|
||||
vertex -0.5 0.371572 0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.433013 -0.25
|
||||
vertex -0.5 0.404509 -0.293893
|
||||
vertex -0.5 0.371572 0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.404509 -0.293893
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.371572 0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.371572 0.334565
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.334565 0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.334565 0.371572
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.293893 0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.293893 0.404509
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.25 0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.25 0.433013
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.203368 0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.203368 0.456773
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.154509 0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.154509 0.475528
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.103956 0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.103956 0.489074
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.0522642 0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.0522642 0.497261
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -1.02552e-10 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -1.02552e-10 0.5
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.0522642 0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.0522642 0.497261
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.103956 0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.103956 0.489074
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.154509 0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.154509 0.475528
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.203368 0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.203368 0.456773
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.25 0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.25 0.433013
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.293893 0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.293893 0.404509
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.334565 0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.334565 0.371572
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.371572 0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.371572 0.334565
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.404509 0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.404509 0.293893
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.433013 0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.433013 0.25
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.456773 0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.456773 0.203368
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.475528 0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.475528 0.154509
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.489074 0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.489074 0.103956
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.497261 0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.497261 0.0522642
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.5 -2.05103e-10
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.5 -2.05103e-10
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.497261 -0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.497261 -0.0522642
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.489074 -0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.489074 -0.103956
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.475528 -0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.475528 -0.154509
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.456773 -0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.456773 -0.203368
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.433013 -0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.433013 -0.25
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.404509 -0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.404509 -0.293893
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.371572 -0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.371572 -0.334565
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.334565 -0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.334565 -0.371572
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.293893 -0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.293893 -0.404509
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.25 -0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.25 -0.433013
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.203368 -0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.203368 -0.456773
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.154509 -0.475528
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.103956 -0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.103956 -0.489074
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 -0.0522642 -0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 -0.0522642 -0.497261
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 3.07655e-10 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 3.07655e-10 -0.5
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.0522642 -0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.0522642 -0.497261
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.103956 -0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.103956 -0.489074
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.334565 -0.371572
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex -0.5 0.334565 -0.371572
|
||||
vertex -0.5 0.293893 -0.404509
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex -0.5 0.293893 -0.404509
|
||||
vertex -0.5 0.25 -0.433013
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex -0.5 0.203368 -0.456773
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
vertex -0.5 0.25 -0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.893446 0.0468234
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.5 0
|
||||
vertex -0.5 0.497261 0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.883657 0.139958
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.497261 0.0522642
|
||||
vertex -0.5 0.489074 0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.864187 0.231558
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.489074 0.103956
|
||||
vertex -0.5 0.475528 0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.835248 0.320622
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.475528 0.154509
|
||||
vertex -0.5 0.456773 0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.797159 0.406173
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.456773 0.203368
|
||||
vertex -0.5 0.433013 0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.750335 0.487273
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.433013 0.25
|
||||
vertex -0.5 0.404509 0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.695291 0.563036
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.404509 0.293893
|
||||
vertex -0.5 0.371572 0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.632629 0.632629
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.371572 0.334565
|
||||
vertex -0.5 0.334565 0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.563036 0.695291
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.334565 0.371572
|
||||
vertex -0.5 0.293893 0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.487273 0.750335
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.293893 0.404509
|
||||
vertex -0.5 0.25 0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.406173 0.797159
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.25 0.433013
|
||||
vertex -0.5 0.203368 0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.320622 0.835248
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.203368 0.456773
|
||||
vertex -0.5 0.154509 0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.231558 0.864187
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.154509 0.475528
|
||||
vertex -0.5 0.103956 0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.139958 0.883657
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.103956 0.489074
|
||||
vertex -0.5 0.0522642 0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.0468234 0.893446
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.0522642 0.497261
|
||||
vertex -0.5 -1.02552e-10 0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.0468234 0.893446
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -1.02552e-10 0.5
|
||||
vertex -0.5 -0.0522642 0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.139958 0.883657
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.0522642 0.497261
|
||||
vertex -0.5 -0.103956 0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.231558 0.864187
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.103956 0.489074
|
||||
vertex -0.5 -0.154509 0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.320622 0.835248
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.154509 0.475528
|
||||
vertex -0.5 -0.203368 0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.406173 0.797159
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.203368 0.456773
|
||||
vertex -0.5 -0.25 0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.487273 0.750335
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.25 0.433013
|
||||
vertex -0.5 -0.293893 0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.563036 0.695291
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.293893 0.404509
|
||||
vertex -0.5 -0.334565 0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.632629 0.632629
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.334565 0.371572
|
||||
vertex -0.5 -0.371572 0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.695291 0.563036
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.371572 0.334565
|
||||
vertex -0.5 -0.404509 0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.750335 0.487273
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.404509 0.293893
|
||||
vertex -0.5 -0.433013 0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.797159 0.406173
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.433013 0.25
|
||||
vertex -0.5 -0.456773 0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.835248 0.320622
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.456773 0.203368
|
||||
vertex -0.5 -0.475528 0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.864187 0.231558
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.475528 0.154509
|
||||
vertex -0.5 -0.489074 0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.883657 0.139958
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.489074 0.103956
|
||||
vertex -0.5 -0.497261 0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.893446 0.0468234
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.497261 0.0522642
|
||||
vertex -0.5 -0.5 -2.05103e-10
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.893446 -0.0468234
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.5 -2.05103e-10
|
||||
vertex -0.5 -0.497261 -0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.883657 -0.139958
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.497261 -0.0522642
|
||||
vertex -0.5 -0.489074 -0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.864187 -0.231558
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.489074 -0.103956
|
||||
vertex -0.5 -0.475528 -0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.835248 -0.320622
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.475528 -0.154509
|
||||
vertex -0.5 -0.456773 -0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.797159 -0.406173
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.456773 -0.203368
|
||||
vertex -0.5 -0.433013 -0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.750335 -0.487273
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.433013 -0.25
|
||||
vertex -0.5 -0.404509 -0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.695291 -0.563036
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.404509 -0.293893
|
||||
vertex -0.5 -0.371572 -0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.632629 -0.632629
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.371572 -0.334565
|
||||
vertex -0.5 -0.334565 -0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.563036 -0.695291
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.334565 -0.371572
|
||||
vertex -0.5 -0.293893 -0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.487273 -0.750335
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.293893 -0.404509
|
||||
vertex -0.5 -0.25 -0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.406173 -0.797159
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.25 -0.433013
|
||||
vertex -0.5 -0.203368 -0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.320622 -0.835248
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.203368 -0.456773
|
||||
vertex -0.5 -0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.231558 -0.864187
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.154509 -0.475528
|
||||
vertex -0.5 -0.103956 -0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.139958 -0.883657
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.103956 -0.489074
|
||||
vertex -0.5 -0.0522642 -0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 -0.0468234 -0.893446
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 -0.0522642 -0.497261
|
||||
vertex -0.5 3.07655e-10 -0.5
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.0468234 -0.893446
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 3.07655e-10 -0.5
|
||||
vertex -0.5 0.0522642 -0.497261
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.139958 -0.883657
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.0522642 -0.497261
|
||||
vertex -0.5 0.103956 -0.489074
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.231558 -0.864187
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.103956 -0.489074
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.320622 -0.835248
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.154509 -0.475528
|
||||
vertex -0.5 0.203368 -0.456773
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.406173 -0.797159
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.203368 -0.456773
|
||||
vertex -0.5 0.25 -0.433013
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.487273 -0.750335
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.25 -0.433013
|
||||
vertex -0.5 0.293893 -0.404509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.563036 -0.695291
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.293893 -0.404509
|
||||
vertex -0.5 0.334565 -0.371572
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.632629 -0.632629
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.334565 -0.371572
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.695291 -0.563036
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.371572 -0.334565
|
||||
vertex -0.5 0.404509 -0.293893
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.750335 -0.487273
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.404509 -0.293893
|
||||
vertex -0.5 0.433013 -0.25
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.797159 -0.406173
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.433013 -0.25
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.835248 -0.320622
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.456773 -0.203368
|
||||
vertex -0.5 0.475528 -0.154509
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.864187 -0.231558
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.475528 -0.154509
|
||||
vertex -0.5 0.489074 -0.103956
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.883657 -0.139958
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.489074 -0.103956
|
||||
vertex -0.5 0.497261 -0.0522642
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.446723 0.893446 -0.0468234
|
||||
outer loop
|
||||
vertex 0.5 0 0
|
||||
vertex -0.5 0.497261 -0.0522642
|
||||
vertex -0.5 0.5 0
|
||||
endloop
|
||||
endfacet
|
||||
endsolid
|
||||
File diff suppressed because it is too large
Load Diff
85
tutorials/mesh/foamyHexMesh/simpleShapes/system/collapseDict
Normal file
85
tutorials/mesh/foamyHexMesh/simpleShapes/system/collapseDict
Normal file
@ -0,0 +1,85 @@
|
||||
/*--------------------------------*- 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 collapseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
controlMeshQuality on;
|
||||
|
||||
collapseEdgesCoeffs
|
||||
{
|
||||
// Edges shorter than this absolute value will be merged
|
||||
minimumEdgeLength 1e-6;
|
||||
|
||||
// The maximum angle between two edges that share a point attached to
|
||||
// no other edges
|
||||
maximumMergeAngle 180;
|
||||
}
|
||||
|
||||
collapseFacesCoeffs
|
||||
{
|
||||
// The initial face length factor
|
||||
initialFaceLengthFactor 0.5;
|
||||
|
||||
// If the face can't be collapsed to an edge, and it has a span less than
|
||||
// the target face length multiplied by this coefficient, collapse it
|
||||
// to a point.
|
||||
maxCollapseFaceToPointSideLengthCoeff 0.3;
|
||||
|
||||
// Allow early collapse of edges to a point
|
||||
allowEarlyCollapseToPoint on;
|
||||
|
||||
// Fraction to premultiply maxCollapseFaceToPointSideLengthCoeff by if
|
||||
// allowEarlyCollapseToPoint is enabled
|
||||
allowEarlyCollapseCoeff 0.2;
|
||||
|
||||
// Defining how close to the midpoint (M) of the projected
|
||||
// vertices line a projected vertex (X) can be before making this
|
||||
// an invalid edge collapse
|
||||
//
|
||||
// X---X-g----------------M----X-----------g----X--X
|
||||
//
|
||||
// Only allow a collapse if all projected vertices are outwith
|
||||
// guardFraction (g) of the distance form the face centre to the
|
||||
// furthest vertex in the considered direction
|
||||
guardFraction 0.1;
|
||||
}
|
||||
|
||||
controlMeshQualityCoeffs
|
||||
{
|
||||
// Name of the dictionary that has the mesh quality coefficients used
|
||||
// by motionSmoother::checkMesh
|
||||
#include "meshQualityDict";
|
||||
|
||||
// The amount that minimumEdgeLength will be reduced by for each
|
||||
// edge if that edge's collapse generates a poor quality face
|
||||
edgeReductionFactor 0.5;
|
||||
|
||||
// The amount that initialFaceLengthFactor will be reduced by for each
|
||||
// face if its collapse generates a poor quality face
|
||||
faceReductionFactor 0.5;
|
||||
|
||||
// Maximum number of smoothing iterations for the reductionFactors
|
||||
maximumSmoothingIterations 2;
|
||||
|
||||
// Maximum number of outer iterations is mesh quality checking is enabled
|
||||
maximumIterations 10;
|
||||
|
||||
// Maximum number of iterations deletion of a point can cause a bad face
|
||||
// to be constructed before it is forced to not be deleted
|
||||
maxPointErrorCount 3;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
47
tutorials/mesh/foamyHexMesh/simpleShapes/system/controlDict
Normal file
47
tutorials/mesh/foamyHexMesh/simpleShapes/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;
|
||||
location "system";
|
||||
class dictionary;
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 80;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 80; // 10 to see the meshing steps
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 10;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
210
tutorials/mesh/foamyHexMesh/simpleShapes/system/foamyHexMeshDict
Normal file
210
tutorials/mesh/foamyHexMesh/simpleShapes/system/foamyHexMeshDict
Normal file
@ -0,0 +1,210 @@
|
||||
/*--------------------------------*- 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 foamyHexMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Include defaults parameters from master dictionary
|
||||
#include "$WM_PROJECT_DIR/etc/caseDicts/foamyHexMeshDict"
|
||||
|
||||
geometry
|
||||
{
|
||||
sphere_orient.stl
|
||||
{
|
||||
name sphere;
|
||||
type triSurfaceMesh;
|
||||
}
|
||||
|
||||
cone_orient.stl
|
||||
{
|
||||
name cone;
|
||||
type triSurfaceMesh;
|
||||
}
|
||||
|
||||
// Outside of domain
|
||||
domain
|
||||
{
|
||||
type searchableBox;
|
||||
min (-0.7 -0.9 -1);
|
||||
max (1.3 1.1 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
surfaceConformation
|
||||
{
|
||||
locationInMesh (0 -0.5 0);
|
||||
|
||||
featurePointControls
|
||||
{
|
||||
specialiseFeaturePoints off;
|
||||
edgeAiming off;
|
||||
guardFeaturePoints off;
|
||||
snapFeaturePoints off;
|
||||
circulateEdges off;
|
||||
}
|
||||
|
||||
// Geometry to mesh to
|
||||
geometryToConformTo
|
||||
{
|
||||
cone
|
||||
{
|
||||
featureMethod extractFeatures;
|
||||
includedAngle 140;
|
||||
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (groupConeAndSphere);
|
||||
}
|
||||
}
|
||||
|
||||
sphere
|
||||
{
|
||||
featureMethod none;
|
||||
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (groupConeAndSphere);
|
||||
}
|
||||
}
|
||||
|
||||
domain
|
||||
{
|
||||
featureMethod extractFeatures;
|
||||
includedAngle 100;
|
||||
mode outside;
|
||||
}
|
||||
}
|
||||
|
||||
additionalFeatures
|
||||
{
|
||||
coneSphereIntersection
|
||||
{
|
||||
featureMethod extendedFeatureEdgeMesh;
|
||||
extendedFeatureEdgeMesh "cone_orient_sphere_orient_intersection.extendedFeatureEdgeMesh";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
initialPoints
|
||||
{
|
||||
initialPointsMethod autoDensity;
|
||||
|
||||
autoDensityCoeffs
|
||||
{
|
||||
minCellSizeLimit 0.1;
|
||||
minLevels 4;
|
||||
maxSizeRatio 5.0;
|
||||
sampleResolution 3;
|
||||
surfaceSampleResolution 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
motionControl
|
||||
{
|
||||
defaultCellSize 0.1;
|
||||
|
||||
minimumCellSizeCoeff 0;
|
||||
|
||||
// For background cell size and alignment grid
|
||||
maxSmoothingIterations 100;
|
||||
|
||||
maxRefinementIterations 0;
|
||||
|
||||
shapeControlFunctions
|
||||
{
|
||||
sphere
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 2;
|
||||
mode inside;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 0.25;
|
||||
}
|
||||
|
||||
cellSizeFunction linearDistance;
|
||||
linearDistanceCoeffs
|
||||
{
|
||||
distanceCellSizeCoeff 1;
|
||||
distanceCoeff 2;
|
||||
}
|
||||
}
|
||||
|
||||
cone
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode bothSides;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
|
||||
cellSizeFunction uniform;
|
||||
uniformCoeffs
|
||||
{}
|
||||
}
|
||||
|
||||
domain
|
||||
{
|
||||
type searchableSurfaceControl;
|
||||
priority 1;
|
||||
mode bothSides;
|
||||
|
||||
surfaceCellSizeFunction uniformValue;
|
||||
uniformValueCoeffs
|
||||
{
|
||||
surfaceCellSizeCoeff 1;
|
||||
}
|
||||
|
||||
cellSizeFunction uniform;
|
||||
uniformCoeffs
|
||||
{}
|
||||
}
|
||||
}
|
||||
|
||||
// Output lots and lots of .obj files
|
||||
objOutput no;
|
||||
|
||||
// Timing and memory usage.
|
||||
timeChecks no;
|
||||
}
|
||||
|
||||
|
||||
// After simulation, when converting to polyMesh, filter out small faces/edges.
|
||||
// Do not change. See cvControls.H
|
||||
polyMeshFiltering
|
||||
{
|
||||
filterEdges on;
|
||||
filterFaces on;
|
||||
writeTetDualMesh false;
|
||||
}
|
||||
|
||||
|
||||
meshQualityControls
|
||||
{
|
||||
#include "meshQualityDict"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
55
tutorials/mesh/foamyHexMesh/simpleShapes/system/fvSchemes
Normal file
55
tutorials/mesh/foamyHexMesh/simpleShapes/system/fvSchemes
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 fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
d2dt2Schemes
|
||||
{
|
||||
default steadyState;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss cubic;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default Gauss cubic;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear uncorrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default cubic;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default uncorrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
D ;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
41
tutorials/mesh/foamyHexMesh/simpleShapes/system/fvSolution
Normal file
41
tutorials/mesh/foamyHexMesh/simpleShapes/system/fvSolution
Normal file
@ -0,0 +1,41 @@
|
||||
/*--------------------------------*- 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
|
||||
{
|
||||
"(D|Dcorr)"
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-06;
|
||||
relTol 0.99;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 6;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
}
|
||||
|
||||
stressAnalysis
|
||||
{
|
||||
nCorrectors 1;
|
||||
D 1e-10;
|
||||
accelerationFactor 2;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,65 @@
|
||||
/*--------------------------------*- 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 meshQualityDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
||||
maxNonOrtho 65;
|
||||
|
||||
//- Max skewness allowed. Set to <0 to disable.
|
||||
maxBoundarySkewness 50;
|
||||
maxInternalSkewness 10;
|
||||
|
||||
//- Max concaveness allowed. Is angle (in degrees) below which concavity
|
||||
// is allowed. 0 is straight face, <0 would be convex face.
|
||||
// Set to 180 to disable.
|
||||
maxConcave 80;
|
||||
|
||||
//- Minimum quality of the tet formed by the face-centre
|
||||
// and variable base point minimum decomposition triangles and
|
||||
// the cell centre. This has to be a positive number for tracking
|
||||
// to work. Set to very negative number (e.g. -1E30) to
|
||||
// disable.
|
||||
// <0 = inside out tet,
|
||||
// 0 = flat tet
|
||||
// 1 = regular tet
|
||||
minTetQuality 1e-30;
|
||||
|
||||
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
|
||||
// Set to a sensible fraction of the smallest cell volume expected.
|
||||
// Set to very negative number (e.g. -1E30) to disable.
|
||||
minVol 0;
|
||||
|
||||
//- Minimum face area. Set to <0 to disable.
|
||||
minArea -1;
|
||||
|
||||
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
|
||||
//- and face centre triangles normal
|
||||
minTwist 0.001;
|
||||
|
||||
//- minimum normalised cell determinant
|
||||
//- 1 = hex, <= 0 = folded or flattened illegal cell
|
||||
minDeterminant 0.001;
|
||||
|
||||
//- minFaceWeight (0 -> 0.5)
|
||||
minFaceWeight 0.02;
|
||||
|
||||
//- minVolRatio (0 -> 1)
|
||||
minVolRatio 0.01;
|
||||
|
||||
//must be >0 for Fluent compatibility
|
||||
minTriangleTwist -1;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
148
tutorials/mesh/foamyHexMesh/simpleShapes/system/topoSetDict
Normal file
148
tutorials/mesh/foamyHexMesh/simpleShapes/system/topoSetDict
Normal file
@ -0,0 +1,148 @@
|
||||
/*--------------------------------*- 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 topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name z;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (-100 -100 0)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name zf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set z;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name z;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name zf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set z;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~ //
|
||||
|
||||
{
|
||||
name y;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (-100 0.1 -100)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name yf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set y;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name y;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name yf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set y;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~ //
|
||||
|
||||
{
|
||||
name x;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (0.3 -100 -100)(100 100 100);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name xf;
|
||||
type faceSet;
|
||||
action new;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set x;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name x;
|
||||
type cellSet;
|
||||
action invert;
|
||||
}
|
||||
|
||||
{
|
||||
name xf;
|
||||
type faceSet;
|
||||
action subset;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set x;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
1
tutorials/mesh/foamyHexMesh/straightDuctImplicit
Symbolic link
1
tutorials/mesh/foamyHexMesh/straightDuctImplicit
Symbolic link
@ -0,0 +1 @@
|
||||
../../incompressible/porousSimpleFoam/straightDuctImplicit
|
||||
50
tutorials/mesh/foamyQuadMesh/OpenCFD/0.org/T
Normal file
50
tutorials/mesh/foamyQuadMesh/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
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
letters
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user