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
117 p.currentTetIndices(td.mesh)
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Generic GeometricField class.
Calculates particle paramagnetic (magnetic field) force.
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.
virtual void cacheFields(const bool store)
Cache fields.
virtual ~ParamagneticForce()
Destructor.
ParamagneticForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
Abstract base class for particle forces.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & value() const
Return const reference to value.
Helper container for force Su and Sp terms.
const vector & Su() const
Return const access to the explicit contribution [kg m/s^2].
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for interpolation.
static autoPtr< interpolation< Type > > New(const word &interpolationType, const VolField< Type > &psi)
Return a reference to the specified interpolation scheme.
Selector class for relaxation factors, solver type and solution.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Template functions to aid in the implementation of demand driven data.
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
void deleteDemandDrivenData(DataType *&dataPtr)
scalarField Re(const UList< complex > &cf)