33 namespace PDRDragModels
45 const dictionary& PDRProperties,
52 PDRDragModel(PDRProperties, turbulence, rho, U, phi),
53 Csu(
"Csu",
dimless, PDRDragModelCoeffs_),
54 Csk(
"Csk",
dimless, PDRDragModelCoeffs_),
61 U_.
mesh().facesInstance(),
74 U_.
mesh().facesInstance(),
94 tmp<volSymmTensorField> tDragDcu
116 rho_*(0.5*CR_*
mag(U_) + (Csu*
I)*betav*turbulence_.nuEff()*
sqr(Aw_));
125 tmp<volScalarField> tGk
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();
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
virtual bool read()
Read object.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static tmp< GeometricField< symmTensor, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< symmTensor >> &)
Return a temporary field constructed from name,.
const dimensionSet dimless
virtual ~basic()
Destructor.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual tmp< volSymmTensorField > Dcu() const
Return the momentum drag coefficient.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimLength
void writeFields() const
Write fields.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimTime
virtual tmp< volScalarField > Gk() const
Return the momentum drag turbulence generation rate.
static const Identity< scalar > I
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
basic(const dictionary &PDRProperties, const compressible::RASModel &turbulence, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< symmTensor > dimensionedSymmTensor
Dimensioned tensor obtained from generic dimensioned type.
const dimensionSet dimMass
Internal & ref()
Return a reference to the dimensioned internal field.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const objectRegistry & db() const
Return the local objectRegistry.
RASModel< momentumTransportModel > RASModel
Typedefs for turbulence, RAS and LES models for compressible flow based on the standard laminar trans...