blockMeshCartesianConfiguration Class Reference

From a set of input surface geometry files and a set of configuration parameters, writes out a blockMeshDict configuration file. The mesh consists of a single block, aligned with Cartesian axes. More...

Inheritance diagram for blockMeshCartesianConfiguration:
Collaboration diagram for blockMeshCartesianConfiguration:

Public Member Functions

 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. More...
 
 blockMeshCartesianConfiguration (const blockMeshCartesianConfiguration &)=delete
 Disallow default bitwise copy construction. More...
 
 ~blockMeshCartesianConfiguration ()
 Destructor. More...
 
void write ()
 Write the blockMeshDict. More...
 
void operator= (const blockMeshCartesianConfiguration &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from blockMeshConfigurationBase
 blockMeshConfigurationBase (const fileName &name, const fileName &dir, const Time &time, const meshingSurfaceList &surfaces, const HashTable< Pair< word >> &patchOpts)
 Construct from components. More...
 
 blockMeshConfigurationBase (const blockMeshConfigurationBase &)=delete
 Disallow default bitwise copy construction. More...
 
 ~blockMeshConfigurationBase ()
 Destructor. More...
 
void operator= (const blockMeshConfigurationBase &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from caseFileConfiguration
 caseFileConfiguration (const fileName &name, const fileName &dir, const Time &time)
 Construct from components. More...
 
 caseFileConfiguration (const caseFileConfiguration &)=delete
 Disallow default bitwise copy construction. More...
 
 ~caseFileConfiguration ()
 Destructor. More...
 
void operator= (const caseFileConfiguration &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Attributes

static const List< wordpatches
 Default patch names for the background mesh. More...
 

Protected Member Functions

void calcBlockMeshDict (const bool &boundsOpt)
 Calculate the parameters for the blockMeshDict file. More...
 
void writeBackgroundMesh ()
 Write backgroundMesh sub-dictionary. More...
 
void writeDefaultPatch ()
 Write the defaultPatch entry. More...
 
void writePatch (const word &name, const word &type, const string &face)
 Write a patch in the boundary sub-dictionary. More...
 
void writeBoundary ()
 Write the boundary sub-dictionary. More...
 
void writeVertices ()
 Write vertices list. More...
 
void writeBlocks ()
 Write blocks sub-dictionary. More...
 
void writeEdges ()
 Write edges list. More...
 
void writeMergePatchPairs ()
 Write mergePatchPairs. More...
 
- Protected Member Functions inherited from blockMeshConfigurationBase
void roundBoundingBox (boundBox &bb, const scalar s)
 Round a bounding box by the rounding scale. More...
 
Pair< wordreadPatchOption (const word &option) const
 Parse the patch commandline options. More...
 
void writeVertex (const word &x, const word &y, const word &z)
 Write a vertex entry in the vertices list. More...
 
- Protected Member Functions inherited from caseFileConfiguration
void beginDict (OFstream &os)
 Output stream to begin a new dictionary without name. More...
 
void beginDict (OFstream &os, const word &name)
 Output stream to begin a new dictionary with name. More...
 
void endDict (OFstream &os, bool newline=true)
 Output stream to end a dictionary. More...
 
void beginList (OFstream &os)
 Output stream to begin a new list without name. More...
 
void beginList (OFstream &os, const word &name)
 Output stream to begin a new list with name. More...
 
void endList (OFstream &os, bool newline=true)
 Output stream to end a list. More...
 

Protected Attributes

Vector< labelnCells_
 Number of cells in background mesh block. More...
 
const label minDimCells_
 Number of cells in background mesh shortest direction. More...
 
const label refineFactor_
 Refinement factor used to scale nCells. More...
 
const bool clearBoundary_
 Clear the default patch entries for the background mesh. More...
 
- Protected Attributes inherited from blockMeshConfigurationBase
boundBox bb_
 Bounding box for the background mesh block. More...
 
HashTable< Pair< word > > patchOpts_
 Optional settings for patch names and types in the background mesh. More...
 
- Protected Attributes inherited from caseFileConfiguration
IOobject dict_
 IOobject to write file headers. More...
 
OFstream os_
 Output file stream to write file content. More...
 

Detailed Description

From a set of input surface geometry files and a set of configuration parameters, writes out a blockMeshDict configuration file. The mesh consists of a single block, aligned with Cartesian axes.

Source files

Definition at line 50 of file blockMeshCartesianConfiguration.H.

Constructor & Destructor Documentation

◆ blockMeshCartesianConfiguration() [1/2]

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.

◆ blockMeshCartesianConfiguration() [2/2]

Disallow default bitwise copy construction.

◆ ~blockMeshCartesianConfiguration()

Member Function Documentation

◆ calcBlockMeshDict()

void calcBlockMeshDict ( const bool &  boundsOpt)
protected

Calculate the parameters for the blockMeshDict file.

◆ writeBackgroundMesh()

void writeBackgroundMesh ( )
protected

Write backgroundMesh sub-dictionary.

◆ writeDefaultPatch()

void writeDefaultPatch ( )
protected

Write the defaultPatch entry.

◆ writePatch()

void writePatch ( const word name,
const word type,
const string face 
)
protected

Write a patch in the boundary sub-dictionary.

◆ writeBoundary()

void writeBoundary ( )
protected

Write the boundary sub-dictionary.

◆ writeVertices()

void writeVertices ( )
protected

Write vertices list.

◆ writeBlocks()

void writeBlocks ( )
protected

Write blocks sub-dictionary.

◆ writeEdges()

void writeEdges ( )
protected

Write edges list.

◆ writeMergePatchPairs()

void writeMergePatchPairs ( )
protected

◆ write()

void write ( )

Write the blockMeshDict.

◆ operator=()

void operator= ( const blockMeshCartesianConfiguration )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ nCells_

Vector<label> nCells_
protected

Number of cells in background mesh block.

Definition at line 59 of file blockMeshCartesianConfiguration.H.

◆ minDimCells_

const label minDimCells_
protected

Number of cells in background mesh shortest direction.

Definition at line 62 of file blockMeshCartesianConfiguration.H.

◆ refineFactor_

const label refineFactor_
protected

Refinement factor used to scale nCells.

Definition at line 65 of file blockMeshCartesianConfiguration.H.

◆ clearBoundary_

const bool clearBoundary_
protected

Clear the default patch entries for the background mesh.

Definition at line 68 of file blockMeshCartesianConfiguration.H.

◆ patches

const List<word> patches
static

Default patch names for the background mesh.

Definition at line 111 of file blockMeshCartesianConfiguration.H.


The documentation for this class was generated from the following file: