30 template<
class BasicTurbulenceModel>
35 Info<< coeffDict_.dictName() << coeffDict_ <<
endl;
42 template<
class BasicTurbulenceModel>
52 const word& propertiesName
67 LESDict_(this->subOrEmptyDict(
"LES")),
68 turbulence_(LESDict_.lookup(
"turbulence")),
69 printCoeffs_(LESDict_.lookupOrDefault<
Switch>(
"printCoeffs",
false)),
70 coeffDict_(LESDict_.optionalSubDict(type +
"Coeffs")),
109 IOobject::groupName(
"delta", alphaRhoPhi.
group()),
117 this->mesh_.deltaCoeffs();
123 template<
class BasicTurbulenceModel>
133 const word& propertiesName
144 IOobject::groupName(propertiesName, alphaRhoPhi.
group()),
147 IOobject::MUST_READ_IF_MODIFIED,
154 Info<<
"Selecting LES turbulence model " << modelType <<
endl;
156 typename dictionaryConstructorTable::iterator cstrIter =
157 dictionaryConstructorTablePtr_->find(modelType);
159 if (cstrIter == dictionaryConstructorTablePtr_->end())
162 <<
"Unknown LESModel type " 163 << modelType <<
nl <<
nl 164 <<
"Valid LESModel types:" << endl
165 << dictionaryConstructorTablePtr_->sortedToc()
171 cstrIter()(
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
178 template<
class BasicTurbulenceModel>
183 LESDict_ <<= this->subDict(
"LES");
184 LESDict_.lookup(
"turbulence") >> turbulence_;
186 coeffDict_ <<= LESDict_.optionalSubDict(
type() +
"Coeffs");
188 delta_().read(LESDict_);
190 kMin_.readIfPresent(LESDict_);
201 template<
class BasicTurbulenceModel>
BasicTurbulenceModel::transportModel transportModel
static word group(const word &name)
Return group (extension part of name)
Templated abstract base class for LES SGS models.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
BasicTurbulenceModel::alphaField alphaField
virtual void printCoeffs(const word &type)
Print model coefficients.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
Generic dimensioned Type class.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
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()
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
virtual bool read()
Read model coefficients if they have changed.
const Time & time() const
Return time.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
static autoPtr< LESModel > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected LES model.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const objectRegistry & db() const
Return the local objectRegistry.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dimensionSet dimVelocity