41 void Foam::axesRotation::calcTransform
45 const axisOrder& order
56 <<
"axis1, axis2 appear co-linear: " 57 << axis1 <<
", " << axis2 <<
endl 85 <<
"Unhandled axes specification" <<
endl 112 calcTransform(axis, dir, e3e1);
192 return (R_ & st & Rtr_);
235 Pout<<
"axesRotation::operator=(const dictionary&) : " 236 <<
"assign from " << dict <<
endl;
240 axisOrder order(e3e1);
254 else if (dict.
found(
"axis") || dict.
found(
"direction"))
259 dict.
lookup(
"axis") >> axis1;
260 dict.
lookup(
"direction") >> axis2;
265 <<
"not entry of the type (e1, e2) or (e2, e3) or (e3, e1) " 270 calcTransform(axis1, axis2, order);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#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.
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.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const vector e2() const
Return local Cartesian y-axis in global coordinates.
Vector< scalar > vector
A scalar version of the templated Vector.
virtual tmp< vectorField > invTransform(const vectorField &st) const
Inverse transform vectorField using transformation tensor field.
virtual tmp< symmTensorField > transformVector(const vectorField &st) const
Transform vectorField using transformation tensorField and return.
Macros for easy insertion into run-time selection tables.
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 vector e3() const
Return local Cartesian z-axis in global coordinates.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
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...
virtual tmp< vectorField > transform(const vectorField &st) const
Transform vectorField using transformation tensor field.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual const vector e1() const
Return local Cartesian x-axis in global coordinates.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void operator=(const dictionary &)
Assign from dictionary.
#define R(A, B, C, D, E, F, K, M)
virtual void write(Ostream &) const
Write.
prefixOSstream Pout(cout, "Pout")
dimensioned< scalar > mag(const dimensioned< Type > &)
axesRotation(const vector &axis, const vector &dir)
Construct from 2 axes.
A class for managing temporary objects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< tensorField > transformTensor(const tensorField &st) const
Transform tensor field using transformation tensorField.
Tensor< scalar > tensor
Tensor of scalars.
static const SphericalTensor I
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.