27 #include "isotropic.H"
84 Info<<
indentOrNl <<
"Selecting solid thermophysical transport model "
87 typename dictionaryConstructorTable::iterator cstrIter =
88 dictionaryConstructorTablePtr_->find(modelType);
90 if (cstrIter == dictionaryConstructorTablePtr_->end())
93 <<
"Unknown solid thermophysical transport model "
94 << modelType <<
nl <<
nl
95 <<
"Available models:" <<
endl
96 << dictionaryConstructorTablePtr_->sortedToc()
108 <<
"Selecting default solid thermophysical transport model "
115 new solidThermophysicalTransportModels::
116 isotropic<phaseSolidThermophysicalTransportModel>(
alpha,
thermo)
127 return typeDict(
type());
134 return optionalTypeDict(
type);
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static word groupName(Name name, const word &group)
static const word & constant()
Return constant name.
virtual const fvMesh & mesh() const =0
Return const access to the mesh.
virtual const word & phaseName() const =0
Phase name.
virtual const volScalarField & kappa() const =0
Thermal conductivity of mixture [W/m/K].
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Time & time() const
Return the top-level database.
Abstract base class for solid thermophysical transport models.
virtual void correct()
Solve the thermophysical transport model equations.
static autoPtr< phaseSolidThermophysicalTransportModel > New(const alphaField &alpha, const solidThermo &thermo)
Return a reference to the selected thermophysical transport model.
virtual bool read()=0
Read model coefficients if they have changed.
phaseSolidThermophysicalTransportModel(const word &type, const alphaField &alpha, const solidThermo &thermo)
Construct from solid thermophysical properties.
const dictionary & typeDict() const
Const access to the coefficients dictionary.
virtual void predict()=0
Predict the thermophysical transport coefficients if possible.
virtual tmp< volScalarField > kappa() const
Thermal conductivity [W/m/K].
virtual bool read()
Read object.
Base-class for solid thermodynamic properties.
Abstract base class for all fluid and solid thermophysical transport models.
A class for managing temporary objects.
Templated form of IOobject providing type information for file reading and header type checking.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
defineRunTimeSelectionTable(fvConstraint, dictionary)
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
fluidMulticomponentThermo & thermo