34 namespace functionObjects
55 const vector r = dir - (dir & axis)*axis;
61 void Foam::functionObjects::cylindrical::transform
71 vf[i] = this->
R(points[i]).T() & vf[i];
78 vf[i] = this->
R(points[i]) & vf[i];
84 bool Foam::functionObjects::cylindrical::calc()
86 if (foundObject<volVectorField>(fieldName_))
88 const volVectorField& vf = lookupObject<volVectorField>(fieldName_);
100 cvf.boundaryFieldRef()[
patchi],
105 store(resultName_, tcvf);
111 cannotFindObject<volVectorField>(fieldName_);
134 dict.lookupOrDefault<
Switch>(
"toCartesian", false)
138 origin_(
dict.lookup(
"origin")),
139 axis_(
dict.lookup(
"axis")),
140 toCartesian_(
dict.lookupOrDefault<
Switch>(
"toCartesian", false))
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
Transforms the specified velocity field into a cylindrical polar coordinate system or back to Cartesi...
virtual ~cylindrical()
Destructor.
cylindrical(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
static const coefficient C("C", dimTemperature, 234.5)
VolField< vector > volVectorField
Tensor< scalar > tensor
Tensor of scalars.
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionSet transform(const dimensionSet &)
dimensionSet normalised(const dimensionSet &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static scalar R(const scalar a, const scalar x)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.