33 template<
class CloudType>
42 alphaName_(this->coeffs().
lookup(
"alpha")),
43 C_(this->coeffs().getScalar(
"C")),
44 gradInterForceInterpPtr_(nullptr)
48 template<
class CloudType>
52 alphaName_(pf.alphaName_),
54 gradInterForceInterpPtr_(pf.gradInterForceInterpPtr_)
60 template<
class CloudType>
67 template<
class CloudType>
70 static word resultName(
"gradAlpha");
73 this->
mesh().template getObjectPtr<volVectorField>(resultName);
80 lookupObject<volScalarField>(alphaName_);
93 gradInterForceInterpPtr_.reset
97 this->owner().solution().interpolationSchemes(),
104 gradInterForceInterpPtr_.
clear();
108 resultPtr->checkOut();
114 template<
class CloudType>
117 const typename CloudType::parcelType&
p,
118 const typename CloudType::parcelType::trackingData&
td,
125 forceSuSp value(
Zero);
127 const interpolation<vector>& interp = gradInterForceInterpPtr_();
132 *interp.interpolate(
p.coordinates(),
p.currentTetIndices());
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Vector force apply to particles to avoid the crossing of particles from one phase to the other...
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.
Lookup type of boundary radiation properties.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Helper container for force Su and Sp terms.
virtual ~InterfaceForce()
Destructor.
Calculate the gradient of the given field.
void clear()
Clear the list, i.e. set size to zero.
A class for handling words, derived from Foam::string.
InterfaceForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
Mesh data needed to do the Finite Volume discretisation.
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.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Templated base class for dsmc cloud.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
static constexpr const zero Zero
Global zero (0)