Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
chemistry::Mechanism Struct Reference

One ideal-gas phase of a Cantera YAML file: its elements, species and reactions. More...

#include <mechanism.h>

Public Member Functions

uint32_t n_species () const
 
int32_t species_index (const std::string &name) const
 Index of a species by name, or -1 if the mechanism has none.
 
std::vector< std::string > species_names () const
 

Public Attributes

std::string file
 
std::string phase
 
std::vector< std::string > elements
 
std::vector< Species > species
 
std::vector< Reaction > reactions
 

Detailed Description

One ideal-gas phase of a Cantera YAML file: its elements, species and reactions.

Member Function Documentation

◆ n_species()

uint32_t chemistry::Mechanism::n_species ( ) const
inline

◆ species_index()

int32_t chemistry::Mechanism::species_index ( const std::string &  name) const

Index of a species by name, or -1 if the mechanism has none.

◆ species_names()

std::vector< std::string > chemistry::Mechanism::species_names ( ) const

Member Data Documentation

◆ elements

std::vector<std::string> chemistry::Mechanism::elements

◆ file

std::string chemistry::Mechanism::file

◆ phase

std::string chemistry::Mechanism::phase

◆ reactions

std::vector<Reaction> chemistry::Mechanism::reactions

◆ species

std::vector<Species> chemistry::Mechanism::species

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