37 #ifndef singleComponentMixture_H 38 #define singleComponentMixture_H 51 template<
class ThermoType>
90 return "pureMixture<" + ThermoType::typeName() +
'>';
142 <<
"Specie index must be zero for a single component " errorManipArg< error, int > exit(error &err, const int errNo=1)
void read(const dictionary &)
Read dictionary.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~singleComponentMixture()=default
Destructor.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
static word typeName()
Return the instantiated type name.
A class for handling words, derived from Foam::string.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
const dictionary & thermoDict
singleComponentMixture(const dictionary &thermoDict, const fvMesh &mesh, const word &phaseName)
Construct from dictionary, mesh and phase name.
const ThermoType & patchFaceMixture(const label patchi, const label facei) const
Get the mixture for the given patch face.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const ThermoType & cellMixture(const label celli) const
Get the mixture for the given cell.
Mesh data needed to do the Finite Volume discretisation.
const ThermoType & cellVolMixture(const scalar p, const scalar T, const label celli)
Get the volumetric mixture for the given cell.
const ThermoType & getLocalThermo(const label speciei) const
Return thermo based on index.
const ThermoType & patchFaceVolMixture(const scalar p, const scalar T, const label patchi, const label facei) const
Get the volumetric mixture for the given patch face.
Single component mixture.