Пример #1
0
 def productStoichCoeffs(self):
     """The array of product stoichiometric coefficients. Element
     [k,i] of this array is the product stoichiometric
     coefficient of species *k* in reaction *i*."""
     nsp = _cantera.kin_nspecies(self.ckin)
     nr = _cantera.kin_nreactions(self.ckin)
     nu = zeros((nsp,nr),'d')
     for i in range(nr):
         for k in range(nsp):
             nu[k,i] = _cantera.kin_pstoichcoeff(self.ckin,k,i)
     return nu
Пример #2
0
 def productStoichCoeffs(self):
     """The array of product stoichiometric coefficients. Element
     [k,i] of this array is the product stoichiometric
     coefficient of species k in reaction i."""
     nsp = _cantera.kin_nspecies(self.ckin)
     nr = _cantera.kin_nreactions(self.ckin)
     nu = zeros((nsp, nr), 'd')
     for i in range(nr):
         for k in range(nsp):
             nu[k, i] = _cantera.kin_pstoichcoeff(self.ckin, k, i)
     return nu
Пример #3
0
 def nReactions(self):
     """Number of reactions."""
     return _cantera.kin_nreactions(self.ckin)
Пример #4
0
 def nReactions(self):
     """Number of reactions."""
     return _cantera.kin_nreactions(self.ckin)