Public Member Functions | |
TypeName ("hollowCone") | |
Runtime type information. More... | |
hollowConeRefinement () | |
Null construct. More... | |
hollowConeRefinement (const word &name, const scalar cellSize, const direction additionalRefLevels, const point &p0, const scalar radius0Outer, const scalar radius0Inner, const point &p1, const scalar radius1Outer, const scalar radius1Inner) | |
Construct from name, cell size, centre and radii. More... | |
hollowConeRefinement (const word &name, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< objectRefinement > | clone (const hollowConeRefinement &sr) const |
Construct and return a clone. More... | |
bool | intersectsObject (const boundBox &) const |
check if a boundBox intersects or is inside the object More... | |
dictionary | dict (bool ignoreType=false) const |
Return as dictionary of entries. More... | |
void | write (Ostream &) const |
Write. More... | |
void | writeDict (Ostream &, bool subDict=true) const |
Write dictionary. More... | |
void | operator= (const dictionary &) |
assign from dictionary More... | |
Ostream & | operator<< (Ostream &) const |
![]() | |
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 () |
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... | |
Private Attributes | |
point | p0_ |
start point and the radii More... | |
scalar | r0Outer_ |
scalar | r0Inner_ |
point | p1_ |
end point and the radii More... | |
scalar | r1Outer_ |
scalar | r1Inner_ |
Additional Inherited Members | |
![]() | |
static autoPtr< objectRefinement > | New (const word &name, const dictionary &dict) |
Select constructed from dictionary. More... | |
![]() | |
void | setCellSize (const scalar cellSize) |
set cell size More... | |
scalar | cellSize () const |
return cell size More... | |
![]() | |
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... | |
Definition at line 50 of file hollowConeRefinement.H.
Null construct.
Definition at line 40 of file hollowConeRefinement.C.
hollowConeRefinement | ( | const word & | name, |
const scalar | cellSize, | ||
const direction | additionalRefLevels, | ||
const point & | p0, | ||
const scalar | radius0Outer, | ||
const scalar | radius0Inner, | ||
const point & | p1, | ||
const scalar | radius1Outer, | ||
const scalar | radius1Inner | ||
) |
Construct from name, cell size, centre and radii.
Definition at line 52 of file hollowConeRefinement.C.
References Foam::min(), and Foam::name().
hollowConeRefinement | ( | const word & | name, |
const dictionary & | dict | ||
) |
TypeName | ( | "hollowCone" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 95 of file hollowConeRefinement.H.
References objectRefinement::additionalRefinementLevels(), objectRefinement::cellSize(), objectRefinement::name(), hollowConeRefinement::p0_, hollowConeRefinement::p1_, hollowConeRefinement::r0Inner_, hollowConeRefinement::r0Outer_, hollowConeRefinement::r1Inner_, and hollowConeRefinement::r1Outer_.
|
virtual |
check if a boundBox intersects or is inside the object
check if the centre is inside the cone
Implements objectRefinement.
Definition at line 92 of file hollowConeRefinement.C.
References Foam::constant::universal::c, Foam::mag(), Foam::magSqr(), boundBox::max(), boundBox::min(), hollowConeRefinement::p0_, hollowConeRefinement::p1_, hollowConeRefinement::r0Inner_, hollowConeRefinement::r0Outer_, hollowConeRefinement::r1Inner_, and hollowConeRefinement::r1Outer_.
|
virtual |
Return as dictionary of entries.
Implements objectRefinement.
Definition at line 118 of file hollowConeRefinement.C.
References dictionary::add(), objectRefinement::additionalRefinementLevels(), objectRefinement::cellSize(), hollowConeRefinement::p0_, hollowConeRefinement::p1_, hollowConeRefinement::r0Inner_, hollowConeRefinement::r0Outer_, hollowConeRefinement::r1Inner_, hollowConeRefinement::r1Outer_, and Foam::type().
Referenced by hollowConeRefinement::operator=().
|
virtual |
Write.
Implements objectRefinement.
Definition at line 143 of file hollowConeRefinement.C.
References hollowConeRefinement::p0_, hollowConeRefinement::p1_, hollowConeRefinement::r0Inner_, hollowConeRefinement::r0Outer_, hollowConeRefinement::r1Inner_, hollowConeRefinement::r1Outer_, and Foam::type().
Referenced by hollowConeRefinement::operator<<().
|
virtual |
Write dictionary.
Implements objectRefinement.
Definition at line 154 of file hollowConeRefinement.C.
References objectRefinement::additionalRefinementLevels(), token::BEGIN_BLOCK, objectRefinement::cellSize(), Foam::decrIndent(), token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::incrIndent(), Foam::indent(), Foam::nl, hollowConeRefinement::p0_, hollowConeRefinement::p1_, hollowConeRefinement::r0Inner_, hollowConeRefinement::r0Outer_, hollowConeRefinement::r1Inner_, hollowConeRefinement::r1Outer_, Foam::type(), and Ostream::writeKeyword().
|
virtual |
assign from dictionary
Implements objectRefinement.
Definition at line 191 of file hollowConeRefinement.C.
References hollowConeRefinement::dict(), Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), dictionary::lookup(), hollowConeRefinement::p0_, hollowConeRefinement::p1_, hollowConeRefinement::r0Inner_, hollowConeRefinement::r0Outer_, hollowConeRefinement::r1Inner_, hollowConeRefinement::r1Outer_, Foam::readScalar(), dictionary::subDict(), and Vector< scalar >::zero.
Definition at line 289 of file hollowConeRefinement.C.
References objectRefinement::additionalRefinementLevels(), objectRefinement::cellSize(), Foam::endl(), objectRefinement::name(), Foam::nl, and hollowConeRefinement::write().
|
private |
start point and the radii
Definition at line 56 of file hollowConeRefinement.H.
Referenced by hollowConeRefinement::clone(), hollowConeRefinement::dict(), hollowConeRefinement::intersectsObject(), hollowConeRefinement::operator=(), hollowConeRefinement::write(), and hollowConeRefinement::writeDict().
|
private |
Definition at line 57 of file hollowConeRefinement.H.
Referenced by hollowConeRefinement::clone(), hollowConeRefinement::dict(), hollowConeRefinement::intersectsObject(), hollowConeRefinement::operator=(), hollowConeRefinement::write(), and hollowConeRefinement::writeDict().
|
private |
Definition at line 58 of file hollowConeRefinement.H.
Referenced by hollowConeRefinement::clone(), hollowConeRefinement::dict(), hollowConeRefinement::intersectsObject(), hollowConeRefinement::operator=(), hollowConeRefinement::write(), and hollowConeRefinement::writeDict().
|
private |
end point and the radii
Definition at line 61 of file hollowConeRefinement.H.
Referenced by hollowConeRefinement::clone(), hollowConeRefinement::dict(), hollowConeRefinement::intersectsObject(), hollowConeRefinement::operator=(), hollowConeRefinement::write(), and hollowConeRefinement::writeDict().
|
private |
Definition at line 62 of file hollowConeRefinement.H.
Referenced by hollowConeRefinement::clone(), hollowConeRefinement::dict(), hollowConeRefinement::intersectsObject(), hollowConeRefinement::operator=(), hollowConeRefinement::write(), and hollowConeRefinement::writeDict().
|
private |
Definition at line 63 of file hollowConeRefinement.H.
Referenced by hollowConeRefinement::clone(), hollowConeRefinement::dict(), hollowConeRefinement::intersectsObject(), hollowConeRefinement::operator=(), hollowConeRefinement::write(), and hollowConeRefinement::writeDict().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.