Public Member Functions | |
TypeName ("cone") | |
Runtime type information. More... | |
coneRefinement () | |
Null construct. More... | |
coneRefinement (const word &name, const scalar cellSize, const direction additionalRefLevels, const point &p0, const scalar radius0, const point &p1, const scalar radius1) | |
Construct from name, cell size, centre and radius. More... | |
coneRefinement (const word &name, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< objectRefinement > | clone (const coneRefinement &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 radius More... | |
scalar | r0_ |
point | p1_ |
end point and the radius More... | |
scalar | r1_ |
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 coneRefinement.H.
coneRefinement | ( | ) |
Null construct.
Definition at line 40 of file coneRefinement.C.
coneRefinement | ( | const word & | name, |
const scalar | cellSize, | ||
const direction | additionalRefLevels, | ||
const point & | p0, | ||
const scalar | radius0, | ||
const point & | p1, | ||
const scalar | radius1 | ||
) |
Construct from name, cell size, centre and radius.
Definition at line 50 of file coneRefinement.C.
References Foam::name().
coneRefinement | ( | const word & | name, |
const dictionary & | dict | ||
) |
TypeName | ( | "cone" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 91 of file coneRefinement.H.
References objectRefinement::additionalRefinementLevels(), objectRefinement::cellSize(), objectRefinement::name(), coneRefinement::p0_, coneRefinement::p1_, coneRefinement::r0_, and coneRefinement::r1_.
|
virtual |
check if a boundBox intersects or is inside the object
check if the centre is inside the cone
Implements objectRefinement.
Definition at line 84 of file coneRefinement.C.
References Foam::constant::universal::c, Foam::mag(), Foam::magSqr(), boundBox::max(), boundBox::min(), coneRefinement::p0_, coneRefinement::p1_, coneRefinement::r0_, and coneRefinement::r1_.
|
virtual |
Return as dictionary of entries.
Implements objectRefinement.
Definition at line 109 of file coneRefinement.C.
References dictionary::add(), objectRefinement::additionalRefinementLevels(), objectRefinement::cellSize(), coneRefinement::p0_, coneRefinement::p1_, coneRefinement::r0_, coneRefinement::r1_, and Foam::type().
Referenced by coneRefinement::operator=().
|
virtual |
Write.
Implements objectRefinement.
Definition at line 132 of file coneRefinement.C.
References coneRefinement::p0_, coneRefinement::p1_, coneRefinement::r0_, coneRefinement::r1_, and Foam::type().
Referenced by coneRefinement::operator<<().
|
virtual |
Write dictionary.
Implements objectRefinement.
Definition at line 141 of file coneRefinement.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, coneRefinement::p0_, coneRefinement::p1_, coneRefinement::r0_, coneRefinement::r1_, Foam::type(), and Ostream::writeKeyword().
|
virtual |
assign from dictionary
Implements objectRefinement.
Definition at line 176 of file coneRefinement.C.
References coneRefinement::dict(), Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), dictionary::lookup(), coneRefinement::p0_, coneRefinement::p1_, coneRefinement::r0_, coneRefinement::r1_, Foam::readScalar(), dictionary::subDict(), and Vector< scalar >::zero.
Definition at line 245 of file coneRefinement.C.
References objectRefinement::additionalRefinementLevels(), objectRefinement::cellSize(), Foam::endl(), objectRefinement::name(), Foam::nl, and coneRefinement::write().
|
private |
start point and the radius
Definition at line 56 of file coneRefinement.H.
Referenced by coneRefinement::clone(), coneRefinement::dict(), coneRefinement::intersectsObject(), coneRefinement::operator=(), coneRefinement::write(), and coneRefinement::writeDict().
|
private |
Definition at line 57 of file coneRefinement.H.
Referenced by coneRefinement::clone(), coneRefinement::dict(), coneRefinement::intersectsObject(), coneRefinement::operator=(), coneRefinement::write(), and coneRefinement::writeDict().
|
private |
end point and the radius
Definition at line 60 of file coneRefinement.H.
Referenced by coneRefinement::clone(), coneRefinement::dict(), coneRefinement::intersectsObject(), coneRefinement::operator=(), coneRefinement::write(), and coneRefinement::writeDict().
|
private |
Definition at line 61 of file coneRefinement.H.
Referenced by coneRefinement::clone(), coneRefinement::dict(), coneRefinement::intersectsObject(), coneRefinement::operator=(), coneRefinement::write(), and coneRefinement::writeDict().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.