34 namespace compressible
48 const geometricOneField&
alpha,
53 const fluidThermo& thermophysicalModel,
54 const word& turbulenceModelName,
72 dimensioned<scalar>::lookupOrAddToDict
84 PDRkEpsilon::~PDRkEpsilon()
94 C4_.readIfPresent(coeffDict_);
109 nut_ = Cmu_*
sqr(k_)/epsilon_;
110 nut_.correctBoundaryConditions();
133 epsilon_.boundaryFieldRef().updateCoeffs();
143 const PDRDragModel& drag =
152 tmp<fvScalarMatrix> epsEqn
158 C1_*betav*
G*epsilon_/k_
159 + 1.5*
pow(Cmu_, 3.0/4.0)*GR*
sqrt(k_)/LI
164 epsEqn.ref().relax();
166 epsEqn.ref().boundaryManipulate(epsilon_.boundaryFieldRef());
169 bound(epsilon_, epsilonMin_);
174 tmp<fvScalarMatrix> kEqn
190 nut_ = Cmu_*
sqr(k_)/epsilon_;
191 nut_.correctBoundaryConditions();
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
const dimensionedScalar G
Newtonian constant of gravitation.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
PDRkEpsilon(const geometricOneField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const fluidThermo &thermophysicalModel, const word &turbulenceModelName=turbulenceModel::typeName, const word &modelName=typeName)
Construct from components.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
dimensionedScalar sqrt(const dimensionedScalar &ds)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual bool read()
Read model coefficients if they have changed.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
const compressible::RASModel & turbulence_
Macros for easy insertion into run-time selection tables.
const volScalarField & rho_
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
const volVectorField & U_
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
const surfaceScalarField & phi_
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/ubuntu/OpenFOAM-6/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()
defineTypeNameAndDebug(combustionModel, 0)
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
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.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const objectRegistry & db() const
Return the local objectRegistry.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.