36 #ifndef PDRDragModel_H 37 #define PDRDragModel_H
virtual ~PDRDragModel()
Destructor.
TypeName("PDRDragModel")
Runtime type information.
dictionary PDRDragModelCoeffs_
virtual bool read()
Read object.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Base-class for sub-grid obstacle drag models. The available drag model is at basic.H.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
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::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
const compressible::RASModel & turbulence_
const volScalarField & rho_
const volVectorField & U_
const surfaceScalarField & phi_
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void operator=(const PDRDragModel &)=delete
Disallow default bitwise assignment.
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
PDRDragModel(const dictionary &PDRProperties, const compressible::RASModel &turbulence, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
static autoPtr< PDRDragModel > New(const dictionary &PDRProperties, const compressible::RASModel &turbulence, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected Xi model.
virtual void writeFields() const
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
declareRunTimeSelectionTable(autoPtr, PDRDragModel, dictionary,(const dictionary &PDRProperties, const compressible::RASModel &turbulence, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi),(PDRProperties, turbulence, rho, U, phi))
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual tmp< volScalarField > Gk() const =0
Return the momentum drag turbulence generation rate.
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
bool on() const
Return true if the drag model is switched on.
virtual bool writeData(Ostream &) const
Pure virtual writaData function.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< volSymmTensorField > Dcu() const =0
Return the momentum drag coefficient.