54 void Foam::cylindrical::init
56 const objectRegistry& obr,
57 const List<label>& cells
60 const polyMesh& mesh = refCast<const polyMesh>(obr);
70 label celli = cells[i];
71 vector dir = cc[celli] - origin_;
72 dir /=
mag(dir) + VSMALL;
74 R[i] = axesRotation(e3_, dir).R();
84 vector dir = cc[celli] - origin_;
85 dir /=
mag(dir) + VSMALL;
87 R[celli] = axesRotation(e3_, dir).R();
156 <<
" cylindrical can not be constructed from dictionary " 157 <<
" use the construtctor : " 159 " const dictionary&, const objectRegistry&" 197 label celli = cells[i];
198 vector dir = cc[celli] - origin_;
199 dir /=
mag(dir) + VSMALL;
211 if (Rptr_->size() != vf.
size())
214 <<
"vectorField st has different size to tensorField " 218 return (Rptr_() & vf);
235 return (Rptr_()[cmptI] & v);
244 return (Rptr_().
T() & vf);
261 return (Rptr_()[cmptI].
T() & v);
270 if (Rptr_->size() != tf.
size())
273 <<
"tensorField st has different size to tensorField Tr" 276 return (Rptr_() & tf & Rptr_().
T());
300 <<
"tensorField tf has different size to tensorField Tr" 310 const label celli = cellMap[i];
311 t[i] = R[celli] & tf[i] &
Rtr[celli];
323 if (Rptr_->size() != vf.
size())
326 <<
"tensorField vf has different size to tensorField Tr"
virtual const tensor & R() const
Return local-to-global transformation tensor.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual const vector e3() const
Return local Cartesian z-axis in global coordinates.
Vector< scalar > vector
A scalar version of the templated Vector.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
virtual tmp< vectorField > transform(const vectorField &tf) const
Transform vectorField using transformation tensor field.
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 const tensor & Rtr() const
Return global-to-local transformation tensor.
cylindrical(const dictionary &, const objectRegistry &)
Construct from dictionary and objectRegistry.
virtual tmp< vectorField > invTransform(const vectorField &vf) const
Inverse transform vectorField using transformation tensor field.
virtual tmp< tensorField > transformTensor(const tensorField &tf) const
Transform tensor field using transformation tensorField.
const vectorField & cellCentres() const
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual const tensor & R() const
Return local-to-global transformation tensor.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
symmTensor transformPrincipal(const tensor &, const vector &) const
Transform principal.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
virtual void updateCells(const polyMesh &mesh, const labelList &cells)
Update the rotation for a list of cells.
virtual void clear()
Reset rotation to an identity rotation.
dimensioned< scalar > mag(const dimensioned< Type > &)
const dictionary & parent() const
Return the parent dictionary.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
static const Vector< scalar > zero
A coordinate rotation specified using global axis.
A class for managing temporary objects.
Registry of regIOobjects.
T & ref() const
Return non-const reference or generate a fatal error.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< symmTensorField > transformVector(const vectorField &vf) const
Transform vectorField using transformation tensorField and return.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.