46Foam::PDRDragModels::basic::basic
50 const volScalarField&
rho,
51 const volVectorField&
U,
52 const surfaceScalarField&
phi
56 Csu(
"Csu",
dimless, PDRDragModelCoeffs_),
57 Csk(
"Csk",
dimless, PDRDragModelCoeffs_),
64 U_.
mesh().facesInstance(),
77 U_.
mesh().facesInstance(),
104 auto& DragDcu = tDragDcu.ref();
112 (0.5*rho_)*CR_*
mag(U_) + (Csu*
I)*
betav*turbulence_.muEff()*
sqr(Aw_);
128 auto& Gk = tGk.ref();
139 (0.5*rho_)*
mag(U_)*(U_ & CT & U_)
151 PDRDragModelCoeffs_.readEntry(
"Csu", Csu.value());
152 PDRDragModelCoeffs_.readEntry(
"Csk", Csk.value());
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static tmp< GeometricField< symmTensor, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< symmTensor >::calculatedType())
@ NO_REGISTER
Do not request registration (bool: false).
const objectRegistry & db() const noexcept
Return the local objectRegistry.
virtual bool read()
Inherit read from regIOobject.
Basic sub-grid obstacle drag model. Details supplied by J Puttock 2/7/06.
virtual ~basic()
Destructor.
virtual tmp< volSymmTensorField > Dcu() const
Return the momentum drag coefficient.
virtual tmp< volScalarField > Gk() const
Return the momentum drag turbulence generation rate.
void writeFields() const
Write fields.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
virtual bool read()
Read object.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
compressible::turbulenceModel & turbulence
const dimensionSet dimless
Dimensionless.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static const Identity< scalar > I
dimensioned< symmTensor > dimensionedSymmTensor
Dimensioned tensor obtained from generic dimensioned type.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
static constexpr const zero Zero
Global zero (0).
const dimensionSet dimVolume(pow3(dimLength))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
const volScalarField & betav