34 namespace turbulenceThermophysicalTransportModels
39 template<
class TurbulenceThermophysicalTransportModel>
43 this->momentumTransport().rho()
44 *this->momentumTransport().nut()/Prt_;
45 alphat_.correctBoundaryConditions();
51 template<
class TurbulenceThermophysicalTransportModel>
58 TurbulenceThermophysicalTransportModel
65 Prt_(
"Prt",
dimless, this->coeffDict_),
74 this->momentumTransport().alphaRhoPhi().
group()
76 momentumTransport.time().timeName(),
77 momentumTransport.mesh(),
81 momentumTransport.mesh()
88 template<
class TurbulenceThermophysicalTransportModel>
93 Prt_.read(this->coeffDict());
104 template<
class TurbulenceThermophysicalTransportModel>
112 <<
type() <<
" supports single component systems only, " <<
nl 113 <<
" for multi-component transport select" 114 " nonUnityLewisEddyDiffusivity or unityLewisEddyDiffusivity" 121 template<
class TurbulenceThermophysicalTransportModel>
130 <<
type() <<
" supports single component systems only, " <<
nl 131 <<
" for multi-component transport select" 132 " nonUnityLewisEddyDiffusivity or unityLewisEddyDiffusivity" 139 template<
class TurbulenceThermophysicalTransportModel>
148 this->momentumTransport().alphaRhoPhi().
group()
156 template<
class TurbulenceThermophysicalTransportModel>
171 template<
class TurbulenceThermophysicalTransportModel>
179 <<
type() <<
" supports single component systems only, " <<
nl 180 <<
" for multi-component transport select" 181 " nonUnityLewisEddyDiffusivity or unityLewisEddyDiffusivity" 188 template<
class TurbulenceThermophysicalTransportModel>
196 <<
type() <<
" supports single component systems only, " <<
nl 197 <<
" for multi-component transport select" 198 " nonUnityLewisEddyDiffusivity or unityLewisEddyDiffusivity" 205 template<
class TurbulenceThermophysicalTransportModel>
const char *const group
Group name for atomic constants.
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
virtual tmp< fvScalarMatrix > divq(volScalarField &he) const
Return the source term for the energy equation.
fluidReactionThermo & thermo
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-10/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvsPatchField, surfaceMesh > > New(const word &name, const Internal &, const PtrList< fvsPatchField< scalar >> &)
Return a temporary field constructed from name,.
Calculate the matrix for the laplacian of the field.
virtual void correctAlphat()
const dimensionSet dimless
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual tmp< surfaceScalarField > j(const volScalarField &Yi) const
Return the specie flux for the given specie mass-fraction [kg/m^2/s].
static word groupName(Name name, const word &group)
Calculate the laplacian of the given field.
virtual tmp< fvScalarMatrix > divj(volScalarField &Yi) const
Return the source term for the given specie mass-fraction equation.
virtual tmp< surfaceScalarField > q() const
Return the heat flux [W/m^2].
TurbulenceThermophysicalTransportModel::momentumTransportModel momentumTransportModel
virtual bool read()
Read thermophysicalTransport dictionary.
virtual void correct()
Correct the eddyDiffusivity viscosity.
virtual tmp< volScalarField > DEff(const volScalarField &Yi) const
Effective mass diffusion coefficient.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
eddyDiffusivity(const momentumTransportModel &momentumTransport, const thermoModel &thermo)
Construct from a momentum transport model and a thermo model.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
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.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
TurbulenceThermophysicalTransportModel::thermoModel thermoModel