Added tutuorials or cfMesh
This commit is contained in:
parent
d21a37312b
commit
6c931c6af4
58 changed files with 623286 additions and 6 deletions
4
tutorials/mesh/cfMesh/cartesian2DMesh/hatOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesian2DMesh/hatOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/cartesian2DMesh/hatOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/cartesian2DMesh/hatOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/cartesian2DMesh/hatOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesian2DMesh/hatOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -16,7 +16,7 @@ FoamFile
|
|||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
application ;
|
||||
application ;
|
||||
deltaT 1;
|
||||
endTime 50;
|
||||
graphFormat raw;
|
||||
|
|
4
tutorials/mesh/cfMesh/cartesianMesh/asmoOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/asmoOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/cartesianMesh/asmoOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/cartesianMesh/asmoOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/cartesianMesh/asmoOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/asmoOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
4
tutorials/mesh/cfMesh/cartesianMesh/bunnyOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/bunnyOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/cartesianMesh/bunnyOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/cartesianMesh/bunnyOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/cartesianMesh/bunnyOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/bunnyOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -0,0 +1,22 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | foam-extend: Open Source CFD |
|
||||
| \\ / O peration | Version: 3.0 |
|
||||
| \\ / A nd | Web: http://www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
note "mesh decomposition control dictionary";
|
||||
location "system";
|
||||
object decomposeParDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
// ************************************************************************* //
|
4
tutorials/mesh/cfMesh/cartesianMesh/intakePortOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/intakePortOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/cartesianMesh/intakePortOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/cartesianMesh/intakePortOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/cartesianMesh/intakePortOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/intakePortOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -86,6 +86,8 @@ boundaryLayers
|
|||
allowDiscontinuity 0;
|
||||
}
|
||||
}
|
||||
|
||||
optimiseLayer 1;
|
||||
}
|
||||
|
||||
renameBoundary
|
||||
|
|
4
tutorials/mesh/cfMesh/cartesianMesh/sBendOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/sBendOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/cartesianMesh/sBendOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/cartesianMesh/sBendOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/cartesianMesh/sBendOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/sBendOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -16,7 +16,7 @@ FoamFile
|
|||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
application ;
|
||||
application ;
|
||||
deltaT 0.001;
|
||||
endTime 2;
|
||||
graphFormat raw;
|
||||
|
|
|
@ -34,6 +34,17 @@ boundaryLayers
|
|||
thicknessRatio 1.2;
|
||||
}
|
||||
}
|
||||
|
||||
optimiseLayer 1;
|
||||
|
||||
optimisationParameters
|
||||
{
|
||||
nSmoothNormals 5;
|
||||
relThicknessTol 0.15;
|
||||
featureSizeFactor 0.3;
|
||||
reCalculateNormals 1;
|
||||
maxNumIterations 5;
|
||||
}
|
||||
}
|
||||
|
||||
localRefinement
|
||||
|
|
4
tutorials/mesh/cfMesh/cartesianMesh/sawOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/sawOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
14
tutorials/mesh/cfMesh/cartesianMesh/sawOctree/Allclean
Executable file
14
tutorials/mesh/cfMesh/cartesianMesh/sawOctree/Allclean
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
||||
rm -r 0/polyMesh
|
||||
rm -r processor*
|
|
@ -5,3 +5,4 @@
|
|||
runApplication preparePar
|
||||
runParallel cartesianMesh 4
|
||||
runParallel checkMesh 4
|
||||
runApplication reconstructParMesh -zeroTime
|
4
tutorials/mesh/cfMesh/cartesianMesh/sawOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/cartesianMesh/sawOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -17,7 +17,7 @@ FoamFile
|
|||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application ;
|
||||
application ;
|
||||
|
||||
deltaT 0.05;
|
||||
|
||||
|
|
|
@ -34,4 +34,63 @@ surfaceMeshRefinement
|
|||
}
|
||||
}
|
||||
|
||||
anisotropicSources
|
||||
{
|
||||
Box
|
||||
{
|
||||
type box;
|
||||
centre (2800 0 250);
|
||||
lengthX 6000;
|
||||
lengthY 1000;
|
||||
lengthZ 200;
|
||||
scaleX 1;
|
||||
scaleY 1;
|
||||
scaleZ 0.3;
|
||||
}
|
||||
|
||||
/*
|
||||
planeUpper
|
||||
{
|
||||
type plane;
|
||||
normal (0 0 1);
|
||||
origin (0 0 250);
|
||||
scalingDistance 125;
|
||||
scalingFactor 0.5;
|
||||
}
|
||||
|
||||
planeLower
|
||||
{
|
||||
type plane;
|
||||
normal (0 0 -1);
|
||||
origin (0 0 250);
|
||||
scalingDistance 125;
|
||||
scalingFactor 0.5;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
boundaryLayers
|
||||
{
|
||||
patchBoundaryLayers
|
||||
{
|
||||
HULL_AND_BOX_1
|
||||
{
|
||||
nLayers 5;
|
||||
thicknessRatio 1.1;
|
||||
}
|
||||
}
|
||||
|
||||
optimiseLayer 1;
|
||||
|
||||
optimisationParameters
|
||||
{
|
||||
nSmoothNormals 3;
|
||||
maxNumIterations 5;
|
||||
featureSizeFactor 0.4;
|
||||
reCalculateNormals 1;
|
||||
relThicknessTol 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
|
@ -2,7 +2,7 @@ cfMesh Example Case
|
|||
Date: 02 October 2014
|
||||
Application: cartesianMesh
|
||||
|
||||
Goal: Demonstration of the regular expressions feature available within
|
||||
Goal: Demonstration of the regular expressions feature available within
|
||||
cfMesh for specifying patch names in the meshDict file.
|
||||
|
||||
STL File: singleOrifice.stl
|
||||
|
|
|
@ -25,6 +25,18 @@ boundaryCellSize 1.0;
|
|||
|
||||
minCellSize 0.50;
|
||||
|
||||
anisotropicSources
|
||||
{
|
||||
Plane
|
||||
{
|
||||
type plane;
|
||||
origin (0 0 -20);
|
||||
normal (0 0 1);
|
||||
scalingDistance 45;
|
||||
scalingFactor 2;
|
||||
}
|
||||
}
|
||||
|
||||
localRefinement
|
||||
{
|
||||
"orificeRegion.*"
|
||||
|
|
4
tutorials/mesh/cfMesh/pMesh/bunnyPoly/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/pMesh/bunnyPoly/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/pMesh/bunnyPoly/Allclean
Executable file
12
tutorials/mesh/cfMesh/pMesh/bunnyPoly/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
6
tutorials/mesh/cfMesh/pMesh/bunnyPoly/Allrun
Executable file
6
tutorials/mesh/cfMesh/pMesh/bunnyPoly/Allrun
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication pMesh
|
||||
runApplication checkMesh
|
1
tutorials/mesh/cfMesh/pMesh/bunnyPoly/README
Normal file
1
tutorials/mesh/cfMesh/pMesh/bunnyPoly/README
Normal file
|
@ -0,0 +1 @@
|
|||
This tutorial demonstrates the polyhedral meshing workfow without boundary layers. It also demonstrates usage of box, line, sphere and cone refinement sources.
|
539072
tutorials/mesh/cfMesh/pMesh/bunnyPoly/bunnyWrapped.stl
Normal file
539072
tutorials/mesh/cfMesh/pMesh/bunnyPoly/bunnyWrapped.stl
Normal file
File diff suppressed because it is too large
Load diff
4
tutorials/mesh/cfMesh/pMesh/bunnyPoly/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/pMesh/bunnyPoly/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
51
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/controlDict
Normal file
51
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/controlDict
Normal file
|
@ -0,0 +1,51 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object meshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application ;
|
||||
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 10;
|
||||
|
||||
deltaT 0.05;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 20;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -0,0 +1,22 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | foam-extend: Open Source CFD |
|
||||
| \\ / O peration | Version: 3.0 |
|
||||
| \\ / A nd | Web: http://www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
note "mesh decomposition control dictionary";
|
||||
location "system";
|
||||
object decomposeParDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
// ************************************************************************* //
|
59
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/fvSchemes
Normal file
59
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/fvSchemes
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(p) Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(nu,U) Gauss linear corrected;
|
||||
laplacian((1|A(U)),p) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
interpolate(HbyA) linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
45
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/fvSolution
Normal file
45
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/fvSolution
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
p
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
};
|
||||
|
||||
U
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
relTol 0;
|
||||
};
|
||||
}
|
||||
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
78
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/meshDict
Normal file
78
tutorials/mesh/cfMesh/pMesh/bunnyPoly/system/meshDict
Normal file
|
@ -0,0 +1,78 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| _ _ _ _ | |
|
||||
| // \\ | Creative Fields cfMeshPRO |
|
||||
| | cfMeshPRO | | |
|
||||
| \\ _ _ _ _ // | Version: 0.0.99 |
|
||||
| | Web: www.c-fields.com e-mail: support@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object meshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
maxCellSize 40;
|
||||
surfaceFile "bunnyWrapped.stl";
|
||||
|
||||
objectRefinements
|
||||
{
|
||||
|
||||
ear1
|
||||
{
|
||||
cellSize 20.1;
|
||||
p0 ( -100 1873 -320 );
|
||||
p1 ( -560 1400 0 );
|
||||
radius0 200;
|
||||
radius1 200;
|
||||
type cone;
|
||||
}
|
||||
|
||||
ear2
|
||||
{
|
||||
cellSize 20.1;
|
||||
p0 ( -650 1873 -620 );
|
||||
p1 ( -670 1300 0 );
|
||||
radius0 200;
|
||||
radius1 200;
|
||||
type cone;
|
||||
}
|
||||
|
||||
/*
|
||||
insideTheBody
|
||||
{
|
||||
cellSize 20.1;
|
||||
centre ( 0 700 0 );
|
||||
radius 50;
|
||||
refinementThickness 50;
|
||||
type sphere;
|
||||
}
|
||||
|
||||
muzzlePiercing
|
||||
{
|
||||
cellSize 20.1;
|
||||
p0 ( -750 1000 450 );
|
||||
p1 ( -750 1500 450 );
|
||||
type line;
|
||||
}
|
||||
|
||||
tail
|
||||
{
|
||||
cellSize 20.1;
|
||||
centre ( 500 500 150 );
|
||||
lengthX 100;
|
||||
lengthY 150;
|
||||
lengthZ 200;
|
||||
type box;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
workflowControls
|
||||
{
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
0
tutorials/mesh/cfMesh/pMesh/multipleOrifices/0/.gitignore
vendored
Normal file
0
tutorials/mesh/cfMesh/pMesh/multipleOrifices/0/.gitignore
vendored
Normal file
12
tutorials/mesh/cfMesh/pMesh/multipleOrifices/Allclean
Executable file
12
tutorials/mesh/cfMesh/pMesh/multipleOrifices/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
6
tutorials/mesh/cfMesh/pMesh/multipleOrifices/Allrun
Executable file
6
tutorials/mesh/cfMesh/pMesh/multipleOrifices/Allrun
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication pMesh
|
||||
runApplication checkMesh -constant
|
0
tutorials/mesh/cfMesh/pMesh/multipleOrifices/constant/.gitignore
vendored
Normal file
0
tutorials/mesh/cfMesh/pMesh/multipleOrifices/constant/.gitignore
vendored
Normal file
83296
tutorials/mesh/cfMesh/pMesh/multipleOrifices/multipleOrifices.stl
Normal file
83296
tutorials/mesh/cfMesh/pMesh/multipleOrifices/multipleOrifices.stl
Normal file
File diff suppressed because it is too large
Load diff
56
tutorials/mesh/cfMesh/pMesh/multipleOrifices/readme.txt
Normal file
56
tutorials/mesh/cfMesh/pMesh/multipleOrifices/readme.txt
Normal file
|
@ -0,0 +1,56 @@
|
|||
cfMesh Example Case
|
||||
Date: 08 June 2015
|
||||
Application: pMesh
|
||||
|
||||
Goal: Demonstration of the regular expressions feature available within
|
||||
cfMesh for specifying patch names in the meshDict file.
|
||||
|
||||
STL File: multipleOrifices.stl
|
||||
STL Type: Multi-solid
|
||||
|
||||
Patches within the STL File (Note: Each patch is one STL Solid):
|
||||
inlet_S42
|
||||
outlet_S43
|
||||
orifice01_S44
|
||||
orifice01_S45
|
||||
orifice01_S46
|
||||
orifice02_S47
|
||||
orifice02_S48
|
||||
orifice02_S49
|
||||
orifice03_S50
|
||||
orifice03_S51
|
||||
orifice03_S52
|
||||
orifice04_S53
|
||||
orifice04_S54
|
||||
orifice04_S55
|
||||
orifice05_S56
|
||||
orifice05_S57
|
||||
orifice05_S58
|
||||
orifice06_S59
|
||||
orifice06_S60
|
||||
orifice06_S61
|
||||
tubes_S62
|
||||
tubes_S63
|
||||
tubes_S64
|
||||
tubes_S65
|
||||
tubes_S66
|
||||
tubes_S67
|
||||
tubes_S68
|
||||
tubes_S69
|
||||
tubes_S70
|
||||
tubes_S71
|
||||
tubes_S72
|
||||
tubes_S73
|
||||
fixedWalls_S74
|
||||
fixedWalls_S75
|
||||
fixedWalls_S76
|
||||
fixedWalls_S77
|
||||
fixedWalls_S78
|
||||
fixedWalls_S79
|
||||
fixedWalls_S80
|
||||
fixedWalls_S81
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object meshDict;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
applicationClass ;
|
||||
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 500;
|
||||
|
||||
deltaT 1;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
writeInterval 100;
|
||||
|
||||
cycleWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
nCorrectors 2;
|
||||
|
||||
nNonOrthogonalCorrectors 0;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -0,0 +1,59 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(p) Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(nu,U) Gauss linear corrected;
|
||||
laplacian((1|A(U)),p) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
interpolate(HbyA) linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
|
@ -0,0 +1,45 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
p
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
};
|
||||
|
||||
U
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
relTol 0;
|
||||
};
|
||||
}
|
||||
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
130
tutorials/mesh/cfMesh/pMesh/multipleOrifices/system/meshDict
Normal file
130
tutorials/mesh/cfMesh/pMesh/multipleOrifices/system/meshDict
Normal file
|
@ -0,0 +1,130 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object meshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
surfaceFile "multipleOrifices.stl";
|
||||
|
||||
maxCellSize 5.0;
|
||||
|
||||
boundaryCellSize 2.0;
|
||||
|
||||
localRefinement
|
||||
{
|
||||
"orifice01.*"
|
||||
{
|
||||
cellSize 0.1;
|
||||
}
|
||||
|
||||
"orifice02.*"
|
||||
{
|
||||
cellSize 0.2;
|
||||
}
|
||||
|
||||
"orifice0[3-6].*"
|
||||
{
|
||||
cellSize 0.3;
|
||||
}
|
||||
|
||||
"tubes.*"
|
||||
{
|
||||
cellSize 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
boundaryLayers
|
||||
{
|
||||
nLayers 1;
|
||||
|
||||
thicknessRatio 1.2;
|
||||
|
||||
patchBoundaryLayers
|
||||
{
|
||||
"orifice.*"
|
||||
{
|
||||
nLayers 4;
|
||||
|
||||
thicknessRatio 1.2;
|
||||
|
||||
maxFirstLayerThickness 0.2;
|
||||
|
||||
allowDiscontinuity 0;
|
||||
}
|
||||
|
||||
"fixedWalls.*"
|
||||
{
|
||||
nLayers 4;
|
||||
|
||||
thicknessRatio 1.2;
|
||||
|
||||
maxFirstLayerThickness 1.0;
|
||||
|
||||
allowDiscontinuity 0;
|
||||
}
|
||||
|
||||
"tubes.*"
|
||||
{
|
||||
nLayers 4;
|
||||
|
||||
thicknessRatio 1.2;
|
||||
|
||||
maxFirstLayerThickness 1.0;
|
||||
|
||||
allowDiscontinuity 0;
|
||||
}
|
||||
}
|
||||
|
||||
optimiseLayer 1;
|
||||
}
|
||||
|
||||
renameBoundary
|
||||
{
|
||||
defaultName fixedWalls;
|
||||
defaultType wall;
|
||||
|
||||
newPatchNames
|
||||
{
|
||||
"inlet.*"
|
||||
{
|
||||
newName inlet;
|
||||
newType patch;
|
||||
}
|
||||
|
||||
"outlet.*"
|
||||
{
|
||||
newName outlet;
|
||||
newType patch;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
workflowControls
|
||||
{
|
||||
//stopAfter templateGeneration;
|
||||
//stopAfter surfaceTopology;
|
||||
//stopAfter surfaceProjection;
|
||||
//stopAfter patchAssignment;
|
||||
//stopAfter edgeExtraction;
|
||||
//stopAfter boundaryLayerGeneration;
|
||||
//stopAfter meshOptimisation;
|
||||
//stopAfter boundaryLayerRefinement;
|
||||
|
||||
//restartFromLatestStep 1;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
4
tutorials/mesh/cfMesh/tetMesh/cutCubeOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/tetMesh/cutCubeOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/tetMesh/cutCubeOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/tetMesh/cutCubeOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/tetMesh/cutCubeOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/tetMesh/cutCubeOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / F ield | cfMesh: A library for mesh generation |
|
||||
| \\ / O peration | |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\ / A nd | Author: Franjo Juretic |
|
||||
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
|
4
tutorials/mesh/cfMesh/tetMesh/socketOctree/0/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/tetMesh/socketOctree/0/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
12
tutorials/mesh/cfMesh/tetMesh/socketOctree/Allclean
Executable file
12
tutorials/mesh/cfMesh/tetMesh/socketOctree/Allclean
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Klas Jareteg, 2012-10-13
|
||||
# Description:
|
||||
# Script to run comparative case between coupled and segregated solvers.
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -r constant/polyMesh
|
4
tutorials/mesh/cfMesh/tetMesh/socketOctree/constant/.gitignore
vendored
Normal file
4
tutorials/mesh/cfMesh/tetMesh/socketOctree/constant/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
Reference in a new issue