예제 #1
0
파일: Func.py 프로젝트: hkmoffat/cantera
 def __init__(self, coefficients):
     """
     coefficients - sequence of \f$(A, b, E)\f$ triplets.
     
     """
     cc = asarray(coefficients,'d')
     n, m = cc.shape
     if m <> 3:
         raise CanteraError('Three Arrhenius parameters (A, b, E) required.')
     Func1.__init__(self, 3, n, ravel(cc))        
예제 #2
0
 def __init__(self, coefficients):
     """
     coefficients - sequence of \f$(A, b, E)\f$ triplets.
     
     """
     cc = asarray(coefficients,'d')
     n, m = cc.shape
     if m <> 3:
         raise CanteraError('Three Arrhenius parameters (A, b, E) required.')
     Func1.__init__(self, 3, n, ravel(cc))        
예제 #3
0
파일: Func.py 프로젝트: hkmoffat/cantera
 def __init__(self, coefficients):
     """
     :param coefficients:
         sequence of (*A*, *b*, *E*) triplets.
     """
     cc = asarray(coefficients, "d")
     n, m = cc.shape
     if m <> 3:
         raise CanteraError("Three Arrhenius parameters (A, b, E) required.")
     Func1.__init__(self, 3, n, ravel(cc))
예제 #4
0
 def __init__(self, omega, coefficients):
     """
     omega - fundamental frequency [radians/sec].
     
     coefficients - List of (a,b) pairs, beginning with \f$n = 0\f$.
     
     """
     cc = asarray(coefficients, 'd')
     n, m = cc.shape
     if m <> 2:
         raise CanteraError('provide (a, b) for each term')
     cc[0, 1] = omega
     Func1.__init__(self, 1, n - 1, ravel(transpose(cc)))
예제 #5
0
파일: Func.py 프로젝트: hkmoffat/cantera
 def __init__(self, omega, coefficients):
     """
     omega - fundamental frequency [radians/sec].
     
     coefficients - List of (a,b) pairs, beginning with \f$n = 0\f$.
     
     """
     cc = asarray(coefficients,'d')       
     n, m = cc.shape
     if m <> 2:
         raise CanteraError('provide (a, b) for each term')
     cc[0,1] = omega
     Func1.__init__(self, 1, n-1, ravel(transpose(cc)))
예제 #6
0
파일: Func.py 프로젝트: hkmoffat/cantera
 def __init__(self, omega, coefficients):
     """
     :param omega:
         fundamental frequency [radians/sec].
     :param coefficients:
         List of (a,b) pairs, beginning with n = 0.
     """
     cc = asarray(coefficients, "d")
     n, m = cc.shape
     if m <> 2:
         raise CanteraError("provide (a, b) for each term")
     cc[0, 1] = omega
     Func1.__init__(self, 1, n - 1, ravel(transpose(cc)))