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())
215 "tmp<vectorField> cylindrical::transform(const vectorField&)" 217 <<
"vectorField st has different size to tensorField " 221 return (Rptr_() & vf);
229 "vector cylindrical::transform(const vector&) const" 241 return (Rptr_()[cmptI] & v);
250 return (Rptr_().
T() & vf);
258 "vector cylindrical::invTransform(const vector&) const" 270 return (Rptr_()[cmptI].
T() & v);
279 if (Rptr_->size() != tf.
size())
283 "tmp<tensorField> cylindrical::transformTensor" 288 <<
"tensorField st has different size to tensorField Tr" 291 return (Rptr_() & tf & Rptr_().
T());
302 "tensor cylindrical::transformTensor(const tensor&) const" 319 "tmp<tensorField> cylindrical::transformTensor" 321 "const tensorField&, " 325 <<
"tensorField tf has different size to tensorField Tr" 335 const label cellI = cellMap[i];
336 t[i] = R[cellI] & tf[i] &
Rtr[cellI];
348 if (Rptr_->size() != vf.
size())
350 FatalErrorIn(
"cylindrical::transformVector(const vectorField&)")
351 <<
"tensorField vf has different size to tensorField Tr" 374 "tensor cylindrical::transformVector(const vector&) const" bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual tmp< symmTensorField > transformVector(const vectorField &vf) const
Transform vectorField using transformation tensorField and return.
dimensioned< scalar > mag(const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual const vector e3() const
Return local Cartesian z-axis.
Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 components...
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual const tensor & R() const
Return local-to-global transformation tensor.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual const tensor & Rtr() const
Return global-to-local transformation tensor.
const vectorField & cellCentres() const
virtual tmp< vectorField > invTransform(const vectorField &vf) const
Inverse transform vectorField using transformation tensor field.
static const SymmTensor zero
A list of keyword definitions, which are a keyword followed by any number of values (e...
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
virtual void clear()
Reset rotation to an identity rotation.
A coordinate rotation specified using global axis.
Field< vector > vectorField
Specialisation of Field<T> for vector.
cylindrical(const dictionary &, const objectRegistry &)
Construct from dictionary and objectRegistry.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
virtual tmp< vectorField > transform(const vectorField &tf) const
Transform vectorField using transformation tensor field.
Macros for easy insertion into run-time selection tables.
errorManip< error > abort(error &err)
virtual tmp< tensorField > transformTensor(const tensorField &tf) const
Transform tensor field using transformation tensorField.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
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 ))
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
Mesh consisting of general polyhedral cells.
symmTensor transformPrincipal(const tensor &, const vector &) const
Transform principal.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Registry of regIOobjects.
virtual const tensor & R() const
Return local-to-global transformation tensor.
virtual void write(Ostream &) const
Write.
virtual void updateCells(const polyMesh &mesh, const labelList &cells)
Update the rotation for a list of cells.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Vector< scalar > vector
A scalar version of the templated Vector.
const dictionary & parent() const
Return the parent dictionary.
#define notImplemented(functionName)
Issue a FatalErrorIn for a function not currently implemented.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
A class for managing temporary objects.
defineTypeNameAndDebug(combustionModel, 0)