Go to the documentation of this file.
42 "void coordinateModifier::checkForValidInverse() const"
43 ) <<
modifiers_[modI].name() <<
" cannot be combined with"
44 <<
" other anisotropic sources. The operation"
54 # ifdef DEBUGCoordinateModifier
56 <<
" which are " << bndPlanes <<
endl;
62 modifiers_[modJ].boundingPlanes(otherBndPlanes);
64 # ifdef DEBUGCoordinateModifier
66 <<
" are " << otherBndPlanes <<
endl;
71 const plane& pl = bndPlanes[i];
73 for(
label j=0;j<otherBndPlanes.
size();j+=2)
75 const plane& opl = otherBndPlanes[j];
80 if( dn < (1.0 - SMALL) )
84 "void coordinateModifier::"
85 "checkForValidInverse() const"
86 ) <<
"Bounding planes of the objects "
89 <<
" are not parallel. This combination of"
90 <<
" modifications cannot be reverted!"
98 bndPlanes[i+1].refPoint() -
104 otherBndPlanes[j].refPoint() -
110 otherBndPlanes[j+1].refPoint() -
114 # ifdef DEBUGCoordinateModifier
121 if( (t1 >= 0) && (t0 < tMax) )
125 "void coordinateModifier::"
126 "checkForValidInverse() const"
127 ) <<
"Scaling regions of objects "
130 <<
" are overlapping each other."
131 <<
" This combination of"
132 <<
" modifications cannot be reverted!"
148 modificationDict_(geomModDict),
159 const word& mName = modifiers[modI];
const vector & normal() const
Return plane normal.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
point modifiedPoint(const point &) const
calculate the modified coordinate of the point
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< coordinateModification > New(const word &name, const dictionary &dict)
Select constructed from dictionary.
dimensioned< scalar > mag(const dimensioned< Type > &)
coordinateModificationList modifiers_
list of coordinate modification objects
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
coordinateModifier(const dictionary &)
Construct from dictionary.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
coordinateModificationList backwardModifiers_
list of backward coordinate modifiers
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & modificationDict_
Reference to dictionary.
void checkForValidInverse() const
check if the comibination of modifiers has a valid inverse
errorManipArg< error, int > exit(error &err, const int errNo=1)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const point & refPoint() const
Return or return plane base point.
label size() const
Return the number of elements in the PtrList.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
wordList toc() const
Return the table of contents.
void size(const label)
Override size to be inconsistent with allocated storage.
point backwardModifiedPoint(const point &) const
calculate the displacement vector for the backward modification
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void printObjects() const
Print modification objects.