Go to the documentation of this file.
36 namespace functionObjects
43 fieldCoordinateSystemTransform,
70 <<
" Applying " << (csysPtr_->uniform() ?
"" :
"non-")
71 <<
"uniform transformation from global Cartesian to local "
72 << *csysPtr_ <<
nl <<
endl;
84 return fieldName +
":Transformed";
105 mesh_.objectRegistry::instance(),
106 mesh_.objectRegistry::db(),
121 BoundaryType& bf =
const_cast<BoundaryType&
>(rot.boundaryField());
137 typedef volTensorField::Boundary BoundaryType;
139 if (!rotTensorVolume_.valid())
141 tensorField rotations(csysPtr_->R(mesh_.cellCentres()));
143 rotTensorVolume_.reset
150 mesh_.objectRegistry::instance(),
151 mesh_.objectRegistry::db(),
163 auto& rot = *rotTensorVolume_;
166 BoundaryType& bf =
const_cast<BoundaryType&
>(rot.boundaryField());
170 bf[patchi] = csysPtr_->R(bf[patchi].
patch().
patch().faceCentres());
174 return *rotTensorVolume_;
185 fieldSet_.read(
dict);
195 fieldSet_.updateSelection();
197 for (
const word& fieldName : fieldSet_.selectionNames())
199 transform<scalar>(fieldName);
200 transform<vector>(fieldName);
201 transform<sphericalTensor>(fieldName);
202 transform<symmTensor>(fieldName);
203 transform<tensor>(fieldName);
207 rotTensorSurface_.clear();
208 rotTensorVolume_.clear();
216 for (
const word& fieldName : fieldSet_.selectionNames())
218 writeObject(transformFieldName(fieldName));
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
addToRunTimeSelectionTable(functionObject, add, dictionary)
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
const std::string patch
OpenFOAM patch number as a std::string.
const vectorField & faceCentres() const
const fvMesh & mesh_
Reference to the fvMesh.
Generic GeometricField class.