31 template<
class BasicThermophysicalTransportModel>
34 BasicThermophysicalTransportModel
41 Info<< coeffDict_.dictName() << coeffDict_ <<
endl;
48 template<
class BasicThermophysicalTransportModel>
51 BasicThermophysicalTransportModel
59 BasicThermophysicalTransportModel(momentumTransport, thermo),
60 RASDict_(this->subOrEmptyDict(
"RAS")),
61 printCoeffs_(RASDict_.lookupOrDefault<
Switch>(
"printCoeffs",
false)),
62 coeffDict_(RASDict_.optionalSubDict(type +
"Coeffs"))
68 template<
class BasicThermophysicalTransportModel>
73 BasicThermophysicalTransportModel
78 BasicThermophysicalTransportModel
89 thermophysicalTransportModel::typeName,
90 momentumTransport.alphaRhoPhi().group()
92 momentumTransport.time().constant(),
93 momentumTransport.mesh(),
105 Info<<
"Selecting RAS thermophysical transport model " 106 << modelType <<
endl;
108 typename dictionaryConstructorTable::iterator cstrIter =
109 dictionaryConstructorTablePtr_->find(modelType);
111 if (cstrIter == dictionaryConstructorTablePtr_->end())
114 <<
"Unknown RAS thermophysical transport model " 115 << modelType <<
nl <<
nl 116 <<
"Available models:" << endl
117 << dictionaryConstructorTablePtr_->sortedToc()
123 cstrIter()(momentumTransport,
thermo)
133 BasicThermophysicalTransportModel
135 > RASunityLewisEddyDiffusivity;
137 Info<<
"Selecting default RAS thermophysical transport model " 138 << RASunityLewisEddyDiffusivity::typeName <<
endl;
142 new RASunityLewisEddyDiffusivity
144 RASunityLewisEddyDiffusivity::typeName,
156 template<
class BasicThermophysicalTransportModel>
159 BasicThermophysicalTransportModel
164 RASDict_ <<= this->subDict(
"RAS");
166 coeffDict_ <<= RASDict_.optionalSubDict(
type() +
"Coeffs");
177 template<
class BasicThermophysicalTransportModel>
fluidReactionThermo & thermo
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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/any.
Eddy-diffusivity based energy gradient heat flux model for RAS or LES of turbulent flow...
BasicThermophysicalTransportModel::thermoModel thermoModel
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.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel
A class for handling words, derived from string.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/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()
Templated abstract base class for RAS thermophysical transport models.
virtual void correct()
Correct the RAS transport.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.