46 const dictionary& dict,
47 const phaseInterface& interface,
48 const bool registerObject
51 dispersedDragModel(dict.subDict(
"dragModel"), interface, registerObject),
54 dragModel::
New(dict.subDict(
"dragModel"), interface, false, false)
56 minRelaxTime_(
"minRelaxTime",
dimTime, dict)
58 if (!isA<dispersedDragModel>(dragModel_()))
61 <<
"The sub-drag-model of a " <<
type()
62 <<
" drag model must be for a dispersed configuration" 90 return min(refCast<const dispersedDragModel>(dragModel_()).
CdRe(),
limit);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
timeScaleFilteredDrag(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
Construct from a dictionary and an interface.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual tmp< volScalarField > rho() const =0
Return the density field.
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
complex limit(const complex &, const complex &)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimTime
const rhoThermo & thermo() const
Return const-access to phase rhoThermo.
const phaseModel & continuous() const
Continuous phase.
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const phaseModel & dispersed() const
Dispersed phase.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
const dispersedPhaseInterface interface_
Interface.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
A class for managing temporary objects.
autoPtr< swarmCorrection > swarmCorrection_
Swarm correction.
virtual ~timeScaleFilteredDrag()
Destructor.