Public Member Functions | |
TypeName ("plane") | |
Runtime type information. More... | |
planeScaling () | |
Null construct. More... | |
planeScaling (const word &name, const point &original, const vector &normal, const scalar scalingDistance, const scalar scalingFactor) | |
Construct from name, origin, normal, translation distance and scale. More... | |
planeScaling (const word &name, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< coordinateModification > | clone (const planeScaling &pt) const |
Construct and return a clone. More... | |
virtual point | origin () const |
return the origin of the plane More... | |
virtual void | translateAndModifyObject (const vector &) |
virtual vector | displacement (const point &) const |
calculate the displacement vector for plane translation More... | |
virtual vector | backwardDisplacement (const point &) const |
calculate the displacement vector for plane translation More... | |
virtual bool | combiningPossible () const |
can this modification object be combined with other ones More... | |
virtual void | boundingPlanes (PtrList< plane > &) const |
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 ("coordinateModification") | |
coordinateModification () | |
Null construct. More... | |
coordinateModification (const word &name, const dictionary &) | |
Construct from dictionary. More... | |
declareRunTimeSelectionTable (autoPtr, coordinateModification, dictionary,(const word &name, const dictionary &dict),(name, dict)) | |
virtual | ~coordinateModification () |
const word & | name () const |
Return name. More... | |
void | setName (const word &name) |
set the name More... | |
Private Attributes | |
point | origin_ |
origin of the plane More... | |
vector | normal_ |
normal vector More... | |
scalar | scalingDistance_ |
scaling distance More... | |
scalar | scalingFactor_ |
scaling factor More... | |
Friends | |
Ostream & | operator<< (Ostream &, const planeScaling &) |
Additional Inherited Members | |
![]() | |
static autoPtr< coordinateModification > | New (const word &name, const dictionary &dict) |
Select constructed from dictionary. More... | |
Definition at line 49 of file planeScaling.H.
planeScaling | ( | ) |
Null construct.
Definition at line 46 of file planeScaling.C.
planeScaling | ( | const word & | name, |
const point & | original, | ||
const vector & | normal, | ||
const scalar | scalingDistance, | ||
const scalar | scalingFactor | ||
) |
Construct from name, origin, normal, translation distance and scale.
Definition at line 56 of file planeScaling.C.
References Foam::endl(), Foam::name(), and Foam::Warning.
planeScaling | ( | const word & | name, |
const dictionary & | dict | ||
) |
TypeName | ( | "plane" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 92 of file planeScaling.H.
References coordinateModification::name(), planeScaling::normal_, planeScaling::origin_, planeScaling::scalingDistance_, and planeScaling::scalingFactor_.
|
virtual |
return the origin of the plane
Implements coordinateModification.
Definition at line 94 of file planeScaling.C.
References planeScaling::origin_.
|
virtual |
translate the object to the modified coordinates this is needed for backward transformation
Implements coordinateModification.
Definition at line 99 of file planeScaling.C.
References planeScaling::origin_, planeScaling::scalingDistance_, and planeScaling::scalingFactor_.
calculate the displacement vector for plane translation
Implements coordinateModification.
Definition at line 106 of file planeScaling.C.
References Foam::max(), Foam::min(), planeScaling::normal_, planeScaling::origin_, p, planeScaling::scalingDistance_, and planeScaling::scalingFactor_.
calculate the displacement vector for plane translation
Implements coordinateModification.
Definition at line 120 of file planeScaling.C.
References Foam::max(), Foam::min(), planeScaling::normal_, planeScaling::origin_, p, planeScaling::scalingDistance_, and planeScaling::scalingFactor_.
|
virtual |
can this modification object be combined with other ones
Implements coordinateModification.
Definition at line 134 of file planeScaling.C.
return that "bounding planes" of the scaling region for the given object
Implements coordinateModification.
Definition at line 139 of file planeScaling.C.
References PtrList::clear(), Foam::mag(), planeScaling::normal_, planeScaling::origin_, planeScaling::scalingDistance_, planeScaling::scalingFactor_, PtrList::set(), and PtrList::setSize().
|
virtual |
Return as dictionary of entries.
Implements coordinateModification.
Definition at line 156 of file planeScaling.C.
References dictionary::add(), planeScaling::normal_, planeScaling::origin_, planeScaling::scalingDistance_, planeScaling::scalingFactor_, and Foam::type().
Referenced by planeScaling::operator=().
|
virtual |
Write.
Implements coordinateModification.
Definition at line 170 of file planeScaling.C.
References planeScaling::normal_, planeScaling::origin_, planeScaling::scalingDistance_, planeScaling::scalingFactor_, and Foam::type().
Referenced by planeScaling::operator<<().
|
virtual |
Write dictionary.
Implements coordinateModification.
Definition at line 179 of file planeScaling.C.
References token::BEGIN_BLOCK, Foam::decrIndent(), token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::incrIndent(), Foam::indent(), Foam::nl, planeScaling::normal_, planeScaling::origin_, planeScaling::scalingDistance_, planeScaling::scalingFactor_, Foam::type(), and Ostream::writeKeyword().
|
virtual |
assign from dictionary
Implements coordinateModification.
Definition at line 205 of file planeScaling.C.
References planeScaling::dict(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), dictionary::lookup(), planeScaling::normal_, planeScaling::origin_, Foam::readScalar(), planeScaling::scalingDistance_, planeScaling::scalingFactor_, dictionary::subDict(), WarningIn, and Vector< scalar >::zero.
Definition at line 278 of file planeScaling.C.
References coordinateModification::name(), Foam::nl, and planeScaling::write().
|
friend |
Definition at line 285 of file planeScaling.C.
|
private |
origin of the plane
Definition at line 55 of file planeScaling.H.
Referenced by planeScaling::backwardDisplacement(), planeScaling::boundingPlanes(), planeScaling::clone(), planeScaling::dict(), planeScaling::displacement(), planeScaling::operator=(), planeScaling::origin(), planeScaling::translateAndModifyObject(), planeScaling::write(), and planeScaling::writeDict().
|
private |
normal vector
Definition at line 58 of file planeScaling.H.
Referenced by planeScaling::backwardDisplacement(), planeScaling::boundingPlanes(), planeScaling::clone(), planeScaling::dict(), planeScaling::displacement(), planeScaling::operator=(), planeScaling::write(), and planeScaling::writeDict().
|
private |
scaling distance
Definition at line 61 of file planeScaling.H.
Referenced by planeScaling::backwardDisplacement(), planeScaling::boundingPlanes(), planeScaling::clone(), planeScaling::dict(), planeScaling::displacement(), planeScaling::operator=(), planeScaling::translateAndModifyObject(), planeScaling::write(), and planeScaling::writeDict().
|
private |
scaling factor
Definition at line 64 of file planeScaling.H.
Referenced by planeScaling::backwardDisplacement(), planeScaling::boundingPlanes(), planeScaling::clone(), planeScaling::dict(), planeScaling::displacement(), planeScaling::operator=(), planeScaling::translateAndModifyObject(), planeScaling::write(), and planeScaling::writeDict().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.