Go to the documentation of this file.
34 template<
class CloudType>
44 UName_(this->coeffs().
template lookupOrDefault<word>(
"U",
"U")),
45 DUcDtInterpPtr_(
nullptr)
49 template<
class CloudType>
57 DUcDtInterpPtr_(
nullptr)
63 template<
class CloudType>
70 template<
class CloudType>
73 static word fName(
"DUcDt");
75 bool fieldExists = this->
mesh().template foundObject<volVectorField>(fName);
82 lookupObject<volVectorField>(UName_);
94 lookupObject<volVectorField>(fName);
100 this->owner().
solution().interpolationSchemes(),
107 DUcDtInterpPtr_.clear();
112 this->
mesh().template lookupObjectRef<volVectorField>(fName);
120 template<
class CloudType>
124 const typename CloudType::parcelType::trackingData& td,
134 DUcDtInterp().interpolate(
p.coordinates(),
p.currentTetIndices());
136 value.
Su() = mass*td.rhoc()/
p.rho()*DUcDt;
142 template<
class CloudType>
146 const typename CloudType::parcelType::trackingData& td,
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from Foam::string.
PressureGradientForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
Construct from mesh.
static constexpr const zero Zero
Global zero.
virtual ~PressureGradientForce()
Destructor.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
virtual void cacheFields(const bool store)
Cache fields.
const vector & Su() const
Return const access to the explicit contribution [kg.m/s2].
Calculates particle pressure gradient force.
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.
Helper container for force Su and Sp terms.
Abstract base class for particle forces.
const word UName_
Name of velocity field.
Templated base class for dsmc cloud.
Abstract base class for interpolation.
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.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Calculate the gradient of the given field.
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
scalarField Re(const UList< complex > &cf)
Extract real component.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Calculate the first temporal derivative.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.