The stoichiometric coefficient matrix is an important part of AR, but creating it (as a numpy 2-D array) is tiresome and error-prone because the coefficients need to be entered manually. genStoichMat() and associated functions help to generate this matrix from a more natural string format.
e.g genStoichMat(['1.5*A + 0.35*B -> C + 4*D', 'A + D -> E']) generates the matrix
The stoichiometric coefficient matrix is an important part of AR, but creating it (as a numpy 2-D array) is tiresome and error-prone because the coefficients need to be entered manually.
genStoichMat()
and associated functions help to generate this matrix from a more natural string format.e.g
genStoichMat(['1.5*A + 0.35*B -> C + 4*D', 'A + D -> E'])
generates the matrixwith the following dictionary corresponding to component indices: