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.
Limits on a Dependent Variable
Posted 11 mag 2011, 11:44 GMT-4 1 Reply
Please login with a confirmed email address before reporting spam
Hi,
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 of u cannot exceed a certain value, say u_max. However, due to numerics, I obtain values larger than this maximum value which is unrealistic. Furthermore, those values cause roots of negative numbers etc that lead to further numerical instabilities in the solver. While I can use expressions such as (u_max+(u-u_max)*(u<u_max)) instead of u in the problematic expressions, it is not as straightforward as it sounds in the complex implementation. I am wondering if there is a feature in the COMSOL's solver where you can specify limits to a dependent variable. This has been a recurring issue that I faced several times in the past, and I would like to learn the more elegant solution if there is any.
Regards,
-Alper
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 of u cannot exceed a certain value, say u_max. However, due to numerics, I obtain values larger than this maximum value which is unrealistic. Furthermore, those values cause roots of negative numbers etc that lead to further numerical instabilities in the solver. While I can use expressions such as (u_max+(u-u_max)*(u<u_max)) instead of u in the problematic expressions, it is not as straightforward as it sounds in the complex implementation. I am wondering if there is a feature in the COMSOL's solver where you can specify limits to a dependent variable. This has been a recurring issue that I faced several times in the past, and I would like to learn the more elegant solution if there is any.
Regards,
-Alper
1 Reply Last Post 11 mag 2011, 12:10 GMT-4