Added tutuorials or cfMesh

This commit is contained in:
Franjo Juretic 2015-07-14 14:21:40 +02:00 committed by Dominik Christ
parent d21a37312b
commit 6c931c6af4
58 changed files with 623286 additions and 6 deletions

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -16,7 +16,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application ; application ;
deltaT 1; deltaT 1;
endTime 50; endTime 50;
graphFormat raw; graphFormat raw;

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -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;
// ************************************************************************* //

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -86,6 +86,8 @@ boundaryLayers
allowDiscontinuity 0; allowDiscontinuity 0;
} }
} }
optimiseLayer 1;
} }
renameBoundary renameBoundary

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -16,7 +16,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application ; application ;
deltaT 0.001; deltaT 0.001;
endTime 2; endTime 2;
graphFormat raw; graphFormat raw;

View file

@ -34,6 +34,17 @@ boundaryLayers
thicknessRatio 1.2; thicknessRatio 1.2;
} }
} }
optimiseLayer 1;
optimisationParameters
{
nSmoothNormals 5;
relThicknessTol 0.15;
featureSizeFactor 0.3;
reCalculateNormals 1;
maxNumIterations 5;
}
} }
localRefinement localRefinement

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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*

View file

@ -5,3 +5,4 @@
runApplication preparePar runApplication preparePar
runParallel cartesianMesh 4 runParallel cartesianMesh 4
runParallel checkMesh 4 runParallel checkMesh 4
runApplication reconstructParMesh -zeroTime

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -17,7 +17,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application ; application ;
deltaT 0.05; deltaT 0.05;

View file

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

View file

@ -2,7 +2,7 @@ cfMesh Example Case
Date: 02 October 2014 Date: 02 October 2014
Application: cartesianMesh 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. cfMesh for specifying patch names in the meshDict file.
STL File: singleOrifice.stl STL File: singleOrifice.stl

View file

@ -25,6 +25,18 @@ boundaryCellSize 1.0;
minCellSize 0.50; minCellSize 0.50;
anisotropicSources
{
Plane
{
type plane;
origin (0 0 -20);
normal (0 0 1);
scalingDistance 45;
scalingFactor 2;
}
}
localRefinement localRefinement
{ {
"orificeRegion.*" "orificeRegion.*"

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,6 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication pMesh
runApplication checkMesh

View 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.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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;
// ************************************************************************* //

View file

@ -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;
// ************************************************************************* //

View 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;
}
// ************************************************************************* //

View 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;
}
// ************************************************************************* //

View 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
{
}
// ************************************************************************* //

View 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

View file

@ -0,0 +1,6 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication pMesh
runApplication checkMesh -constant

File diff suppressed because it is too large Load diff

View 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

View file

@ -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;
// ************************************************************************* //

View 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;
}
// ************************************************************************* //

View 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;
}
// ************************************************************************* //

View 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;
}
// ************************************************************************* //

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | cfMesh: A library for mesh generation | | \\ / F ield | cfMesh: A library for mesh generation |
| \\ / O peration | | | \\ / O peration | |
| \\ / A nd | Author: Franjo Juretic | | \\ / A nd | Author: Franjo Juretic |
| \\/ M anipulation | E-mail: franjo.juretic@c-fields.com | | \\/ M anipulation | E-mail: franjo.juretic@c-fields.com |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View 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

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore