Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Undefined variable error in Chemistry module
Posted 25.03.2020, 14:32 GMT-4 Chemical, Chemical Reaction Engineering Version 5.4 0 Replies
Please login with a confirmed email address before reporting spam
Hi, I'm modeling a heterogeneous surface reaction with the Chemistry module. For a reaction A(g) + S(ads) <=> A(ads) (where S denotes a surface site), the rate expression for A(g) must be equal to the change in the number of moles of A(ads) divided by the reactor volume. So since the concentration of A(ads) is constant over the catalyst surface, the rate expression for A(g) should be the rate expression for A(ads) divided by the distance from the catalyst surface to the bulk solution, which is 0.01 cm. So my rate expression for A(ads) is chem.r_1 and the rate expression for A(g) is -chem.r_1/0.01 cm. On computing the reaction, I have the following error message:
Undefined variable. -Variable: comp1.cS_surf -Geometry: geom1 -Domain: 1 Failed to evaluate Jacobian of expression. -Expression: dvol_spatial* comp1.tds.reac1.R_cCO2 Failued to evalute Jacobian of expression. -Expression: (comp1.tds.react1.R_cCO2test* (comp1.cCO2))* (dvolspatial)
The error message will go away on changing the rate expression for A(g) to a constant value. Any thoughts on what may be causing this issue?
Hello Kelsey Levine
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.