37 #ifndef blockMeshCartesianConfiguration_H
38 #define blockMeshCartesianConfiguration_H
124 const bool& boundsOpt,
126 const label minDimCells,
127 const label refineFactor,
129 const bool clearBoundary
An STL-conforming hash table.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
From a set of input surface geometry files and a set of configuration parameters, writes out a blockM...
~blockMeshCartesianConfiguration()
Destructor.
void writeEdges()
Write edges list.
const bool clearBoundary_
Clear the default patch entries for the background mesh.
static const List< word > patches
Default patch names for the background mesh.
void writeBackgroundMesh()
Write backgroundMesh sub-dictionary.
const label minDimCells_
Number of cells in background mesh shortest direction.
const label refineFactor_
Refinement factor used to scale nCells.
Vector< label > nCells_
Number of cells in background mesh block.
void writeBoundary()
Write the boundary sub-dictionary.
void calcBlockMeshDict(const bool &boundsOpt)
Calculate the parameters for the blockMeshDict file.
void writeMergePatchPairs()
Write mergePatchPairs.
void writeDefaultPatch()
Write the defaultPatch entry.
void writeBlocks()
Write blocks sub-dictionary.
void write()
Write the blockMeshDict.
void writeVertices()
Write vertices list.
blockMeshCartesianConfiguration(const fileName &name, const fileName &dir, const Time &time, const meshingSurfaceList &surfaces, const bool &boundsOpt, const Vector< label > &nCells, const label minDimCells, const label refineFactor, const HashTable< Pair< word >> &patchOpts, const bool clearBoundary)
Construct from components.
void writePatch(const word &name, const word &type, const string &face)
Write a patch in the boundary sub-dictionary.
void operator=(const blockMeshCartesianConfiguration &)=delete
Disallow default bitwise assignment.
Functions to configure and write a blockMeshDict configuration file.
A face is a list of labels corresponding to mesh vertices.
A class for handling file names.
List of meshingSurfaces which stores the overall bounding box of all the meshingSurfaces.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.