Public Member Functions | |
TypeName ("box") | |
Runtime type information. More... | |
boxScaling () | |
Null construct. More... | |
boxScaling (const word &name, const point ¢re, const scalar lengthX, const scalar lengthY, const scalar lengthZ, const scalar scaleX=1.0, const scalar scaleY=1.0, const scalar scaleZ=1.0) | |
Construct from name, cell size, centre and sizes and scaling factors. More... | |
boxScaling (const word &name, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< coordinateModification > | clone (const boxScaling &bs) const |
Construct and return a clone. More... | |
virtual point | origin () const |
return the centre of the box More... | |
virtual void | translateAndModifyObject (const vector &) |
virtual vector | displacement (const point &) const |
calculate the displacement vector for box scaling More... | |
virtual vector | backwardDisplacement (const point &) const |
calculate the displacement vector for box scaling 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 Member Functions | |
void | calculateBndBox () |
calculate bounding box points More... | |
Private Attributes | |
point | centre_ |
centre of the box More... | |
vector | lengthVec_ |
length of box sides More... | |
vector | scaleVec_ |
scaling factors in all directions More... | |
point | pMin_ |
min point More... | |
point | pMax_ |
max point More... | |
Friends | |
Ostream & | operator<< (Ostream &, const boxScaling &) |
Additional Inherited Members | |
![]() | |
static autoPtr< coordinateModification > | New (const word &name, const dictionary &dict) |
Select constructed from dictionary. More... | |
Definition at line 50 of file boxScaling.H.
boxScaling | ( | ) |
Null construct.
Definition at line 49 of file boxScaling.C.
References boxScaling::calculateBndBox().
boxScaling | ( | const word & | name, |
const point & | centre, | ||
const scalar | lengthX, | ||
const scalar | lengthY, | ||
const scalar | lengthZ, | ||
const scalar | scaleX = 1.0 , |
||
const scalar | scaleY = 1.0 , |
||
const scalar | scaleZ = 1.0 |
||
) |
Construct from name, cell size, centre and sizes and scaling factors.
Definition at line 62 of file boxScaling.C.
References Foam::name().
boxScaling | ( | const word & | name, |
const dictionary & | dict | ||
) |
|
private |
calculate bounding box points
Definition at line 41 of file boxScaling.C.
References boxScaling::centre_, boxScaling::lengthVec_, boxScaling::pMax_, and boxScaling::pMin_.
Referenced by boxScaling::boxScaling(), boxScaling::operator=(), and boxScaling::translateAndModifyObject().
TypeName | ( | "box" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 103 of file boxScaling.H.
References boxScaling::centre_, boxScaling::lengthVec_, coordinateModification::name(), boxScaling::scaleVec_, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
virtual |
return the centre of the box
Implements coordinateModification.
Definition at line 97 of file boxScaling.C.
References boxScaling::centre_.
|
virtual |
translate the object to the modified coordinates this is needed for backward transformation
Implements coordinateModification.
Definition at line 102 of file boxScaling.C.
References boxScaling::calculateBndBox(), boxScaling::centre_, boxScaling::lengthVec_, VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, and boxScaling::scaleVec_.
calculate the displacement vector for box scaling
Implements coordinateModification.
Definition at line 112 of file boxScaling.C.
References boxScaling::lengthVec_, Foam::max(), Foam::min(), VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, p, boxScaling::pMin_, and boxScaling::scaleVec_.
calculate the displacement vector for box scaling
Implements coordinateModification.
Definition at line 129 of file boxScaling.C.
References boxScaling::lengthVec_, Foam::max(), Foam::min(), VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, p, boxScaling::pMin_, and boxScaling::scaleVec_.
|
virtual |
can this modification object be combined with other ones
Implements coordinateModification.
Definition at line 147 of file boxScaling.C.
return that "bounding planes" of the scaling region for the given object
Implements coordinateModification.
Definition at line 152 of file boxScaling.C.
References Foam::mag(), boxScaling::pMax_, boxScaling::pMin_, boxScaling::scaleVec_, PtrList::set(), PtrList::setSize(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
virtual |
Return as dictionary of entries.
Implements coordinateModification.
Definition at line 179 of file boxScaling.C.
References dictionary::add(), boxScaling::centre_, boxScaling::lengthVec_, boxScaling::scaleVec_, Foam::type(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by boxScaling::operator=().
|
virtual |
Write.
Implements coordinateModification.
Definition at line 197 of file boxScaling.C.
References boxScaling::centre_, Foam::endl(), boxScaling::lengthVec_, boxScaling::scaleVec_, Foam::type(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by boxScaling::operator<<().
|
virtual |
Write dictionary.
Implements coordinateModification.
Definition at line 210 of file boxScaling.C.
References token::BEGIN_BLOCK, boxScaling::centre_, Foam::decrIndent(), token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::incrIndent(), Foam::indent(), boxScaling::lengthVec_, Foam::nl, boxScaling::scaleVec_, Foam::type(), Ostream::writeKeyword(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
virtual |
assign from dictionary
Implements coordinateModification.
Definition at line 237 of file boxScaling.C.
References boxScaling::calculateBndBox(), boxScaling::centre_, boxScaling::dict(), Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), boxScaling::lengthVec_, dictionary::lookup(), Foam::readScalar(), boxScaling::scaleVec_, dictionary::subDict(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), Vector< Cmpt >::z(), and Vector< scalar >::zero.
Definition at line 338 of file boxScaling.C.
References coordinateModification::name(), Foam::nl, and boxScaling::write().
|
friend |
Definition at line 345 of file boxScaling.C.
|
private |
centre of the box
Definition at line 56 of file boxScaling.H.
Referenced by boxScaling::calculateBndBox(), boxScaling::clone(), boxScaling::dict(), boxScaling::operator=(), boxScaling::origin(), boxScaling::translateAndModifyObject(), boxScaling::write(), and boxScaling::writeDict().
|
private |
length of box sides
Definition at line 59 of file boxScaling.H.
Referenced by boxScaling::backwardDisplacement(), boxScaling::calculateBndBox(), boxScaling::clone(), boxScaling::dict(), boxScaling::displacement(), boxScaling::operator=(), boxScaling::translateAndModifyObject(), boxScaling::write(), and boxScaling::writeDict().
|
private |
scaling factors in all directions
Definition at line 62 of file boxScaling.H.
Referenced by boxScaling::backwardDisplacement(), boxScaling::boundingPlanes(), boxScaling::clone(), boxScaling::dict(), boxScaling::displacement(), boxScaling::operator=(), boxScaling::translateAndModifyObject(), boxScaling::write(), and boxScaling::writeDict().
|
private |
min point
Definition at line 65 of file boxScaling.H.
Referenced by boxScaling::backwardDisplacement(), boxScaling::boundingPlanes(), boxScaling::calculateBndBox(), and boxScaling::displacement().
|
private |
max point
Definition at line 68 of file boxScaling.H.
Referenced by boxScaling::boundingPlanes(), and boxScaling::calculateBndBox().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.