33template<
class CloudType>
42 oneByTimeScaleAverage_(nullptr)
46template<
class CloudType>
54 oneByTimeScaleAverage_(cm.oneByTimeScaleAverage_->
clone())
60template<
class CloudType>
68template<
class CloudType>
76 const auto& volumeAverage =
81 const auto& radiusAverage =
86 const auto& uAverage =
91 const auto& uSqrAverage =
96 const auto& frequencyAverage =
102 uAverage_ = &uAverage;
104 oneByTimeScaleAverage_.reset
111 this->owner().db().time().
timeName(),
119 oneByTimeScaleAverage_() =
121 this->timeScaleModel_->oneByTau
133 oneByTimeScaleAverage_.clear();
138template<
class CloudType>
148 deltaT*oneByTimeScaleAverage_->interpolate(
p.coordinates(), tetIs);
152 return (u -
p.U())*
x/(
x + 2.0);
const word cloudName(propsDict.get< word >("cloud"))
Base class for lagrangian averaging methods.
static autoPtr< AveragingMethod< Type > > New(const IOobject &io, const dictionary &dict, const fvMesh &mesh)
Selector.
virtual Type interpolate(const barycentric &coordinates, const tetIndices &tetIs) const =0
Interpolate.
const CloudType & owner() const
Return const access to the owner cloud.
Base class for collisional damping models.
autoPtr< TimeScaleModel > timeScaleModel_
Time scale model.
DampingModel(CloudType &owner)
Construct null from owner.
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 autoPtr< DampingModel< CloudType > > clone() const
Construct and return a clone.
virtual ~Relaxation()
Destructor.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
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.
Selector class for relaxation factors, solver type and solution.
const dictionary & dict() const
Return const access to the cloud dictionary.
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.
DSMCCloud< dsmcParcel > CloudType
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")