31 template<
class BasePhaseModel,
class ThermoModel>
34 const phaseSystem& fluid,
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index),
42 thermo_(ThermoModel::
New(fluid.
mesh(), this->
name()))
55 template<
class BasePhaseModel,
class ThermoModel>
62 template<
class BasePhaseModel,
class ThermoModel>
65 return thermo_().incompressible();
69 template<
class BasePhaseModel,
class ThermoModel>
72 return thermo_().isochoric();
76 template<
class BasePhaseModel,
class ThermoModel>
84 template<
class BasePhaseModel,
class ThermoModel>
92 template<
class BasePhaseModel,
class ThermoModel>
96 return thermo_->rho();
100 template<
class BasePhaseModel,
class ThermoModel>
104 return thermo_->mu();
108 template<
class BasePhaseModel,
class ThermoModel>
115 return thermo_->mu(patchi);
119 template<
class BasePhaseModel,
class ThermoModel>
123 return thermo_->nu();
127 template<
class BasePhaseModel,
class ThermoModel>
134 return thermo_->nu(patchi);
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
static const char *const typeName
virtual bool incompressible() const
Return whether the phase is incompressible.
virtual bool isochoric() const
Return whether the phase is constant density.
virtual rhoThermo & thermoRef()
Access the thermophysical model.
virtual const rhoThermo & thermo() const
Return the thermophysical model.
virtual tmp< volScalarField > mu() const
Return the laminar dynamic viscosity.
static word groupName(Name name, const word &group)
Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict());mesh.schemes().setFluxRequired(p.name());Info<< "Reading field pa\"<< endl;volScalarField pa(IOobject("pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Ua\"<< endl;volVectorField Ua(IOobject("Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);# 65 "/home/ubuntu/OpenFOAM-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))
word name(const complex &)
Return a string representation of a complex.
virtual tmp< volScalarField > rho() const
Return the density field.
Base-class for fluid thermodynamic properties based on density.
ThermoPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
A class for managing temporary objects.
virtual ~ThermoPhaseModel()
Destructor.
virtual tmp< volScalarField > nu() const
Return the laminar kinematic viscosity.