35template<
class CloudType>
45 UName_(this->coeffs().template getOrDefault<
word>(
"U",
"U")),
46 DUcDtInterpPtr_(nullptr)
50template<
class CloudType>
58 DUcDtInterpPtr_(nullptr)
64template<
class CloudType>
71template<
class CloudType>
74 static word fName(
"DUcDt");
76 bool fieldExists = this->
mesh().template foundObject<volVectorField>(fName);
83 lookupObject<volVectorField>(UName_);
95 lookupObject<volVectorField>(fName);
101 this->owner().
solution().interpolationSchemes(),
108 DUcDtInterpPtr_.clear();
113 this->
mesh().template lookupObjectRef<volVectorField>(fName);
121template<
class CloudType>
135 DUcDtInterp().interpolate(
p.coordinates(),
p.currentTetIndices());
137 value.
Su() = mass*td.rhoc()/
p.rho()*DUcDt;
143template<
class CloudType>
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Abstract base class for particle forces.
Calculates particle pressure gradient force.
virtual void cacheFields(const bool store)
Cache fields.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
virtual forceSuSp calcCoupled(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the non-coupled force.
virtual ~PressureGradientForce()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class used to pass data into container.
Helper container for force Su and Sp terms.
const vector & Su() const
Return const access to the explicit contribution [kg.m/s2].
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for volume field interpolation.
bool checkOut()
Remove all file watches and remove object from registry.
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from Foam::string.
Calculate the first temporal derivative.
Calculate the gradient of the given field.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< vector, fvPatchField, volMesh > volVectorField
scalarField Re(const UList< complex > &cf)
Extract real component.
static constexpr const zero Zero
Global zero (0)