34 namespace functionObjects
53 dir /=
mag(dir) + vSmall;
56 const vector r = dir - (dir & axis)*axis;
58 return tensor(r, axis^r, axis);
62 void Foam::functionObjects::cylindrical::transform
72 vf[i] = this->
R(points[i]).T() & vf[i];
79 vf[i] = this->
R(points[i]) & vf[i];
85 bool Foam::functionObjects::cylindrical::calc()
87 if (foundObject<volVectorField>(fieldName_))
89 const volVectorField& vf = lookupObject<volVectorField>(fieldName_);
101 cvf.boundaryFieldRef()[
patchi],
106 return store(resultName_, tcvf);
110 cannotFindObject<volVectorField>(fieldName_);
133 dict.lookupOrDefault<
Switch>(
"toCartesian", false)
137 origin_(
dict.lookup(
"origin")),
138 axis_(
dict.lookup(
"axis")),
139 toCartesian_(
dict.lookupOrDefault<
Switch>(
"toCartesian", false))
static const Foam::dimensionedScalar C("C", Foam::dimTemperature, 234.5)
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &)
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 keyword definitions, which are a keyword followed by any number of values (e....
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)
VolField< vector > volVectorField
Tensor< scalar > tensor
Tensor of scalars.
word name(const bool)
Return a word representation of a bool.
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionSet transform(const dimensionSet &)
dimensioned< scalar > mag(const dimensioned< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static scalar R(const scalar a, const scalar x)