Go to the documentation of this file.
35 namespace PDRDragModels
45 Foam::PDRDragModels::basic::basic
47 const dictionary& PDRProperties,
55 Csu(
"Csu",
dimless, PDRDragModelCoeffs_),
56 Csk(
"Csk",
dimless, PDRDragModelCoeffs_),
63 U_.
mesh().facesInstance(),
76 U_.
mesh().facesInstance(),
96 tmp<volSymmTensorField> tDragDcu
103 U_.mesh().time().constant(),
121 (0.5*rho_)*CR_*
mag(U_) + (Csu*
I)*
betav*turbulence_.muEff()*
sqr(Aw_);
130 tmp<volScalarField> tGk
137 U_.mesh().time().constant(),
158 (0.5*rho_)*
mag(U_)*(U_ & CT & U_)
170 PDRDragModelCoeffs_.readEntry(
"Csu", Csu.value());
171 PDRDragModelCoeffs_.readEntry(
"Csk", Csk.value());
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
virtual tmp< volScalarField > Gk() const
Info<< "Reading field U\n"<< 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("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< symmTensor > dimensionedSymmTensor
Dimensioned tensor obtained from generic dimensioned type.
A class for managing temporary objects.
static constexpr const zero Zero
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Macros for easy insertion into run-time selection tables.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
const volScalarField & betav
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Internal & ref(const bool updateAccessTime=true)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionSet dimVolume(pow3(dimLength))
virtual tmp< volSymmTensorField > Dcu() const
defineTypeNameAndDebug(combustionModel, 0)
static const Identity< scalar > I
const dimensionSet dimless