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 return store(resultName_, tcvf);
109 cannotFindObject<volVectorField>(fieldName_);
132 dict.lookupOrDefault<
Switch>(
"toCartesian", false)
136 origin_(
dict.lookup(
"origin")),
137 axis_(
dict.lookup(
"axis")),
138 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 >> &, 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 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 &)
dimensionSet normalised(const dimensionSet &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static scalar R(const scalar a, const scalar x)