Go to the documentation of this file.
38 #ifndef CompositionModel_H
39 #define CompositionModel_H
60 template<
class CloudType>
61 class CompositionModel
63 public CloudSubModelBase<CloudType>
166 const word& cmptName,
167 const bool allowNotFound =
false
174 const word& cmptName,
175 const bool allowNotFound =
false
183 const bool allowNotFound =
false
272 #define makeCompositionModel(CloudType) \
274 typedef Foam::CloudType::reactingCloudType reactingCloudType; \
275 defineNamedTemplateTypeNameAndDebug \
277 Foam::CompositionModel<reactingCloudType>, \
282 defineTemplateRunTimeSelectionTable \
284 CompositionModel<reactingCloudType>, \
290 #define makeCompositionModelType(SS, CloudType) \
292 typedef Foam::CloudType::reactingCloudType reactingCloudType; \
293 defineNamedTemplateTypeNameAndDebug(Foam::SS<reactingCloudType>, 0); \
295 Foam::CompositionModel<reactingCloudType>:: \
296 adddictionaryConstructorToTable<Foam::SS<reactingCloudType> > \
297 add##SS##CloudType##reactingCloudType##ConstructorToTable_;
virtual const scalarField & YMixture0() const =0
Return the list of mixture mass fractions.
virtual scalar Cp(const label phaseI, const scalarField &Y, const scalar p, const scalar T) const
Return specific heat caoacity for the phase phaseI.
A class for handling words, derived from string.
virtual scalar H(const label phaseI, const scalarField &Y, const scalar p, const scalar T) const
Return total enthalpy for the phase phaseI.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
A class for managing temporary objects.
const SLGThermo & thermo_
Reference to the thermo database.
label localId(const label phaseI, const word &cmptName, const bool allowNotFound=false) const
Return local id of component cmptName in phase phaseI.
label localToCarrierId(const label phaseI, const label id, const bool allowNotFound=false) const
Return carrier id of component given local id.
Simple container for a list of phase properties.
virtual scalar Hs(const label phaseI, const scalarField &Y, const scalar p, const scalar T) const
Return sensible enthalpy for the phase phaseI.
virtual scalar Hc(const label phaseI, const scalarField &Y, const scalar p, const scalar T) const
Return chemical enthalpy for the phase phaseI.
Templated reacting parcel composition model class Consists of carrier species (via thermo package),...
virtual label idGas() const =0
Gas id.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const phasePropertiesList & phaseProps() const
Return the list of phase properties.
Pre-declare SubField and related Field type.
const scalarField & Y0(const label phaseI) const
Return the list of phase phaseI mass fractions.
tmp< scalarField > X(const label phaseI, const scalarField &Y) const
Return the list of phase phaseI volume fractions fractions.
phasePropertiesList phaseProps_
List of phase properties.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual label idSolid() const =0
Solid id.
Templated base class for dsmc cloud.
const liquidMixtureProperties & liquids() const
Return the global (additional) liquids.
virtual label idLiquid() const =0
Liquid id.
const basicSpecieMixture & carrier() const
Return the carrier components (wrapper function)
CompositionModel(CloudType &owner)
Construct null from owner.
A list of keyword definitions, which are a keyword followed by any number of values (e....
declareRunTimeSelectionTable(autoPtr, CompositionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
const wordList & componentNames(const label phaseI) const
Return the list of component names for phaseI.
const solidMixtureProperties & solids() const
Return the global (additional) solids.
TypeName("compositionModel")
Runtime type information.
label nPhase() const
Return the number of phases.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual autoPtr< CompositionModel< CloudType > > clone() const =0
Construct and return a clone.
Macros to ease declaration of run-time selection tables.
const SLGThermo & thermo() const
Return the thermo database.
virtual ~CompositionModel()
Destructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static autoPtr< CompositionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const wordList & phaseTypes() const
Return the list of phase type names.
label carrierId(const word &cmptName, const bool allowNotFound=false) const
Return global id of component cmptName in carrier thermo.
virtual scalar L(const label phaseI, const scalarField &Y, const scalar p, const scalar T) const
Return latent heat for the phase phaseI.
const wordList & stateLabels() const
Return the list of state labels (s), (l), (g) etc.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
PtrList< volScalarField > & Y