32 template<
class CloudType>
42 UName_(this->coeffs().template lookupOrDefault<
word>(
"U",
"U")),
43 DUcDtInterpPtr_(nullptr)
47 template<
class CloudType>
55 DUcDtInterpPtr_(nullptr)
61 template<
class CloudType>
68 template<
class CloudType>
71 static word fName(
"DUcDt");
73 bool fieldExists = this->mesh().template foundObject<volVectorField>(fName);
80 lookupObject<volVectorField>(UName_);
92 lookupObject<volVectorField>(fName);
98 this->owner().
solution().interpolationSchemes(),
105 DUcDtInterpPtr_.clear();
110 lookupObject<volVectorField>(fName);
118 template<
class CloudType>
122 const typename CloudType::parcelType::trackingData& td,
132 DUcDtInterp().interpolate
135 p.currentTetIndices(td.mesh)
138 value.
Su() = mass*td.rhoc()/
p.rho()*DUcDt;
144 template<
class CloudType>
148 const typename CloudType::parcelType::trackingData& td,
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Generic GeometricField class.
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.
PressureGradientForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
Construct from mesh.
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 any number of values (e....
Helper container for force Su and Sp terms.
const vector & Su() const
Return const access to the explicit contribution [kg m/s^2].
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for interpolation.
void store()
Transfer ownership of this object to its registry.
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from string.
Calculate the first temporal derivative.
Calculate the gradient of the given field.
tmp< VolField< Type > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
VolField< vector > volVectorField
scalarField Re(const UList< complex > &cf)