Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Mathematics creating an "impossible" physics while solving
Posted Sep 8, 2011, 9:25 a.m. EDT Chemical Reaction Engineering, Studies & Solvers Version 4.2 3 Replies
Please login with a confirmed email address before reporting spam
Hi !
I have a steady state model where a irreversible reaction occurs, simple a+b = c. Theres a flux of "a" coming from one of my boundarys, the one at the bottom on the attached picture and this reacts with b (bulk material) to produce c.
Because of what I think must be the mathematics I get a band of negative values of a, something that not will happen in "real life". See attached picture.
Have read a bit around but without luck. Is there any way to control the reaction in such a way that
if a >= 0 then the actual concentration is used in the reaction equation
if a< 0 the concentration is set to zero, giving a reaction result of zero
Thanks for your help and tips.
Nils Eivind
I have a steady state model where a irreversible reaction occurs, simple a+b = c. Theres a flux of "a" coming from one of my boundarys, the one at the bottom on the attached picture and this reacts with b (bulk material) to produce c.
Because of what I think must be the mathematics I get a band of negative values of a, something that not will happen in "real life". See attached picture.
Have read a bit around but without luck. Is there any way to control the reaction in such a way that
if a >= 0 then the actual concentration is used in the reaction equation
if a< 0 the concentration is set to zero, giving a reaction result of zero
Thanks for your help and tips.
Nils Eivind
Attachments:
3 Replies Last Post Sep 12, 2011, 12:34 p.m. EDT