32 template<
class CloudType>
42 alphacName_(this->coeffs().lookup(
"alphac")),
44 alphacInterpPtr_(nullptr)
48 template<
class CloudType>
55 alphacName_(df.alphacName_),
56 alphacPtr_(df.alphacPtr_, false),
57 alphacInterpPtr_(df.alphacInterpPtr_, false)
63 template<
class CloudType>
70 template<
class CloudType>
74 if (!alphacInterpPtr_.valid())
77 <<
"Carrier phase volume-fraction interpolation object not set"
81 return alphacInterpPtr_();
85 template<
class CloudType>
90 if (!this->mesh().
template foundObject<volScalarField>(alphacName_))
99 this->mesh().template lookupObject<volScalarField>(alphacName_);
101 alphacInterpPtr_.reset
105 this->owner().
solution().interpolationSchemes(),
112 alphacInterpPtr_.clear();
Templated base class for dsmc cloud.
const interpolation< scalar > & alphacInterp() const
Return the volume fraction interpolation.
virtual void cacheFields(const bool store)
Cache fields.
DenseDragForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &typeName)
Construct from mesh.
virtual ~DenseDragForce()
Destructor.
Generic GeometricField class.
Abstract base class for particle forces.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for interpolation.
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
errorManip< error > abort(error &err)
VolField< scalar > volScalarField