Skip to content
Discussion options

You must be logged in to vote

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

@self.Constraint(
    self.flowsheet().time,
    self.length_domain,
    pc_set,
    doc="Kinetic reaction stoichiometry constraint",
)
def rate_reaction_stoichiometry_constraint(b, t, x, p,…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tk3016
Comment options

You must be logged in to vote
2 replies
@dallan-keylogic
Comment options

@tk3016
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants