-
Filter by Topic
Most Popular
All Topics
- List all discussions
Formula/Syntax to specify non-negative concentration
|
Thread index | Previous thread | Next thread | Start a new discussion |
February 2, 2012 8:52pm UTC
Formula/Syntax to specify non-negative concentration
Hello.
While using chemical reaction engineering physics, I was wondering if there is a function or syntax to prevent the concentration of species to become negative.
I found that in 3.5, the syntax ("mod1.cs_C3H6>0") works to prevent the concentration from becoming negative.
I am not sure what function or constraint can be used in 4.2.
Any advise?
Thank you
Brian
Reply | Reply with Quote | Send private message | Report Abuse
February 7, 2012 1:09am UTC in response to Brian Kihun Kim
Re: Formula/Syntax to specify non-negative concentration
Well, I was having the same problem when working with a pde with reaction diffusion equations.
My advise to you would be not to "tweak" the equations at that level, but rather to let the solver pick the actual true solution from the pde. I think the negative solution happens because your model might be a little too sensitive.
A way around that is to make a simple change of variable. For example let w= log(c) and then rewrite the equation from there.
Good luck
Reply | Reply with Quote | Send private message | Report Abuse
Rules and guidelines

