38 template<
class NumericType>
42 std::ifstream in(filename.c_str());
45 std::cerr <<
"ERROR: unable to load file " << filename << std::endl;
53 std::vector<NumericType> coeffs;
54 NumericType h_form, val;
65 for (
unsigned int interval=0; interval<n_int; interval++)
67 for (
unsigned int n=0; n<10; n++)
69 in >> val, coeffs.push_back(val);
92 std::cerr <<
"Error: CEA table not fully populated" << std::endl;
void read_cea_thermo_data_ascii(CEAThermodynamics< NumericType > &thermo, const std::string &filename)
const std::map< std::string, Species > & species_name_map() const
const ChemicalMixture< CoeffType > & chemical_mixture() const
void add_curve_fit(const std::string &species_name, const std::vector< CoeffType > &coeffs)
Class storing chemical mixture properties.
The parameters are reduced parameters.
bool check() const
Checks that curve fits have been specified for all species in the mixture.
void skip_comment_lines(std::istream &in, const char comment_start)
Skip comment lines in the header of an ASCII text file prefixed with the comment character 'comment_s...