The templates include a stategy to simplify meshing with snappyHexMesh, particularly to help generate an initial mesh quickly that can subsequently be improved. The templates are setup to enable rapid initial simulations, typically with simpleFoam. The initial templates cover simple inflow-outflow and closed domains, including rotating geometry, and an example axisymmetric flow. For more details, consult the README file accompanying each template case. The cases are located in $FOAM_ETC/templates
96 lines
2.2 KiB
C++
96 lines
2.2 KiB
C++
/*--------------------------------*- 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 fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
p_rgh
|
|
{
|
|
solver GAMG;
|
|
smoother GaussSeidel;
|
|
cacheAgglomeration on; // Need to make this default?
|
|
agglomerator faceAreaPair; // Need to make this default?
|
|
nCellsInCoarsestLevel 10; // Need to make this default?
|
|
mergeLevels 1; // Need to make this default
|
|
tolerance 1e-6;
|
|
relTol 0.1;
|
|
}
|
|
|
|
"(U|T|k|omega|epsilon)"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-6;
|
|
relTol 0.1;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
$p;
|
|
relTol 0;
|
|
}
|
|
|
|
"(U|k|omega|epsilon)Final"
|
|
{
|
|
$U;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
"(PIMPLE|PISO)"
|
|
{
|
|
nOuterCorrectors 1;
|
|
nCorrectors 2;
|
|
nNonOrthogonalCorrectors 1;
|
|
pRefCell 0;
|
|
pRefValue 0;
|
|
}
|
|
|
|
SIMPLE
|
|
{
|
|
residualControl
|
|
{
|
|
p 1e-4;
|
|
U 1e-4;
|
|
T 1e-4;
|
|
"(k|omega|epsilon)" 1e-4;
|
|
}
|
|
nNonOrthogonalCorrectors 0;
|
|
pRefCell 0;
|
|
pRefValue 0;
|
|
|
|
}
|
|
|
|
potentialFlow
|
|
{
|
|
nNonOrthogonalCorrectors 10;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
fields
|
|
{
|
|
p_rgh 0.7;
|
|
}
|
|
equations
|
|
{
|
|
U 0.3;
|
|
T 0.5;
|
|
"(k|omega|epsilon)" 0.7;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|