46 dir /=
mag(dir) + vSmall;
49 const vector r = dir - (dir & axis)*axis;
58 return axesRotation(axis, dir).R();
61 return tensor(r, axis^r, axis);
65 void Foam::cylindrical::init(
const UList<vector>& points)
72 R[i] = this->
R(points[i]);
99 dict.parent().
found(
"origin")
100 ? dict.parent().
lookup(
"origin")
103 axis_(dict.lookupBackwardsCompatible<
vector>({
"axis",
"e3"}))
125 Rptr_().setSize(points.
size());
136 R[i] = this->
R(points[i]);
146 if (Rptr_->size() != vf.
size())
149 <<
"vectorField st has different size to tensorField " 153 return (Rptr_() & vf);
170 return (Rptr_()[cmptI] & v);
179 if (Rptr_->size() != vf.
size())
182 <<
"vectorField st has different size to tensorField " 186 return (Rptr_().
T() & vf);
203 return (Rptr_()[cmptI].
T() & v);
212 if (Rptr_->size() != tf.
size())
215 <<
"tensorField st has different size to tensorField Tr" 218 return (Rptr_() & tf & Rptr_().
T());
237 if (Rptr_->size() != vf.
size())
240 <<
"tensorField vf has different size to tensorField Tr"
#define forAll(list, i)
Loop across all elements in list.
symmTensor transformPrincipal(const tensor &, const vector &) const
Transform principal.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
virtual vector transform(const vector &v) const
Transform vector using transformation tensor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updatePoints(const UList< vector > &points)
Update the rotation for a list of points.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
Vector< scalar > vector
A scalar version of the templated Vector.
Macros for easy insertion into run-time selection tables.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual const tensor & R() const
Return local-to-global transformation tensor.
cylindrical(const vector &axis, const point &origin, const UList< vector > &points)
Construct from components for list of points.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual void write(Ostream &) const
Write.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual const vector axis() const
Return local Cartesian z-axis in global coordinates.
Vector< Cmpt > perpendicular(const Vector< Cmpt > &v)
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
#define R(A, B, C, D, E, F, K, M)
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual vector invTransform(const vector &v) const
Inverse transform vector using transformation tensor.
A class for managing temporary objects.
label size() const
Return the number of elements in the UList.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual symmTensor transformVector(const vector &v) const
Transform vector using transformation tensor and return.
virtual tensor transformTensor(const tensor &t) const
Transform tensor using transformation tensorField.
Tensor< scalar > tensor
Tensor of scalars.