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);
193 return (R_ & t & Rtr_);
207 fld[i] = transformVectorDiagTensor(R_, vf[i]);
219 return transformVectorDiagTensor(R_, v);
237 Pout<<
"axesRotation::operator=(const dictionary&) : "
242 axisOrder
order(e3e1);
267 <<
"not entry of the type (e1, e2) or (e2, e3) or (e3, e1) "
272 calcTransform(axis1, axis2,
order);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component,...
Tensor< Cmpt > T() const
Return transpose.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A coordinate rotation specified using global axis.
virtual void write(Ostream &) const
Write.
axesRotation(const vector &axis, const vector &dir)
Construct from 2 axes.
virtual vector transform(const vector &v) const
Transform vector using transformation tensor.
virtual symmTensor transformDiagTensor(const vector &p, const vector &v) const
Transform diagTensor masquerading as a vector using transformation.
void operator=(const dictionary &)
Assign from dictionary.
virtual vector invTransform(const vector &v) const
Inverse transform vector using transformation tensor.
Abstract base class for coordinate rotation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar c
Speed of light in a vacuum.
errorManipArg< error, int > exit(error &err, const int errNo=1)
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Tensor< scalar > tensor
Tensor of scalars.
Ostream & endl(Ostream &os)
Add newline and flush stream.
int order(const scalar s)
errorManip< error > abort(error &err)
static const Identity< scalar > I
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensioned< scalar > mag(const dimensioned< Type > &)
defineTypeNameAndDebug(combustionModel, 0)
static scalar R(const scalar a, const scalar x)
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
prefixOSstream Pout(cout, "Pout")
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)