33 template<
class CloudType>
39 auto* ptr = this->
mesh().template getObjectPtr<volVectorField>(fieldName);
49 this->
mesh().thisDb(),
56 regIOobject::store(ptr);
65 template<
class CloudType>
78 Ename_(this->coeffs().template getOrDefault<
word>(
"E",
"E")),
83 template<
class CloudType>
90 qPtr_(pf.qPtr_.clone()),
98 template<
class CloudType>
109 this->owner().
solution().interpolationSchemes(),
116 EInterpPtr_.reset(
nullptr);
121 template<
class CloudType>
124 const typename CloudType::parcelType&
p,
125 const typename CloudType::parcelType::trackingData&
td,
132 const interpolation<vector>& EInterp = *EInterpPtr_;
134 const scalar q = qPtr_->value(
p.d());
139 q*EInterp.interpolate(
p.coordinates(),
p.currentTetIndices()),
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Abstract base class for particle forces.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Helper container for force Su and Sp terms.
A class for handling words, derived from Foam::string.
virtual void cacheFields(const bool store)
Cache fields.
virtual forceSuSp calcNonCoupled(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.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
Template functions to aid in the implementation of demand driven data.
Particle electric force model involving the Coulomb force calculation.
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for volume field interpolation.
CoulombForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
Selector class for relaxation factors, solver type and solution.
Templated base class for dsmc cloud.
static constexpr const zero Zero
Global zero (0)