46 void Foam::axesRotation::calcTransform
50 const axisOrder& order
61 <<
"axis1, axis2 appear co-linear: " 62 << axis1 <<
", " << axis2 <<
endl 90 <<
"Unhandled axes specification" <<
endl 124 calcTransform(axis, dir, e3e1);
165 return NullObjectRef<tensorField>();
214 return (R_ & st & Rtr_);
260 Pout<<
"axesRotation::operator=(const dictionary&) : " 261 <<
"assign from " << dict <<
endl;
265 axisOrder order(e3e1);
279 else if (dict.
found(
"axis") || dict.
found(
"direction"))
284 dict.
lookup(
"axis") >> axis1;
285 dict.
lookup(
"direction") >> axis2;
290 <<
"not entry of the type (e1, e2) or (e2, e3) or (e3, e1) " 295 calcTransform(axis1, axis2, order);
axesRotation()
Construct null.
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.
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.
virtual const tensor & R() const
Return local-to-global transformation tensor.
Macros for easy insertion into run-time selection tables.
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
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))
static const Identity< scalar > I
const dimensionedScalar & b
Wien displacement law constant: default SI units: [m K].
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.
virtual const tensorField & Tr() const
Return transformation tensor field.
errorManip< error > abort(error &err)
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.
virtual void write(Ostream &) const
Write.
prefixOSstream Pout(cout, "Pout")
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
Registry of regIOobjects.
#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.