-
Dear all, ''' kinetic model ''' However, it shows: ERROR | ValueError: arrhenius should contain 0 rate constants, 2 have been provided and I tried others like below: k0 = np.empty((0)) I am wondering if I need to set 1 rate constants for this equation , but why deos 0 rate constants show here? and or... Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Cheng, here are the reasons of the error: The following script should work:
And here is the output: I hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi Cheng,
here are the reasons of the error:
1/
reactions
should be alist
, atuple
or adict
, but("A -> B")
is a string so, the MassActionKinetics instance contains 0 reaction and so expects 0 rate constant2/
arrhenius
(yourk0
variable) is a 1D array of size 2, hence you provide 2 rate constants.The following script should work: