Go to the documentation of this file.
50 const scalar cellSize,
61 setCellSize(cellSize);
62 setAdditionalRefinementLevels(additionalRefLevels);
73 this->operator=(
dict);
81 const scalar l = bb.
max().
x() - bb.
min().
x();
88 if(
mag(v.
x()) > SMALL )
99 const scalar t = (
n & (
min -
p0_)) / (
n & v);
102 (t > -SMALL) && (t < (1.0+SMALL))
105 (i.
y() >
min.y()) && (i.
y() <
max.y()) &&
106 (i.
z() >
min.z()) && (i.
z() <
max.z())
113 const scalar t = (
n & (
max -
p0_)) / (
n & v);
116 (t > -SMALL) && (t < (1.0+SMALL))
119 (i.
y() >
min.y()) && (i.
y() <
max.y()) &&
120 (i.
z() >
min.z()) && (i.
z() <
max.z())
126 if(
mag(v.
y()) > SMALL)
137 const scalar t = (
n & (
min -
p0_)) / (
n & v);
140 (t > -SMALL) && (t < (1.0+SMALL))
143 (i.
x() >
min.x()) && (i.
x() <
max.x()) &&
144 (i.
z() >
min.z()) && (i.
z() <
max.z())
151 const scalar t = (
n & (
max -
p0_)) / (
n & v);
154 (t > -SMALL) && (t < (1.0+SMALL))
157 (i.
x() >
min.x()) && (i.
x() <
max.x()) &&
158 (i.
z() >
min.z()) && (i.
z() <
max.z())
163 if(
mag(v.
z()) > SMALL )
174 const scalar t = (
n & (
min -
p0_)) / (
n & v);
177 (t > -SMALL) && (t < (1.0+SMALL)) &&
178 (i.
x() >
min.x()) && (i.
x() <
max.x()) &&
179 (i.
y() >
min.y()) && (i.
y() <
max.y())
186 const scalar t = (
n & (
max -
p0_)) / (
n & v);
189 (t > -SMALL) && (t < (1.0+SMALL)) &&
190 (i.
x() >
min.x()) && (i.
x() <
max.x()) &&
191 (i.
y() >
min.y()) && (i.
y() <
max.y())
232 os <<
" type: " <<
type()
256 if(
type() != typeName_() )
289 "void lineRefinement::operator=(const dictionary& d)"
303 "void lineRefinement::operator=(const dictionary& d)"
313 os <<
"name " <<
name() <<
nl;
lineRefinement()
Null construct.
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.
dictionary dict(bool ignoreType=false) const
Return as dictionary of entries.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
scalar cellSize() const
return cell size
point p0_
start point of the line
direction additionalRefinementLevels() const
return the number of additional refinement levels
void operator=(const dictionary &)
assign from dictionary
const point & min() const
Minimum describing the bounding box.
point p1_
end point of the line
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool intersectsObject(const boundBox &) const
check if the line intersects the box
Macros for easy insertion into run-time selection tables.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
Vector< scalar > vector
A scalar version of the templated Vector.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void writeDict(Ostream &, bool subDict=true) const
Write dictionary.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void write(Ostream &) const
Write.
A bounding box defined in terms of the points at its extremities.
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,...
Refine objects intersected by a line given by two points.
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
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.