Public Member Functions | |
TypeName ("objectRefinement") | |
objectRefinement () | |
Null construct. More... | |
objectRefinement (const word &name, const dictionary &) | |
Construct from dictionary. More... | |
declareRunTimeSelectionTable (autoPtr, objectRefinement, dictionary,(const word &name, const dictionary &dict),(name, dict)) | |
virtual | ~objectRefinement () |
virtual bool | intersectsObject (const boundBox &) const =0 |
check if a boundBox intersects or is inside the object More... | |
const word & | name () const |
Return name. More... | |
void | setName (const word &name) |
set the name More... | |
void | calculateAdditionalRefLevels (const scalar globalCellSize) |
calculate additional refinement levels from cell size More... | |
void | setAdditionalRefinementLevels (const direction addRefLevels) |
set the number of additional refinement level More... | |
direction | additionalRefinementLevels () const |
return the number of additional refinement levels More... | |
void | setRefinementThickness (const scalar refThickness) |
set refinement thickness More... | |
scalar | refinementThickness () const |
return refinement thickness for this object More... | |
virtual dictionary | dict (bool ignoreType=false) const =0 |
Return as dictionary of entries. More... | |
virtual void | write (Ostream &) const =0 |
Write. More... | |
virtual void | writeDict (Ostream &, bool subDict=true) const =0 |
Write dictionary. More... | |
virtual void | operator= (const dictionary &)=0 |
assign from dictionary More... | |
Static Public Member Functions | |
static autoPtr< objectRefinement > | New (const word &name, const dictionary &dict) |
Select constructed from dictionary. More... | |
Protected Member Functions | |
void | setCellSize (const scalar cellSize) |
set cell size More... | |
scalar | cellSize () const |
return cell size More... | |
Protected Attributes | |
word | name_ |
Name of object refinement type. More... | |
scalar | cellSize_ |
cell size for this object More... | |
label | additionalRefLevel_ |
refinement level applicable to this object More... | |
scalar | refThickness_ |
refinement thickness fro this object More... | |
Friends | |
Ostream & | operator<< (Ostream &, const objectRefinement &) |
Definition at line 54 of file objectRefinement.H.
objectRefinement | ( | ) |
Null construct.
Definition at line 40 of file objectRefinement.C.
objectRefinement | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 49 of file objectRefinement.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), dictionary::lookup(), Foam::readLabel(), and Foam::readScalar().
|
virtual |
Definition at line 95 of file objectRefinement.C.
|
inlineprotected |
set cell size
Definition at line 74 of file objectRefinement.H.
References objectRefinement::cellSize(), and objectRefinement::cellSize_.
|
inlineprotected |
return cell size
Definition at line 80 of file objectRefinement.H.
References objectRefinement::cellSize_.
Referenced by lineRefinement::clone(), sphereRefinement::clone(), coneRefinement::clone(), boxRefinement::clone(), hollowConeRefinement::clone(), sphereRefinement::dict(), lineRefinement::dict(), boxRefinement::dict(), coneRefinement::dict(), hollowConeRefinement::dict(), sphereRefinement::operator<<(), lineRefinement::operator<<(), coneRefinement::operator<<(), boxRefinement::operator<<(), hollowConeRefinement::operator<<(), objectRefinement::setCellSize(), lineRefinement::writeDict(), sphereRefinement::writeDict(), coneRefinement::writeDict(), boxRefinement::writeDict(), and hollowConeRefinement::writeDict().
TypeName | ( | "objectRefinement" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
objectRefinement | , | ||
dictionary | , | ||
(const word &name, const dictionary &dict) | , | ||
(name, dict) | |||
) |
|
static |
Select constructed from dictionary.
Definition at line 38 of file newObjectRefinement.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, dictionary::found(), Foam::Info, dictionary::lookup(), Foam::name(), and Foam::nl.
Referenced by checkMeshDict::checkObjectRefinements(), and meshOctreeCreator::refineBoxesContainedInObjects().
|
pure virtual |
check if a boundBox intersects or is inside the object
Implemented in hollowConeRefinement, boxRefinement, coneRefinement, lineRefinement, and sphereRefinement.
|
inline |
Return name.
Definition at line 136 of file objectRefinement.H.
References objectRefinement::name_.
Referenced by lineRefinement::clone(), sphereRefinement::clone(), boxRefinement::clone(), coneRefinement::clone(), hollowConeRefinement::clone(), Foam::operator<<(), sphereRefinement::operator<<(), lineRefinement::operator<<(), boxRefinement::operator<<(), coneRefinement::operator<<(), hollowConeRefinement::operator<<(), and objectRefinement::setName().
|
inline |
set the name
Definition at line 142 of file objectRefinement.H.
References objectRefinement::name(), and objectRefinement::name_.
void calculateAdditionalRefLevels | ( | const scalar | globalCellSize | ) |
calculate additional refinement levels from cell size
Definition at line 108 of file objectRefinement.C.
References objectRefinement::additionalRefLevel_, objectRefinement::cellSize_, and s().
|
inline |
set the number of additional refinement level
Definition at line 151 of file objectRefinement.H.
References objectRefinement::additionalRefLevel_.
|
inline |
return the number of additional refinement levels
Definition at line 157 of file objectRefinement.H.
References objectRefinement::additionalRefLevel_.
Referenced by lineRefinement::clone(), sphereRefinement::clone(), coneRefinement::clone(), boxRefinement::clone(), hollowConeRefinement::clone(), sphereRefinement::dict(), lineRefinement::dict(), boxRefinement::dict(), coneRefinement::dict(), hollowConeRefinement::dict(), sphereRefinement::operator<<(), lineRefinement::operator<<(), boxRefinement::operator<<(), coneRefinement::operator<<(), hollowConeRefinement::operator<<(), sphereRefinement::writeDict(), lineRefinement::writeDict(), boxRefinement::writeDict(), coneRefinement::writeDict(), and hollowConeRefinement::writeDict().
|
inline |
set refinement thickness
Definition at line 163 of file objectRefinement.H.
References objectRefinement::refThickness_.
|
inline |
return refinement thickness for this object
Definition at line 169 of file objectRefinement.H.
References objectRefinement::refThickness_.
|
pure virtual |
Return as dictionary of entries.
Implemented in hollowConeRefinement, boxRefinement, coneRefinement, lineRefinement, and sphereRefinement.
|
pure virtual |
Write.
Implemented in hollowConeRefinement, boxRefinement, coneRefinement, lineRefinement, and sphereRefinement.
|
pure virtual |
Write dictionary.
Implemented in hollowConeRefinement, boxRefinement, coneRefinement, lineRefinement, and sphereRefinement.
Referenced by Foam::operator<<().
|
pure virtual |
assign from dictionary
Implemented in hollowConeRefinement, boxRefinement, coneRefinement, lineRefinement, and sphereRefinement.
|
friend |
Definition at line 101 of file objectRefinement.C.
|
protected |
Name of object refinement type.
Definition at line 61 of file objectRefinement.H.
Referenced by objectRefinement::name(), and objectRefinement::setName().
|
protected |
cell size for this object
Definition at line 64 of file objectRefinement.H.
Referenced by objectRefinement::calculateAdditionalRefLevels(), objectRefinement::cellSize(), and objectRefinement::setCellSize().
|
protected |
refinement level applicable to this object
Definition at line 67 of file objectRefinement.H.
Referenced by objectRefinement::additionalRefinementLevels(), objectRefinement::calculateAdditionalRefLevels(), and objectRefinement::setAdditionalRefinementLevels().
|
protected |
refinement thickness fro this object
Definition at line 70 of file objectRefinement.H.
Referenced by objectRefinement::refinementThickness(), and objectRefinement::setRefinementThickness().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.