Go to the documentation of this file.
54 const scalar cellSize,
57 const scalar radius0Outer,
58 const scalar radius0Inner,
60 const scalar radius1Outer,
61 const scalar radius1Inner
66 r0Outer_(radius0Outer),
67 r0Inner_(radius0Inner),
69 r1Outer_(radius1Outer),
70 r1Inner_(radius1Inner)
72 r0Inner_ =
min(r0Inner_, r0Outer_);
73 r1Inner_ =
min(r0Inner_, r0Outer_);
75 setCellSize(cellSize);
76 setAdditionalRefinementLevels(additionalRefLevels);
87 this->operator=(
dict);
98 const scalar d =
magSqr(v);
103 const scalar t = ((
c -
p0_) & v) / d;
104 if( (t > 1.0) || (t < 0.0) )
110 if((
mag(
p0_ + t * v -
c) < rOuter ) && (
mag(
p0_ + t * v -
c) > rInner ))
145 os <<
" type: " <<
type()
173 if(
type() != typeName_() )
210 "void hollowConeRefinement::operator=(const dictionary& d)"
224 "void hollowConeRefinement::operator=(const dictionary& d)"
238 "void hollowConeRefinement::operator=(const dictionary& d)"
253 "void hollowConeRefinement::operator=(const dictionary& d)"
267 "void hollowConeRefinement::operator=(const dictionary& d)"
281 "void hollowConeRefinement::operator=(const dictionary& d)"
291 os <<
"name " <<
name() <<
nl;
point p0_
start point and the radii
void writeDict(Ostream &, bool subDict=true) const
Write dictionary.
A class for handling words, derived from string.
const point & max() const
Maximum describing the bounding box.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dictionary dict(bool ignoreType=false) const
Return as dictionary of entries.
dimensioned< scalar > mag(const dimensioned< Type > &)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
void write(Ostream &) const
Write.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
scalar cellSize() const
return cell size
bool intersectsObject(const boundBox &) const
check if a boundBox intersects or is inside the object
hollowConeRefinement()
Null construct.
point p1_
end point and the radii
direction additionalRefinementLevels() const
return the number of additional refinement levels
const point & min() const
Minimum describing the bounding box.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Refine boxes with centres contained inside the specified hollow cone.
A bounding box defined in terms of the points at its extremities.
void operator=(const dictionary &)
assign from dictionary
const dimensionedScalar c
Speed of light in a vacuum.
const word & name() const
Return name.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & operator<<(Ostream &) const
dimensioned< scalar > magSqr(const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
Base class for coordinate systems. All systems are defined by an origin and a coordinate rotation.