26 #include "grins_config.h"
28 #ifdef GRINS_HAVE_CANTERA
38 #include "libmesh/getpot.h"
41 #include "libmesh/ignore_warnings.h"
42 #include "cantera/IdealGasMix.h"
43 #include "libmesh/restore_warnings.h"
49 : _cantera_gas( mixture.get_chemistry() )
53 const std::vector<libMesh::Real>& mass_fractions,
54 std::vector<libMesh::Real>& omega_dot )
const
56 libmesh_assert_equal_to( mass_fractions.size(), omega_dot.size() );
57 libmesh_assert_equal_to( mass_fractions.size(),
_cantera_gas.nSpecies() );
58 libmesh_assert_greater(T,0.0);
59 libmesh_assert_greater(rho,0.0);
64 libMesh::Threads::spin_mutex::scoped_lock lock(cantera_mutex);
71 catch(Cantera::CanteraError)
73 Cantera::showErrors(std::cerr);
78 for(
unsigned int s = 0; s < omega_dot.size(); s++ )
89 #endif //GRINS_HAVE_CANTERA
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
Cantera::IdealGasMix & _cantera_gas
Wrapper class for storing state for computing thermochemistry and transport properties using Cantera...