The FOAM file format has not changed from version 2.0 in many years and so there is no longer a need for the 'version' entry in the FoamFile header to be required and to reduce unnecessary clutter it is now optional, defaulting to the current file format 2.0.
75 lines
2.2 KiB
C++
75 lines
2.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
object refineMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Cells to refine; name of cell set
|
|
set c0;
|
|
|
|
// Type of coordinate system:
|
|
// - global : coordinate system same for every cell. Usually aligned with
|
|
// x,y,z axis. Specify in globalCoeffs section below.
|
|
// - patchLocal : coordinate system different for every cell. Specify in
|
|
// patchLocalCoeffs section below.
|
|
// - fieldBased : uses the list of field names from the directions list for
|
|
// selecting the directions to cut. Meant to be used with geometricCut, but
|
|
// can also be used with useHexTopology.
|
|
coordinateSystem global;
|
|
//coordinateSystem patchLocal;
|
|
//coordinateSystem fieldBased;
|
|
|
|
// .. and its coefficients. x,y in this case. (normal (e3) direction is
|
|
// calculated as e1^e2)
|
|
globalCoeffs
|
|
{
|
|
e1 (1 0 0);
|
|
e2 (0 1 0);
|
|
}
|
|
|
|
patchLocalCoeffs
|
|
{
|
|
patch outside; // Normal direction is facenormal of zero'th face of patch
|
|
e1 (1 0 0);
|
|
}
|
|
|
|
// List of directions to refine, if global or patchLocal
|
|
directions
|
|
(
|
|
e1
|
|
e2
|
|
e3
|
|
);
|
|
|
|
// List of directions to refine, if "fieldBased". Keep in mind that these
|
|
// fields must be of type "vectorField", not "volVectorField".
|
|
//directions
|
|
//(
|
|
// radialDirectionFieldName
|
|
// angularDirectionFieldName
|
|
// heightDirectionFieldName
|
|
//);
|
|
|
|
// Whether to use hex topology. This will
|
|
// - if patchLocal: all cells on selected patch should be hex
|
|
// - split all hexes in 2x2x2 through the middle of edges.
|
|
useHexTopology true;
|
|
|
|
// Cut purely geometric (will cut hexes through vertices) or take topology
|
|
// into account. Incompatible with useHexTopology
|
|
geometricCut false;
|
|
|
|
// Write meshes from intermediate steps
|
|
writeMesh false;
|
|
|
|
// ************************************************************************* //
|