27 #ifndef ANTIOCH_ASCII_PARSER_H
28 #define ANTIOCH_ASCII_PARSER_H
51 template <
class NumericType>
52 class ChemicalMixture;
54 template <
class NumericType>
58 template <
typename NumericType,
typename CurveFit>
61 template <
typename NumericType,
typename CurveFit>
64 template <
typename NumericType>
67 template <
typename NumericType>
71 template <
typename NumericType>
74 template <
typename NumericType>
77 template <
typename NumericType>
81 template <
typename NumericType>
84 template <
typename Macro,
typename NumericType>
87 template <
typename NumericType>
127 {
antioch_error_msg(
"ERROR: ASCIIParsing only supports parsing for CEACurveFit!");}
131 {
antioch_error_msg(
"ERROR: ASCIIParsing only supports parsing for CEACurveFit!");}
144 template <
typename CurveType>
149 template <
typename Mixture>
153 void find_first(
unsigned int & index,
unsigned int n_data)
const;
void read_thermodynamic_data_root(NASAThermoMixture< NumericType, CurveType > &thermo)
read the thermodynamic data
std::vector< unsigned int > _ignored
bool _is_antioch_default_mixture_file
Needed to be able to warn about using not-trusted enthalpies of formation.
void read_transport_data(TransportMixture< NumericType > &transport_mixture)
reads the transport data, not valid in xml && chemkin
void read_electronic_data(ChemicalMixture< NumericType > &chem_mixture)
read the electronic data
std::map< ParsingUnit, std::string > _unit_map
void find_first(unsigned int &index, unsigned int n_data) const
find the index of the wanted data
void read_transport_data_root(Mixture &transport)
read the thermodynamic data
const unsigned int _n_columns_el_data
This class stores the NASA polynomial fit to the thermodynamics quantities and .
#define antioch_error_msg(errmsg)
const std::string file() const
void change_file(const std::string &filename)
This class only differs from NASA9CurveFit in the construction.
void set_ignored_columns(const std::vector< unsigned int > &ignored)
set the indexes of to-be-ignored columns
Class storing chemical mixture properties.
const unsigned int _n_columns_chemical_species
void check_warn_for_species_with_untrusted_hf(const std::string &name) const
Warn about species for which Antioch default mixture file has untrusted H_f values.
const unsigned int _n_columns_transport_species
void read_vibrational_data(ChemicalMixture< NumericType > &chem_mixture)
read the vibrational data
Class storing chemical mixture properties.
The parameters are reduced parameters.
void read_thermodynamic_data(NASAThermoMixture< NumericType, CEACurveFit< NumericType > > &thermo)
reads the thermo, NASA generalist, no templates for virtual
const std::vector< std::string > species_list()
read species list
A parser is an instance related to a file.
void read_thermodynamic_data(NASAThermoMixture< NumericType, NASA7CurveFit< NumericType > > &)
reads the thermo, NASA generalist, no templates for virtual
const unsigned int _n_columns_vib_data
void read_thermodynamic_data(NASAThermoMixture< NumericType, NASA9CurveFit< NumericType > > &)
reads the thermo, NASA generalist, no templates for virtual
void read_chemical_species(ChemicalMixture< NumericType > &chem_mixture)
read the mandatory data