42 template<
class BasicMomentumTransportModel>
50 const viscosity& viscosity,
65 liquidTurbulencePtr_(
nullptr),
72 this->runTime_.timeName(),
92 this->printCoeffs(type);
99 template<
class BasicMomentumTransportModel>
104 alphaInversion_.readIfPresent(this->coeffDict());
115 template<
class BasicMomentumTransportModel>
122 const phaseModel& gas = refCast<const phaseModel>(this->properties());
127 fluid.lookupInterfacialModel
141 exp(
min(thetal/thetag, scalar(50))),
147 nutEff_ = omega*liquidTurbulence.
nut();
152 template<
class BasicMomentumTransportModel>
156 if (!liquidTurbulencePtr_)
160 const phaseModel& gas = refCast<const phaseModel>(this->properties());
164 liquidTurbulencePtr_ =
169 momentumTransportModel::typeName,
175 return *liquidTurbulencePtr_;
179 template<
class BasicMomentumTransportModel>
189 (this->alpha_ - scalar(0.5))/(alphaInversion_ - 0.5),
200 + (1.0 - blend)*rhoEff()*nutEff_/this->rho_
206 template<
class BasicMomentumTransportModel>
210 const phaseModel& gas = refCast<const phaseModel>(this->properties());
215 fluid.lookupInterfacialModel
222 gas.
rho() + (virtualMass.
Cvm() + 3.0/20.0)*liquid.
rho()
227 template<
class BasicMomentumTransportModel>
239 max(alphaInversion_ - alpha, scalar(0))
243 liquidTurbulence.
epsilon()/liquidTurbulence.
k(),
250 template<
class BasicMomentumTransportModel>
255 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
258 phaseTransferCoeff*liquidTurbulence.
k()
259 -
fvm::Sp(phaseTransferCoeff, this->k_);
263 template<
class BasicMomentumTransportModel>
268 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
271 phaseTransferCoeff*liquidTurbulence.
epsilon()
272 -
fvm::Sp(phaseTransferCoeff, this->epsilon_);
276 template<
class BasicMomentumTransportModel>
286 tk().boundaryField().types()
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual tmp< fvScalarMatrix > epsilonSource() const
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual tmp< volScalarField > rho() const =0
Return the density field.
const word & name() const
virtual bool read()
Re-read model coefficients if they have changed.
label k
Boltzmann constant.
Generic dimensioned Type class.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
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.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
dimensionedScalar exp(const dimensionedScalar &ds)
static const Identity< scalar > I
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
Class to represent a system of phases and model interfacial transfers between them.
virtual tmp< volScalarField > Cvm() const =0
Return the virtual mass coefficient.
A class for handling words, derived from string.
const rhoThermo & thermo() const
Return const-access to phase rhoThermo.
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))
BasicMomentumTransportModel::alphaField alphaField
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
continuousGasKEpsilon(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.
Class to represent a interface between phases where one phase is considered dispersed within the othe...
virtual tmp< fvScalarMatrix > kSource() const
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
const momentumTransportModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
tmp< volScalarField > phaseTransferCoeff() const
const Time & time() const
Return time.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
BasicMomentumTransportModel::rhoField rhoField
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
virtual void correctNut()
virtual tmp< volScalarField > rhoEff() const
Return the effective density for the stress.
virtual void correctNut()
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
dimensionedScalar deltaT() const
Return time step.