35 #ifndef momentumTransportModel_H 36 #define momentumTransportModel_H 86 template<
class MomentumTransportModel>
89 const typename MomentumTransportModel::alphaField&
alpha,
90 const typename MomentumTransportModel::rhoField&
rho,
127 virtual bool read() = 0;
175 return this->viscosity_.
nu();
181 return this->viscosity_.
nu(patchi);
void operator=(const momentumTransportModel &)=delete
Disallow default bitwise assignment.
const volVectorField & U_
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
const viscosity & viscosity_
const surfaceScalarField & alphaRhoPhi_
virtual tmp< volSymmTensorField > sigma() const =0
Return the stress tensor [m^2/s^2].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Templated form of IOobject providing type information for file reading and header type checking...
const Time & time() const
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
virtual void validate()
Validate the turbulence fields after construction.
Generic GeometricField class.
word group() const
Return group (extension part of name)
const fvMesh & mesh() const
const volScalarField::Boundary & y() const
Return the near wall distance.
static typeIOobject< IOdictionary > readModelDict(const objectRegistry &obr, const word &group, bool registerObject=false)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
const surfaceScalarField & phi_
Forward declarations of the specialisations of Field<T> for scalar, vector and tensor.
A class for handling words, derived from string.
momentumTransportModel(const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
Abstract base class for all fluid physical properties.
TypeName("momentumTransport")
Runtime type information.
const class Foam::viscosity & properties() const
Access function to fluid properties.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
virtual bool read()=0
Read model coefficients if they have changed.
const volVectorField & U() const
Access function to velocity field.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
Forward declarations of fvMatrix specialisations.
virtual tmp< volScalarField > omega() const =0
Return the turbulence specific dissipation rate.
Mesh data needed to do the Finite Volume discretisation.
virtual ~momentumTransportModel()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
word GName() const
Helper function to return the name of the turbulence G field.
static word modelName(Name name, const word &model)
Return the name of the object within the given model.
A class for managing temporary objects.
Registry of regIOobjects.
static autoPtr< MomentumTransportModel > New(const typename MomentumTransportModel::alphaField &alpha, const typename MomentumTransportModel::rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
bool & registerObject()
Register object created from this IOobject with registry if true.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity.
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.