33 Foam::tensor Foam::molecule::rotationTensorX(scalar phi)
const 44 Foam::tensor Foam::molecule::rotationTensorY(scalar phi)
const 55 Foam::tensor Foam::molecule::rotationTensorZ(scalar phi)
const 72 const scalar trackTime
85 v_ += 0.5*trackTime*a_;
87 pi_ += 0.5*trackTime*tau_;
105 if (!constProps.pointMolecule())
111 if (!constProps.linearMolecule())
130 if (!constProps.linearMolecule())
145 scalar m = constProps.mass();
157 tau_ += (constProps.siteReferencePositions()[
s] ^ (Q_.
T() &
f));
160 v_ += 0.5*trackTime*a_;
162 pi_ += 0.5*trackTime*tau_;
164 if (constProps.pointMolecule())
171 if (constProps.linearMolecule())
181 << td.
part() <<
" is an invalid part of the integration method." 193 Q_ = transform.
T() & Q_;
201 tau_ = Q_.
T() & transform.
transform(Q_ & tau_);
233 const scalar vn = v_ &
nw;
#define forAll(list, i)
Loop across all elements in list.
Class to hold molecule constant properties.
void setSitePositions(const constantProperties &constProps)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Tensor< Cmpt > T() const
Return transpose.
scalar trackToAndHitFace(const vector &displacement, const scalar fraction, TrackCloudType &cloud, trackingData &td)
Convenience function. Combines trackToFace and hitFace.
virtual void transformProperties(const transformer &)
Transform the physical properties of the particle.
virtual void transformProperties(const transformer &)
Transform the physical properties of the particle.
bool move(moleculeCloud &, trackingData &, const scalar trackTime)
vector normal() const
Return the normal of the tri on tetFacei_ for the.
const Field< vector > & siteReferencePositions() const
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){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar cos(const dimensionedScalar &ds)
trackPart part() const
Return the part of the tracking operation taking place.
errorManip< error > abort(error &err)
void hitWallPatch(moleculeCloud &cloud, trackingData &td)
Overridable function to handle the particle hitting a wallPatch.
dimensionedScalar sin(const dimensionedScalar &ds)
scalar stepFraction() const
Return the fraction of time-step completed.
void setSize(const label)
Reset size of List.
#define R(A, B, C, D, E, F, K, M)
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
Class used to pass tracking data to the trackToFace function.
void setSiteSizes(label size)
Field< vector > vectorField
Specialisation of Field<T> for vector.
const List< molecule::constantProperties > constProps() const
Calculates the inertia tensor and principal axes and moments of a polyhedra/cells/triSurfaces. Inertia can either be of the solid body or of a thin shell.
label sendToProc
Processor to send the particle to. -1 indicates that this.
vector position() const
Return current particle position.
Tensor< scalar > tensor
Tensor of scalars.
dimensionSet transform(const dimensionSet &)