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
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: 2.3.x |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object ;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
graph
|
|
{
|
|
type sets;
|
|
functionObjectLibs ("libsampling.so");
|
|
outputControl outputTime;
|
|
|
|
interpolationScheme cellPointFace;
|
|
|
|
setFormat raw;
|
|
|
|
sets
|
|
(
|
|
centreline
|
|
{
|
|
type uniform;
|
|
axis x;
|
|
start ( 0 1e-6 0);
|
|
end (25 1e-6 0);
|
|
nPoints 250;
|
|
}
|
|
);
|
|
|
|
fields ( U );
|
|
}
|
|
|
|
// ************************************************************************* //
|