Setting up custom property and reaction packages #1338
-
Hi,
Thank you very much in advance for all your support. Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@tanuj Welcome to IDAES. To answer your questions:
|
Beta Was this translation helpful? Give feedback.
-
Hi again, The first issue is that a single Pyomo component (e.g. I think this is the source of your problem, although the error does not make this very clear (it is strictly correct, but does nothing to explain why it happened). |
Beta Was this translation helpful? Give feedback.
Hi again,
The first issue is that a single Pyomo component (e.g.
Param
is this case) can only have a single set of units; you cannot give different units for different indices. So, in your case you will need separateParams
for each reaction. For the (relatively rare) case where all the Arrhenius constants have the same units, you can use a single indexedParam
, but unfortunately Arrhenius constants tend to have weird units.I think this is the source of your problem, although the error does not make this very clear (it is strictly correct, but does nothing to explain why it happened).