Cantera  2.0
Namespaces | Functions
CKParser.cpp File Reference
#include <numeric>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <math.h>
#include "CKParser.h"
#include "ckr_utils.h"
#include "writelog.h"
#include <cstdio>
#include <cstdlib>
Include dependency graph for CKParser.cpp:

Go to the source code of this file.

Namespaces

namespace  ckr
 the namespace for the CKReader packaage
 

Functions

static string int2s (int n, std::string fmt="%d")
 
static int parseGroupString (std::string str, std::vector< std::string > &esyms, vector_int &result)
 
static void illegalThermoLine (std::ostream &f, char n, int linenum=-1)
 Throw an exception if one of the four lines that must have 1, 2, 3, or 4 in column 80 do not.
 
static void illegalNumber (std::ostream &f, std::string s, int linenum=-1)
 Throw an exception if number string is bad.
 
void getDefaultAtomicWeights (map< string, double > &weights)
 Get table of atomic weights from the internal database.
 
static string d2e (string s)
 
static double de_atof (std::string s)
 
static void checkNASA9Temps (std::ostream &log, vector_fp &temp)
 Check validity of the temperatures defining the temperature ranges for the NASA9 polynomial species thermodynamic property fits.
 
static double getNumberFromString (std::string s)
 
static void addElement (std::string symbol, double atoms, Species &sp, std::ostream &log)
 Add an element to a species.
 
static void checkTemps (std::ostream &log, double tmin, double tmid, double tmax)
 Check validity of the three temperatures defining the two temperature ranges for the NASA polynomial species thermodynamic property fits.
 
static void getSpecies (std::string s, int n, vector< RxnSpecies > &species, bool debug, std::ostream &log)
 
int getGroups (std::string::const_iterator begin, std::string::const_iterator end, std::vector< std::string > &esyms, std::vector< grouplist_t > &rxngroups)
 given a string specifying either the reactant or product side of a reaction equation, construct a list of Constituent objects containing the species symbols and stoichiometric coefficients.