31 template<
class BasicThermophysicalTransportModel>
34 BasicThermophysicalTransportModel
41 Info<< coeffDict_.dictName() << coeffDict_ <<
endl;
48 template<
class BasicThermophysicalTransportModel>
51 BasicThermophysicalTransportModel
59 BasicThermophysicalTransportModel(momentumTransport, thermo),
60 laminarDict_(this->subOrEmptyDict(
"laminar")),
61 printCoeffs_(laminarDict_.lookupOrDefault<
Switch>(
"printCoeffs",
false)),
62 coeffDict_(laminarDict_.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 laminar thermophysical transport model " 106 << modelType <<
endl;
108 typename dictionaryConstructorTable::iterator cstrIter =
109 dictionaryConstructorTablePtr_->find(modelType);
111 if (cstrIter == dictionaryConstructorTablePtr_->end())
114 <<
"Unknown laminar thermophysical transport model " 115 << modelType <<
nl <<
nl 116 <<
"Available models:" << endl
117 << dictionaryConstructorTablePtr_->sortedToc()
123 cstrIter()(momentumTransport,
thermo)
128 Info<<
"Selecting default laminar thermophysical transport model " 130 BasicThermophysicalTransportModel>::typeName <<
endl;
136 BasicThermophysicalTransportModel
137 >(momentumTransport,
thermo)
145 template<
class BasicThermophysicalTransportModel>
148 BasicThermophysicalTransportModel
153 laminarDict_ <<= this->subDict(
"laminar");
155 coeffDict_ <<= laminarDict_.optionalSubDict(
type() +
"Coeffs");
166 template<
class BasicThermophysicalTransportModel>
169 BasicThermophysicalTransportModel
Templated abstract base class for laminar thermophysical transport models.
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.
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)
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()
laminarThermophysicalTransportModel ::thermoModel thermoModel
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
unityLewisFourier's energy gradient heat flux model for laminar flow. Specie fluxes are computed assu...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
laminarThermophysicalTransportModel ::momentumTransportModel momentumTransportModel
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.