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 | |
IOdictionary & | meshDict_ |
Reference to the mesh. More... | |
Definition at line 50 of file checkMeshDict.H.
checkMeshDict | ( | IOdictionary & | meshDict | ) |
Construct from IOdictionary.
Definition at line 1265 of file checkMeshDict.C.
~checkMeshDict | ( | ) |
Definition at line 1276 of file checkMeshDict.C.
|
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().
|
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().
|
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().
|
private |
check local refinement level
Definition at line 158 of file checkMeshDict.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, dictionary::found(), dictionary::isDict(), checkMeshDict::meshDict_, Foam::readLabel(), Foam::readScalar(), s(), dictionary::subDict(), dictionary::toc(), and WarningIn.
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
check edgeMeshRefinements entry
Definition at line 471 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.
|
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().
|
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().
|
private |
perform all checks
Definition at line 767 of file checkMeshDict.C.
References checkMeshDict::checkAnisotropicSources(), checkMeshDict::checkBasicSettings(), checkMeshDict::checkBoundaryLayers(), checkMeshDict::checkKeepCellsIntersectingPatches(), checkMeshDict::checkObjectRefinements(), checkMeshDict::checkPatchCellSize(), checkMeshDict::checkRemoveCellsIntersectingPatches(), checkMeshDict::checkRenameBoundary(), checkMeshDict::checkSubsetCellSize(), and checkMeshDict::checkSurfaceRefinements().
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().
update subsetCellSize entry
Definition at line 862 of file checkMeshDict.C.
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().
|
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().
|
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().
check objectRefinements entry
Definition at line 1030 of file checkMeshDict.C.
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().
|
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().
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().
|
private |
Reference to the mesh.
Definition at line 53 of file checkMeshDict.H.
Referenced by checkMeshDict::checkAnisotropicSources(), checkMeshDict::checkBasicSettings(), checkMeshDict::checkBoundaryLayers(), checkMeshDict::checkEdgeMeshRefinements(), checkMeshDict::checkKeepCellsIntersectingPatches(), checkMeshDict::checkLocalRefinementLevel(), checkMeshDict::checkObjectRefinements(), checkMeshDict::checkPatchCellSize(), checkMeshDict::checkRemoveCellsIntersectingPatches(), checkMeshDict::checkRenameBoundary(), checkMeshDict::checkSubsetCellSize(), and checkMeshDict::checkSurfaceRefinements().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.