Go to the documentation of this file.
33 template<
class CloudType>
36 const typename CloudType::parcelType&
p,
37 const typename CloudType::parcelType::trackingData& td,
50 template<
class CloudType>
60 UName_(this->coeffs().
template lookupOrDefault<word>(
"U",
"U")),
61 curlUcInterpPtr_(
nullptr)
65 template<
class CloudType>
70 curlUcInterpPtr_(nullptr)
76 template<
class CloudType>
83 template<
class CloudType>
86 static word fName(
"curlUcDt");
88 bool fieldExists = this->
mesh().template foundObject<volVectorField>(fName);
95 lookupObject<volVectorField>(UName_);
104 lookupObject<volVectorField>(fName);
106 curlUcInterpPtr_.reset
110 this->owner().
solution().interpolationSchemes(),
117 curlUcInterpPtr_.clear();
122 this->
mesh().template lookupObjectRef<volVectorField>(fName);
130 template<
class CloudType>
134 const typename CloudType::parcelType::trackingData& td,
144 curlUcInterp().interpolate(
p.coordinates(),
p.currentTetIndices());
146 scalar Cl = this->Cl(
p, td, curlUc,
Re, muc);
148 value.
Su() = mass/
p.rho()*td.rhoc()*Cl*((td.Uc() -
p.U())^curlUc);
tmp< GeometricField< Type, fvPatchField, volMesh > > curl(const GeometricField< Type, fvPatchField, volMesh > &vf)
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero.
const vector & Su() const
Return const access to the explicit contribution [kg.m/s2].
LiftForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType)
Construct from mesh.
Calculate the curl of the given volField by constructing the Hodge-dual of the symmetric part of the ...
Helper container for force Su and Sp terms.
Abstract base class for particle forces.
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.
Templated base class for dsmc cloud.
Base class for particle lift force models.
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.
Vector< scalar > vector
A scalar version of the templated Vector.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual void cacheFields(const bool store)
Cache fields.
scalarField Re(const UList< complex > &cf)
Extract real component.
virtual ~LiftForce()
Destructor.
ParcelType parcelType
Type of parcel the cloud was instantiated for.