This function object transforms a user-specified selection of fields from global Cartesian co-ordinates to a local co-ordinate system. The fields are run-time modifiable. More...
Public Member Functions | |
TypeName ("fieldCoordinateSystemTransform") | |
Runtime type information. More... | |
fieldCoordinateSystemTransform (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~fieldCoordinateSystemTransform () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the fieldCoordinateSystemTransform object. More... | |
virtual void | read (const dictionary &) |
Read the input data. More... | |
virtual void | execute () |
Execute, currently does nothing. More... | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. More... | |
virtual void | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual void | write () |
Write. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for changes of mesh. More... | |
Protected Member Functions | |
fieldCoordinateSystemTransform (const fieldCoordinateSystemTransform &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const fieldCoordinateSystemTransform &) |
Disallow default bitwise assignment. More... | |
template<class Type > | |
void | transform (const word &fieldName) const |
template<class Type > | |
void | transformField (const Type &field) const |
Protected Attributes | |
word | name_ |
Name. More... | |
const objectRegistry & | obr_ |
bool | active_ |
on/off switch More... | |
wordList | fieldSet_ |
Fields to transform. More... | |
coordinateSystem | coordSys_ |
Co-ordinate system to transform to. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
This function object transforms a user-specified selection of fields from global Cartesian co-ordinates to a local co-ordinate system. The fields are run-time modifiable.
Example of function object specification:
fieldCoordinateSystemTransform1 { type fieldCoordinateSystemTransform; functionObjectLibs ("libfieldFunctionObjects.so"); ... fields ( U UMean UPrime2Mean ); origin (0.001 0 0); coordinateRotation { type axesRotation; e1 (1 0.15 0); e3 (0 0 -1); } }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: fieldCoordinateSystemTransform | yes | |
fields | list of fields to be transformed | yes | |
origin | origin of local co-ordinate system | yes | |
coordinateRotation | orientation of local co-ordinate system | yes | |
log | Log to standard output | no | yes |
Definition at line 133 of file fieldCoordinateSystemTransform.H.
|
protected |
Disallow default bitwise copy construct.
fieldCoordinateSystemTransform | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 40 of file fieldCoordinateSystemTransform.C.
References dict, Foam::endl(), Foam::Info, Foam::nl, Foam::read(), Foam::type(), and WarningInFunction.
|
virtual |
Destructor.
Definition at line 76 of file fieldCoordinateSystemTransform.C.
|
protected |
Disallow default bitwise assignment.
|
protected |
Definition at line 78 of file fieldCoordinateSystemTransformTemplates.C.
References Foam::endl(), IOobject::headerClassName(), IOobject::headerOk(), Foam::Info, and Foam::type().
|
protected |
Definition at line 36 of file fieldCoordinateSystemTransformTemplates.C.
References Foam::endl(), Foam::Info, Foam::nl, R, Foam::transform(), and Ostream::write().
TypeName | ( | "fieldCoordinateSystemTransform" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the fieldCoordinateSystemTransform object.
Definition at line 198 of file fieldCoordinateSystemTransform.H.
References fieldCoordinateSystemTransform::name_.
|
virtual |
Read the input data.
Definition at line 82 of file fieldCoordinateSystemTransform.C.
References dict, and dictionary::lookup().
|
virtual |
Execute, currently does nothing.
Definition at line 92 of file fieldCoordinateSystemTransform.C.
References forAll, Foam::Info, Foam::nl, and Foam::type().
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 111 of file fieldCoordinateSystemTransform.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 117 of file fieldCoordinateSystemTransform.C.
|
virtual |
Write.
Definition at line 123 of file fieldCoordinateSystemTransform.C.
References Foam::endl(), forAll, Foam::Info, IOobject::name(), Foam::nl, Foam::type(), and regIOobject::write().
|
inlinevirtual |
Update for changes of mesh.
Definition at line 219 of file fieldCoordinateSystemTransform.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 223 of file fieldCoordinateSystemTransform.H.
|
protected |
Name.
Definition at line 140 of file fieldCoordinateSystemTransform.H.
Referenced by fieldCoordinateSystemTransform::name().
|
protected |
Definition at line 142 of file fieldCoordinateSystemTransform.H.
|
protected |
on/off switch
Definition at line 145 of file fieldCoordinateSystemTransform.H.
|
protected |
Fields to transform.
Definition at line 148 of file fieldCoordinateSystemTransform.H.
|
protected |
Co-ordinate system to transform to.
Definition at line 151 of file fieldCoordinateSystemTransform.H.
|
protected |
Switch to send output to Info as well as to file.
Definition at line 154 of file fieldCoordinateSystemTransform.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.