30 template<
class CloudType>
39 oneByTimeScaleAverage_(NULL)
43 template<
class CloudType>
51 oneByTimeScaleAverage_(cm.oneByTimeScaleAverage_->clone())
57 template<
class CloudType>
65 template<
class CloudType>
76 cloudName +
":volumeAverage" 81 cloudName +
":radiusAverage" 86 cloudName +
":uAverage" 91 cloudName +
":uSqrAverage" 96 cloudName +
":frequencyAverage" 99 uAverage_ = &uAverage;
101 oneByTimeScaleAverage_.reset
107 cloudName +
":oneByTimeScaleAverage",
108 this->owner().db().time().
timeName(),
116 oneByTimeScaleAverage_() =
118 this->timeScaleModel_->oneByTau
130 oneByTimeScaleAverage_.
clear();
135 template<
class CloudType>
143 tetIs(p.cell(), p.tetFace(), p.tetPt(), this->owner().mesh());
146 deltaT*oneByTimeScaleAverage_->interpolate(p.position(), tetIs);
148 const vector u = uAverage_->interpolate(p.position(), tetIs);
150 return (u - p.U())*x/(x + 2.0);
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const
Calculate the velocity correction.
Base class for collisional damping models.
Mesh data needed to do the Finite Volume discretisation.
const word cloudName(propsDict.lookup("cloudName"))
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
Relaxation(const dictionary &dict, CloudType &owner)
Construct from components.
A class for handling words, derived from string.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Selector class for relaxation factors, solver type and solution.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Relaxation collisional damping model.
virtual ~Relaxation()
Destructor.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Templated base class for dsmc cloud.
virtual void cacheFields(const bool store)
Member Functions.
Storage and named access for the indices of a tet which is part of the decomposition of a cell...