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.
Limit a variable
Posted May 26, 2016, 10:43 a.m. EDT Modeling Tools & Definitions, Parameters, Variables, & Functions Version 5.2 0 Replies
Please login with a confirmed email address before reporting spam
I have a relatively simple question that I couldn't find an answer for in the forums. I am using the General Form PDE mode to solve for a dependent variable, u. From the physics of the problem, I know that the value is between 0 and 1.
However, due to numerics, I obtain values higher and lower than the limits values.
I tried at least to put a lower limit, near 0 like 10^-6. Even with that i can see, in some cases that the variable u can be negative. Even with good BC set-up, i still got the same problem of unstability, or of
inconsistent value.
I also tried to put an other General Forme PDE to limit the variable, and as well a global constraint, without success.
Thanks for your help !
Regards,
Simon
Hello Simon Reisz
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.