Public Member Functions | Private Member Functions | Private Attributes
checkMeshDict Class Reference
Collaboration diagram for checkMeshDict:
Collaboration graph
[legend]

Public Member Functions

 checkMeshDict (IOdictionary &meshDict)
 Construct from IOdictionary. More...
 
 ~checkMeshDict ()
 
void updateDictionaries (const std::map< word, wordList > &patchesForPatch, const std::map< word, word > &patchTypes, const bool renamePatches=true)
 update meshDict based on modification of patches in the surface More...
 

Private Member Functions

void checkBasicSettings () const
 check settings for cell size in meshDict More...
 
void checkPatchCellSize () const
 check patchCellSize entry More...
 
void checkSubsetCellSize () const
 check subsetCellSize entry More...
 
void checkLocalRefinementLevel () const
 check local refinement level More...
 
void checkKeepCellsIntersectingPatches () const
 check keepCellsIntersectingPatches entry More...
 
void checkRemoveCellsIntersectingPatches () const
 check removeCellsIntersectingPatches entry More...
 
void checkObjectRefinements () const
 check objectRefinements entry More...
 
void checkAnisotropicSources () const
 check anisotropic sources More...
 
void checkSurfaceRefinements () const
 check surfaceRefinements entry More...
 
void checkEdgeMeshRefinements () const
 check edgeMeshRefinements entry More...
 
void checkBoundaryLayers () const
 check entry for boundary layers More...
 
void checkRenameBoundary () const
 check renameBoundary entry More...
 
void checkEntries () const
 perform all checks More...
 
void updatePatchCellSize (const std::map< word, wordList > &)
 update patchCellSize entry More...
 
void updateSubsetCellSize (const std::map< word, wordList > &)
 update subsetCellSize entry More...
 
void updateLocalRefinement (const std::map< word, wordList > &)
 update local refinement More...
 
void updateKeepCellsIntersectingPatches (const std::map< word, wordList > &)
 check keepCellsIntersectingPatches entry More...
 
void updateRemoveCellsIntersectingPatches (const std::map< word, wordList > &)
 check removeCellsIntersectingPatches entry More...
 
void updateObjectRefinements (const std::map< word, wordList > &)
 check objectRefinements entry More...
 
void updateBoundaryLayers (const std::map< word, wordList > &)
 check entry for boundary layers More...
 
void updateRenameBoundary (const std::map< word, wordList > &, const std::map< word, word > &)
 check renameBoundary entry More...
 

Private Attributes

IOdictionarymeshDict_
 Reference to the mesh. More...
 

Detailed Description

Definition at line 50 of file checkMeshDict.H.

Constructor & Destructor Documentation

◆ checkMeshDict()

checkMeshDict ( IOdictionary meshDict)

Construct from IOdictionary.

Definition at line 1265 of file checkMeshDict.C.

◆ ~checkMeshDict()

Definition at line 1276 of file checkMeshDict.C.

Member Function Documentation

◆ checkBasicSettings()

void checkBasicSettings ( ) const
private

check settings for cell size in meshDict

check if maxCellSize is valid

check if boundaryCellSize makes sense

check if minCellSize is valid

check if keepCellsIntersectingBoundary can be read correctly

check if enforceConstraints is available

Definition at line 42 of file checkMeshDict.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), dictionary::lookup(), checkMeshDict::meshDict_, Foam::readBool(), Foam::readScalar(), and WarningIn.

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkPatchCellSize()

void checkPatchCellSize ( ) const
private

check patchCellSize entry

Definition at line 121 of file checkMeshDict.C.

References dict, dictionary::found(), dictionary::isDict(), dictionary::lookup(), checkMeshDict::meshDict_, patchNames(), List::size(), and dictionary::subDict().

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkSubsetCellSize()

void checkSubsetCellSize ( ) const
private

check subsetCellSize entry

Definition at line 140 of file checkMeshDict.C.

References dict, dictionary::found(), dictionary::isDict(), dictionary::lookup(), checkMeshDict::meshDict_, List::size(), and dictionary::subDict().

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkLocalRefinementLevel()

void checkLocalRefinementLevel ( ) const
private

◆ checkKeepCellsIntersectingPatches()

void checkKeepCellsIntersectingPatches ( ) const
private

check keepCellsIntersectingPatches entry

Definition at line 234 of file checkMeshDict.C.

References dict, dictionary::found(), dictionary::isDict(), dictionary::lookup(), checkMeshDict::meshDict_, patchNames(), and dictionary::subDict().

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkRemoveCellsIntersectingPatches()

void checkRemoveCellsIntersectingPatches ( ) const
private

check removeCellsIntersectingPatches entry

Definition at line 253 of file checkMeshDict.C.

References dict, dictionary::found(), dictionary::isDict(), dictionary::lookup(), checkMeshDict::meshDict_, patchNames(), and dictionary::subDict().

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkObjectRefinements()

void checkObjectRefinements ( ) const
private

check objectRefinements entry

Definition at line 272 of file checkMeshDict.C.

References dict, entry::dict(), Foam::endl(), forAll, dictionary::found(), dictionary::isDict(), entry::keyword(), dictionary::lookup(), checkMeshDict::meshDict_, objectRefinement::New(), PtrList::set(), PtrList::setSize(), List::size(), PtrList::size(), dictionary::subDict(), and WarningIn.

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkAnisotropicSources()

void checkAnisotropicSources ( ) const
private

check anisotropic sources

Definition at line 336 of file checkMeshDict.C.

References dict, entry::dict(), forAll, dictionary::found(), dictionary::isDict(), entry::keyword(), checkMeshDict::meshDict_, coordinateModification::New(), PtrList::set(), PtrList::setSize(), List::size(), and dictionary::subDict().

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkSurfaceRefinements()

void checkSurfaceRefinements ( ) const
private

check surfaceRefinements entry

Definition at line 368 of file checkMeshDict.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, dictionary::found(), dictionary::isDict(), Foam::isFile(), checkMeshDict::meshDict_, Foam::readLabel(), Foam::readScalar(), dictionary::subDict(), dictionary::toc(), and WarningIn.

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkEdgeMeshRefinements()

void checkEdgeMeshRefinements ( ) const
private

◆ checkBoundaryLayers()

void checkBoundaryLayers ( ) const
private

check entry for boundary layers

read global properties

patch-based properties

check for existence of boundary layer smoothing

Definition at line 574 of file checkMeshDict.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, dictionary::found(), dictionary::isDict(), dictionary::lookup(), checkMeshDict::meshDict_, patchNames(), Foam::readBool(), Foam::readLabel(), Foam::readScalar(), dictionary::subDict(), dictionary::toc(), and Foam::Warning.

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkRenameBoundary()

void checkRenameBoundary ( ) const
private

check renameBoundary entry

Definition at line 706 of file checkMeshDict.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, dictionary::found(), checkMeshDict::meshDict_, patchDicts, patchNames(), and dictionary::subDict().

Referenced by checkMeshDict::checkEntries().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkEntries()

void checkEntries ( ) const
private

◆ updatePatchCellSize()

void updatePatchCellSize ( const std::map< word, wordList > &  patchesFromPatch)
private

update patchCellSize entry

Definition at line 791 of file checkMeshDict.C.

References LongList< T, Offset >::append(), dict, forAll, dictionary::lookup(), patchNames(), Foam::readScalar(), dictionary::subDict(), and dictionary::toc().

Here is the call graph for this function:

◆ updateSubsetCellSize()

void updateSubsetCellSize ( const std::map< word, wordList > &  )
private

update subsetCellSize entry

Definition at line 862 of file checkMeshDict.C.

◆ updateLocalRefinement()

void updateLocalRefinement ( const std::map< word, wordList > &  patchesFromPatch)
private

update local refinement

add new patches

remove the current patch

Definition at line 870 of file checkMeshDict.C.

References dictionary::add(), dict, forAll, dictionary::remove(), dictionary::subDict(), and dictionary::toc().

Here is the call graph for this function:

◆ updateKeepCellsIntersectingPatches()

void updateKeepCellsIntersectingPatches ( const std::map< word, wordList > &  patchesFromPatch)
private

check keepCellsIntersectingPatches entry

Definition at line 908 of file checkMeshDict.C.

References LongList< T, Offset >::append(), dict, forAll, patchNames(), dictionary::subDict(), and dictionary::toc().

Here is the call graph for this function:

◆ updateRemoveCellsIntersectingPatches()

void updateRemoveCellsIntersectingPatches ( const std::map< word, wordList > &  patchesFromPatch)
private

check removeCellsIntersectingPatches entry

Definition at line 967 of file checkMeshDict.C.

References LongList< T, Offset >::append(), dict, forAll, patchNames(), dictionary::subDict(), and dictionary::toc().

Here is the call graph for this function:

◆ updateObjectRefinements()

void updateObjectRefinements ( const std::map< word, wordList > &  )
private

check objectRefinements entry

Definition at line 1030 of file checkMeshDict.C.

◆ updateBoundaryLayers()

void updateBoundaryLayers ( const std::map< word, wordList > &  patchesFromPatch)
private

check entry for boundary layers

patch name may be a regex

Definition at line 1038 of file checkMeshDict.C.

References dictionary::add(), dict, forAll, dictionary::isDict(), dictionary::remove(), dictionary::subDict(), and dictionary::toc().

Here is the call graph for this function:

◆ updateRenameBoundary()

void updateRenameBoundary ( const std::map< word, wordList > &  patchesFromPatch,
const std::map< word, word > &  patchTypes 
)
private

check renameBoundary entry

transfer or generate the default name entry

transfer or generate the defaultType entry

stores the updated dictionary

current state of the dictionary

patch renaming is already requested by the user use the new name for all newly created patches

rename all newly create patches with the original name

rename all newly created patches with the original name

newPatchNames is not used

delete all previus entries from the dictionary

create the dictionary if it has not existed before

Definition at line 1079 of file checkMeshDict.C.

References dictionary::add(), dict, forAll, dictionary::found(), dictionary::isDict(), dictionary::lookup(), Foam::name(), patchDicts, patchTypes(), dictionary::subDict(), and Foam::type().

Here is the call graph for this function:

◆ updateDictionaries()

void updateDictionaries ( const std::map< word, wordList > &  patchesForPatch,
const std::map< word, word > &  patchTypes,
const bool  renamePatches = true 
)

update meshDict based on modification of patches in the surface

Definition at line 1282 of file checkMeshDict.C.

References patchTypes().

Referenced by triSurfacePatchManipulator::surfaceWithPatches().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ meshDict_

IOdictionary& meshDict_
private

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