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))
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))
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)))
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)))
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)))