35 #ifndef ubMixtureMap_H
36 #define ubMixtureMap_H
63 template<
class Thermo,
class To>
68 return dynamic_cast<const To&
>(
thermo);
70 catch (
const std::bad_cast&)
73 <<
"Attempt to cast type " <<
thermo.type()
77 return dynamic_cast<const To&
>(
thermo);
84 return mixtureCast<uRhoMulticomponentThermo, To>(
uThermo_);
90 return mixtureCast<bRhoMulticomponentThermo, To>(
bThermo_);
Generic GeometricField class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Base-class for combustion fluid thermodynamic properties based on compressibility.
Base-class for combustion fluid thermodynamic properties based on compressibility.
Base class for unburnt/burnt gas composition mapping.
void operator=(const ubMixtureMap &)=delete
Disallow default bitwise assignment.
virtual void reset(const volScalarField &b, UPtrList< volScalarField > &Yu, const volScalarField &c, const UPtrList< const volScalarField > &Yb) const =0
Reset the mixture to an unburnt state.
const To & bMixtureCast() const
declareRunTimeSelectionTable(autoPtr, ubMixtureMap, thermo,(const uRhoMulticomponentThermo &uThermo, const bRhoMulticomponentThermo &bThermo),(uThermo, bThermo))
ubMixtureMap(const uRhoMulticomponentThermo &uThermo, const bRhoMulticomponentThermo &bThermo)
Construct from components.
const To & mixtureCast(const Thermo &thermo) const
virtual PtrList< volScalarField::Internal > prompt(const PtrList< volScalarField > &Yu) const =0
Return the burnt gas prompt specie mass fractions.
const bRhoMulticomponentThermo & bThermo_
virtual ~ubMixtureMap()
Destructor.
const uRhoMulticomponentThermo & uThermo_
const To & uMixtureCast() const
TypeName("ubMixtureMap")
Runtime type information.
static autoPtr< ubMixtureMap > New(const uRhoMulticomponentThermo &uThermo, const bRhoMulticomponentThermo &bThermo)
Return a reference to the selected XiEq model.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar c
Speed of light in a vacuum.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
errorManip< error > abort(error &err)
Macros to ease declaration of run-time selection tables.
fluidMulticomponentThermo & thermo