32 template<
class CloudType>
43 this->coeffs().template lookupOrDefault<word>(
"HdotGradH",
"HdotGradH")
45 HdotGradHInterpPtr_(
nullptr),
46 magneticSusceptibility_
48 this->coeffs().
template lookup<scalar>(
"magneticSusceptibility")
53 template<
class CloudType>
60 HdotGradHName_(pf.HdotGradHName_),
61 HdotGradHInterpPtr_(pf.HdotGradHInterpPtr_),
62 magneticSusceptibility_(pf.magneticSusceptibility_)
68 template<
class CloudType>
75 template<
class CloudType>
81 this->
mesh().template lookupObject<volVectorField>(HdotGradHName_);
85 this->owner().
solution().interpolationSchemes(),
96 template<
class CloudType>
100 const typename CloudType::parcelType::trackingData& td,
113 *magneticSusceptibility_/(magneticSusceptibility_ + 3)
114 *HdotGradHInterp.
interpolate(p.coordinates(), p.currentTetIndices());
virtual void cacheFields(const bool store)
Cache fields.
Calculates particle paramagnetic (magnetic field) force.
const vector & Su() const
Return const access to the explicit contribution [kg m/s^2].
A list of keyword definitions, which are a keyword followed by any number of values (e...
ParamagneticForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
Abstract base class for particle forces.
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.
const dimensionedScalar & mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
Helper container for force Su and Sp terms.
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0
Interpolate field to the given point in the given cell.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
virtual ~ParamagneticForce()
Destructor.
const Type & value() const
Return const reference to value.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Template functions to aid in the implementation of demand driven data.
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for interpolation.
Selector class for relaxation factors, solver type and solution.
void deleteDemandDrivenData(DataPtr &dataPtr)
Templated base class for dsmc cloud.