27 #include "grins_config.h" 
   29 #ifdef GRINS_HAVE_CANTERA 
   42 #include "libmesh/getpot.h" 
   43 #include "libmesh/libmesh_common.h" 
   45 int main(
int argc, 
char* argv[])
 
   51       std::cerr << 
"Error: Must specify input file." << std::endl;
 
   55   GetPot input( argv[1] );
 
   61   libMesh::Real T0 = input( 
"Conditions/T0", 300.0 );
 
   62   libMesh::Real T1 = input( 
"Conditions/T1", 300.0 );
 
   63   libMesh::Real T_inc = input( 
"Conditions/T_increment", 100.0 );
 
   65   libMesh::Real rho = input( 
"Conditions/density", 1.0e-3 );
 
   67   const unsigned int n_species = mixture.
n_species();
 
   69   std::vector<double> Y(n_species,0.0);
 
   70   for( 
unsigned int s = 0; s < n_species; s++ )
 
   72       Y[s] = input( 
"Conditions/mass_fractions", 0.0, s );
 
   75   libMesh::Real R_mix = mixture.
R_mix(Y);
 
   77   std::vector<double> omega_dot(n_species,0.0);
 
   82   output.open( 
"omega_dot.dat", std::ios::trunc );
 
   84   output << 
"# Species names" << std::endl;
 
   85   for( 
unsigned int s = 0; s < n_species; s++ )
 
   90   output << 
"# T [K]                  omega_dot [kg/m^3-s]" << std::endl;
 
   96       kinetics.
omega_dot( T, rho, Y, omega_dot );
 
   98       output.open( 
"omega_dot.dat", std::ios::app );
 
  101       for( 
unsigned int i = 0; i < n_species; i++ )
 
  103           output << std::scientific << std::setprecision(16) 
 
  104                  << omega_dot[i] << 
" ";
 
  118 #endif //GRINS_HAVE_CANTERA 
static PhysicsName reacting_low_mach_navier_stokes()
 
void omega_dot(const libMesh::Real &T, const libMesh::Real rho, const std::vector< libMesh::Real > &mass_fractions, std::vector< libMesh::Real > &omega_dot) const 
 
std::string species_name(unsigned int species_index) const 
 
int main(int argc, char *argv[])
 
unsigned int n_species() const 
 
libMesh::Real R_mix(const std::vector< libMesh::Real > &mass_fractions) const 
 
Wrapper class for storing state for computing thermochemistry and transport properties using Cantera...
 
static std::string material_name(const GetPot &input, const std::string &physics)
Get the name of the material in the Physics/physics section.