33template<
class CloudType>
41 stressAverage_(nullptr),
52template<
class CloudType>
59 stressAverage_(cm.stressAverage_->clone()),
62 cm.correctionLimiting_->clone()
69template<
class CloudType>
76template<
class CloudType>
107 volumeAverage_ = &volumeAverage;
108 uAverage_ = &uAverage;
117 this->owner().db().time().timeName(),
120 this->owner().solution().dict(),
126 this->particleStressModel_->tau
135 volumeAverage_ =
nullptr;
137 stressAverage_.
clear();
142template<
class CloudType>
153 this->volumeAverage_->interpolate(
p.coordinates(), tetIs);
156 this->volumeAverage_->interpolateGrad(
p.coordinates(), tetIs);
159 this->uAverage_->interpolate(
p.coordinates(), tetIs);
163 stressAverage_->interpolateGrad(
p.coordinates(), tetIs);
166 const vector uRelative =
p.U() - uMean;
179 if ((uRelative & alphaGrad) > 0)
181 dU = - deltaT*tauGrad/(
p.rho()*(
alpha + SMALL));
186 correctionLimiting_->limitedVelocity
Base class for lagrangian averaging methods.
Base class for correction limiting methods.
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Base class for packing models.
Explicit model for applying an inter-particle stress to the particles.
virtual ~Explicit()
Destructor.
virtual void cacheFields(const bool store)
Calculate the inter particles stresses.
virtual vector velocityCorrection(typename CloudType::parcelType &p, const scalar deltaT) const
Calculate the velocity correction.
virtual void cacheFields(const bool store)
Cache fields.
void clear()
Clear the PtrList. Delete allocated entries and set size to zero.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
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 Foam::string.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const word cloudName(propsDict.get< word >("cloud"))