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, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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...
const dimensionSet dimless
const dimensionSet dimLength
static const Identity< scalar > I
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimTime
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimMass
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))