30 template<
class BasicTurbulenceModel>
35 Info<< type <<
"Coeffs" << coeffDict_ <<
endl;
42 template<
class BasicTurbulenceModel>
52 const word& propertiesName
67 RASDict_(this->subOrEmptyDict(
"RAS")),
68 turbulence_(RASDict_.lookup(
"turbulence")),
69 printCoeffs_(RASDict_.lookupOrDefault<
Switch>(
"printCoeffs",
false)),
70 coeffDict_(RASDict_.subOrEmptyDict(type +
"Coeffs")),
107 this->mesh_.deltaCoeffs();
113 template<
class BasicTurbulenceModel>
123 const word& propertiesName
134 IOobject::groupName(propertiesName, U.
group()),
137 IOobject::MUST_READ_IF_MODIFIED,
144 Info<<
"Selecting RAS turbulence model " << modelType <<
endl;
146 typename dictionaryConstructorTable::iterator cstrIter =
147 dictionaryConstructorTablePtr_->find(modelType);
149 if (cstrIter == dictionaryConstructorTablePtr_->end())
152 <<
"Unknown RASModel type " 153 << modelType <<
nl <<
nl 154 <<
"Valid RASModel types:" << endl
155 << dictionaryConstructorTablePtr_->sortedToc()
161 cstrIter()(
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
168 template<
class BasicTurbulenceModel>
173 RASDict_ <<= this->subDict(
"RAS");
174 RASDict_.lookup(
"turbulence") >> turbulence_;
178 coeffDict_ <<= *dictPtr;
181 kMin_.readIfPresent(RASDict_);
182 epsilonMin_.readIfPresent(RASDict_);
183 omegaMin_.readIfPresent(RASDict_);
194 template<
class BasicTurbulenceModel>
const objectRegistry & db() const
Return the local objectRegistry.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
BasicTurbulenceModel::rhoField rhoField
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
virtual bool read()
Read model coefficients if they have changed.
BasicTurbulenceModel::transportModel transportModel
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Templated abstract base class for RAS turbulence models.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
const Time & time() const
Return time.
const word & constant() const
Return constant name.
virtual void printCoeffs(const word &type)
Print model coefficients.
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-4.1/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 dictionary * subDictPtr(const word &) const
Find and return a sub-dictionary pointer if present.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
static autoPtr< RASModel > 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 RAS model.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
word group() const
Return group (extension part of name)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
BasicTurbulenceModel::alphaField alphaField
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dimensionSet dimVelocity