33 namespace PDRDragModels
53 Csu(
"Csu",
dimless, PDRDragModelCoeffs_),
54 Csk(
"Csk",
dimless, PDRDragModelCoeffs_),
61 U_.mesh().facesInstance(),
74 U_.mesh().facesInstance(),
116 rho_*(0.5*CR_*
mag(U_) + (Csu*
I)*betav*turbulence_.nuEff()*
sqr(Aw_));
148 0.5*
mag(U_)*(U_ & CT & U_)
149 + Csk*betav*turbulence_.nuEff()*
sqr(Aw_)*
magSqr(U_)
161 PDRDragModelCoeffs_.lookup(
"Csu") >> Csu.value();
162 PDRDragModelCoeffs_.lookup(
"Csk") >> Csk.value();
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const objectRegistry & db() const
Return the local objectRegistry.
Base-class for sub-grid obstacle drag models. The available drag model is at basic....
virtual bool read()
Inherit read from regIOobject.
Basic sub-grid obstacle drag model. Details supplied by J Puttock 2/7/06.
virtual tmp< volSymmTensorField > Dcu() const
Return the momentum drag coefficient.
virtual ~basic()
Destructor.
basic(const dictionary &PDRProperties, const compressible::RASModel &turbulence, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
void writeFields() const
Write fields.
virtual tmp< volScalarField > Gk() const
Return the momentum drag turbulence generation rate.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Generic dimensioned Type class.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
addToRunTimeSelectionTable(PDRDragModel, basic, dictionary)
defineTypeNameAndDebug(basic, 0)
RASModel< momentumTransportModel > RASModel
Typedefs for turbulence, RAS and LES models for compressible flow based on the standard laminar trans...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimless
const dimensionSet dimLength
static const Identity< scalar > I
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionSet dimTime
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionSet dimMass
dimensioned< scalar > magSqr(const dimensioned< Type > &)
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))