Helper class to wrap coordinate system and component-wise scaling. More...
Public Member Functions | |
coordinateScaling () | |
Default construct. More... | |
coordinateScaling (const objectRegistry &obr, const dictionary &dict) | |
Construct from registry and dictionary. More... | |
coordinateScaling (const coordinateScaling &rhs) | |
Construct copy. More... | |
virtual | ~coordinateScaling ()=default |
Destructor. More... | |
bool | active () const noexcept |
Has any scaling or coordinate transformation. More... | |
const autoPtr< coordinateSystem > & | coordSys () const |
Access to optional coordinate system. More... | |
tmp< pointField > | localPosition (const pointField &globalPos) const |
Convert to local coordinates, pass-through if no coordinate system is active. More... | |
virtual tmp< Field< Type > > | transform (const pointField &pos, const Field< Type > &local) const |
Evaluate. More... | |
virtual void | writeEntry (Ostream &os) const |
Write dictionary entry. More... | |
template<> | |
tmp< Field< label > > | transform (const pointField &pos, const Field< label > &local) const |
template<> | |
Foam::tmp< Foam::Field< Foam::label > > | transform (const pointField &pos, const Field< label > &local) const |
Helper class to wrap coordinate system and component-wise scaling.
Definition at line 51 of file coordinateScaling.H.
Default construct.
Definition at line 24 of file coordinateScaling.C.
coordinateScaling | ( | const objectRegistry & | obr, |
const dictionary & | dict | ||
) |
Construct from registry and dictionary.
Definition at line 34 of file coordinateScaling.C.
coordinateScaling | ( | const coordinateScaling< Type > & | rhs | ) |
Construct copy.
Definition at line 59 of file coordinateScaling.C.
|
virtualdefault |
Destructor.
|
inlinenoexcept |
Has any scaling or coordinate transformation.
Definition at line 113 of file coordinateScaling.H.
|
inline |
Access to optional coordinate system.
Definition at line 121 of file coordinateScaling.H.
Foam::tmp< Foam::pointField > localPosition | ( | const pointField & | globalPos | ) | const |
Convert to local coordinates, pass-through if no coordinate system is active.
Definition at line 71 of file coordinateScaling.C.
|
virtual |
Evaluate.
Definition at line 86 of file coordinateScaling.C.
|
virtual |
Write dictionary entry.
Definition at line 131 of file coordinateScaling.C.
tmp< Field< label > > transform | ( | const pointField & | pos, |
const Field< label > & | local | ||
) | const |
Foam::tmp< Foam::Field< Foam::label > > transform | ( | const pointField & | pos, |
const Field< label > & | local | ||
) | const |
Definition at line 28 of file coordinateScalings.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.