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_);
137 origin_(dict.
lookup(
"origin")),
138 axis_(dict.
lookup(
"axis")),
virtual ~cylindrical()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< vector >> &)
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, yes/no, y/n, t/f, or none/any.
Vector< scalar > vector
A scalar version of the templated Vector.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
cylindrical(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
A class for handling words, derived from string.
defineTypeNameAndDebug(Qdot, 0)
Internal & ref()
Return a reference to the dimensioned internal field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define R(A, B, C, D, E, F, K, M)
dimensioned< scalar > mag(const dimensioned< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Templated 3D tensor derived from MatrixSpace adding construction from 9 components, element access using xx(), xy() etc. member functions and the inner-product (dot-product) and outer-product of two Vectors (tensor-product) operators.
Tensor< scalar > tensor
Tensor of scalars.
dimensionSet transform(const dimensionSet &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.