Modelling a reaction with variable stoichiometric coefficients #1617
-
Hi, I am trying to model a reactor for Fischer-Tropsch synthesis using a PFR (ControlVolume1D) unit. From what I can understand by looking at the source code of ControlVolume1D (c.f. Lines 751-812) is that I can only define stoichiometric coefficients as parameters. Hence, I wanted to ask about a workaround without having to make too many changes to the original code myself. Looking forward to hearing back from you. Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You say the stoichiometric coefficients are variables---are they considered parameters (but not A quick fix is to manually delete the constraint associated with the reaction in the control volume, then replace it with a modified version with variable coefficients. For a rate reaction, the constraint you need to replace is
You delete that by writing
Note that using existing initialization methods will require the stoichiometric coefficient |
Beta Was this translation helpful? Give feedback.
-
Hi @dallan-keylogic, Many thanks for your prompt and comprehensive response - much appreciated. Here, the stoichiometric coefficient is a function of the chain length probability (the amount of Cn+ compounds produced in the reaction), which in turn is a function of the temperature inside the reactor. Is the workaround you suggested still valid for this case? Best wishes, |
Beta Was this translation helpful? Give feedback.
You say the stoichiometric coefficients are variables---are they considered parameters (but not
Param
objects) that need to be identified, or are they functions of local properties like temperature, pressure, and composition? The fix may look different depending on which it is.A quick fix is to manually delete the constraint associated with the reaction in the control volume, then replace it with a modified version with variable coefficients. For a rate reaction, the constraint you need to replace is