ABLATE Source Documentation  0.12.33
ablate::monitors::MixtureFractionCalculator Class Reference

#include <mixtureFractionCalculator.hpp>

Public Member Functions

 MixtureFractionCalculator (const std::shared_ptr< ablate::eos::EOS > &eos, std::map< std::string, double > massFractionsFuel, std::map< std::string, double > massFractionsOxidizer, const std::vector< std::string > &trackingElements={})
 
 MixtureFractionCalculator (const std::shared_ptr< ablate::eos::EOS > &eos, const std::shared_ptr< ablate::mathFunctions::FieldFunction > &massFractionsFuel, const std::shared_ptr< ablate::mathFunctions::FieldFunction > &massFractionsOxidizer, const std::vector< std::string > &trackingElements={})
 
template<class T >
Calculate (T *yi) const
 
std::shared_ptr< ablate::eos::ChemistryModelGetEos ()
 

Detailed Description

Calculate mixture fraction given a list of species using elemental species based on Bilger's (1980) definition of mixture fraction Zeta = (Zi-Zi,ox)/(Zi,f-Zi,ox) which is the normalized elemental mass fraction of any element where f denotes the fuel stream and ox denotes the oxidizer stream.

Constructor & Destructor Documentation

◆ MixtureFractionCalculator() [1/2]

ablate::monitors::MixtureFractionCalculator::MixtureFractionCalculator ( const std::shared_ptr< ablate::eos::EOS > &  eos,
std::map< std::string, double >  massFractionsFuel,
std::map< std::string, double >  massFractionsOxidizer,
const std::vector< std::string > &  trackingElements = {} 
)

Create the MixtureFractionCalculator to compute the zMixFuel, zMixOxidizer, and trackingElements

Parameters
eosThe equation of state must be tChem
massFractionsFuel
massFractionsOxidizer
trackingElementsdefaults to C & H

◆ MixtureFractionCalculator() [2/2]

ablate::monitors::MixtureFractionCalculator::MixtureFractionCalculator ( const std::shared_ptr< ablate::eos::EOS > &  eos,
const std::shared_ptr< ablate::mathFunctions::FieldFunction > &  massFractionsFuel,
const std::shared_ptr< ablate::mathFunctions::FieldFunction > &  massFractionsOxidizer,
const std::vector< std::string > &  trackingElements = {} 
)

Create the MixtureFractionCalculator to compute the zMixFuel, zMixOxidizer, and trackingElements using field functions. The point is evaluated at [0, 0, 0] with t = 0; This is used to allow reuse of field function setup in input files

Parameters
eosThe equation of state must be tChem
massFractionsFuel
massFractionsOxidizer
trackingElementsdefaults to C & H

Member Function Documentation

◆ Calculate()

template<class T >
T ablate::monitors::MixtureFractionCalculator::Calculate ( T *  yi) const
inline

Computes the mixture fraction for a give set of Yi's

Template Parameters
T
Parameters
yi.The yi's are assumed to be of length/order of the species in the eos
Returns

◆ GetEos()

std::shared_ptr<ablate::eos::ChemistryModel> ablate::monitors::MixtureFractionCalculator::GetEos ( )
inline

Return accesses the base eos

Returns

The documentation for this class was generated from the following files: