30 template<
class CloudType>
39 oneByTimeScaleAverage_(nullptr)
43 template<
class CloudType>
51 oneByTimeScaleAverage_(cm.oneByTimeScaleAverage_, false)
57 template<
class CloudType>
65 template<
class CloudType>
99 uAverage_ = &uAverage;
101 oneByTimeScaleAverage_.reset
108 this->owner().db().time().name(),
111 this->owner().solution().dict(),
116 oneByTimeScaleAverage_() =
118 this->timeScaleModel_->oneByTau
130 oneByTimeScaleAverage_.
clear();
135 template<
class CloudType>
142 const tetIndices tetIs(
p.currentTetIndices(this->owner().mesh()));
145 deltaT*oneByTimeScaleAverage_->interpolate(
p.coordinates(), tetIs);
147 const vector u = uAverage_->interpolate(
p.coordinates(), tetIs);
149 return (u -
p.U())*
x/(
x + 2.0);
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Base class for collisional damping models.
Relaxation collisional damping model.
Relaxation(const dictionary &dict, CloudType &owner)
Construct from components.
virtual void cacheFields(const bool store)
Member Functions.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const
Calculate the velocity correction.
virtual ~Relaxation()
Destructor.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
const polyMesh & mesh() const
Return reference to polyMesh.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
A class for handling words, derived from string.
const word cloudName(propsDict.lookup("cloudName"))