33 template<
class CloudType>
39 auto* ptr = this->
mesh().template getObjectPtr<volVectorField>(fieldName);
55 this->
mesh().objectRegistry::store(ptr);
64 template<
class CloudType>
77 Ename_(this->coeffs().template getOrDefault<
word>(
"E",
"E")),
82 template<
class CloudType>
89 qPtr_(pf.qPtr_.clone()),
97 template<
class CloudType>
108 this->owner().
solution().interpolationSchemes(),
115 EInterpPtr_.reset(
nullptr);
120 template<
class CloudType>
123 const typename CloudType::parcelType&
p,
124 const typename CloudType::parcelType::trackingData& td,
131 const interpolation<vector>& EInterp = *EInterpPtr_;
133 const scalar q = qPtr_->value(
p.d());
138 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...
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)