38 template<
class BasicMomentumTransportModel>
61 liquidTurbulencePtr_(
nullptr),
75 this->printCoeffs(type);
82 template<
class BasicMomentumTransportModel>
87 alphaInversion_.readIfPresent(this->coeffDict());
98 template<
class BasicMomentumTransportModel>
102 if (!liquidTurbulencePtr_)
106 const phaseModel& gas = refCast<const phaseModel>(this->properties());
110 liquidTurbulencePtr_ =
115 momentumTransportModel::typeName,
121 return *liquidTurbulencePtr_;
125 template<
class BasicMomentumTransportModel>
137 max(alphaInversion_ - alpha, scalar(0))
141 this->Ce_*
sqrt(liquidTurbulence.
k())/this->
delta(),
148 template<
class BasicMomentumTransportModel>
153 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
156 phaseTransferCoeff*liquidTurbulence.
k()
157 -
fvm::Sp(phaseTransferCoeff, this->k_);
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
const word & name() const
Generic dimensioned Type class.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
One equation eddy-viscosity model.
Class to represent a system of phases and model interfacial transfers between them.
const momentumTransportModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
A class for handling words, derived from string.
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))
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual tmp< fvScalarMatrix > kSource() const
tmp< volScalarField > phaseTransferCoeff() const
Abstract base class for all fluid physical properties.
BasicMomentumTransportModel::rhoField rhoField
virtual bool read()
Read model coefficients if they have changed.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
const Time & time() const
Return time.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
continuousGasKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
dimensionedScalar deltaT() const
Return time step.
BasicMomentumTransportModel::alphaField alphaField