Go to the documentation of this file.
51 scalingDistance_(0.0),
60 const scalar scalingDistance,
61 const scalar scalingFactor
67 scalingDistance_(scalingDistance),
68 scalingFactor_(scalingFactor)
70 if( scalingFactor_ < SMALL )
72 Warning <<
"Scaling factor for plane " <<
name <<
" is less than 0.0 "
89 this->operator=(
dict);
110 const vector translationVec =
117 return tBnd * translationVec;
124 const vector translationVec =
131 return tBnd * translationVec;
172 os <<
" type: " <<
type()
187 if(
type() != typeName_() )
224 "void planeScaling::operator=(const dictionary& d)"
239 "void planeScaling::operator=(const dictionary& d)"
254 "void planeScaling::operator=(const dictionary& d)"
255 ) <<
"Entry scalingDistance is not specified!" <<
exit(
FatalError);
269 "void planeScaling::operator=(const dictionary& d)"
270 ) <<
"Entry scalingFactor is not specified!" <<
endl;
280 os <<
"name " <<
name() <<
nl;
287 return pt.operator<<(os);
void writeDict(Ostream &, bool subDict=true) const
Write dictionary.
scalar scalingFactor_
scaling factor
point origin_
origin of the plane
virtual vector backwardDisplacement(const point &) const
calculate the displacement vector for plane translation
A class for handling words, derived from string.
virtual void boundingPlanes(PtrList< plane > &) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual vector displacement(const point &) const
calculate the displacement vector for plane translation
Ostream & endl(Ostream &os)
Add newline and flush stream.
void write(Ostream &) const
Write.
dimensioned< scalar > mag(const dimensioned< Type > &)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
bool set(const label) const
Is element set.
virtual void translateAndModifyObject(const vector &)
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
planeScaling()
Null construct.
dictionary dict(bool ignoreType=false) const
Return as dictionary of entries.
Applies scaling to points on the positive side of the plane within the scaling distance.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool combiningPossible() const
can this modification object be combined with other ones
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.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
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)
scalar scalingDistance_
scaling distance
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual point origin() const
return the origin of the plane
vector normal_
normal vector
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
const word & name() const
Return name.
Base class for modifiers of point coordinates.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Ostream & operator<<(Ostream &) const
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
void operator=(const dictionary &)
assign from dictionary
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 > &)
word name(const complex &)
Return a string representation of a complex.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
A normal distribution model.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...