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.

How to limit the range of dependent variable?

Please login with a confirmed email address before reporting spam

I want to solve the PDE in comsol in the special range for dependent variable. For example, the dependent variable,i.e., the concentration c is limited to c<=0.2 in the PDE, how to do?


2 Replies Last Post 17.01.2019, 10:31 MEZ

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 17.01.2019, 08:41 MEZ

There seems no option for this, but you might use penalty approach to achieve it.

-------------------
ZHANG, Pu
School of Physics,
Huazhong University of Science and Technology
There seems no option for this, but you might use penalty approach to achieve it.

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 17.01.2019, 10:31 MEZ

Hi,

There is no direct way for setting an upper limit. You can however set a lower limit using by adding a Lower Limit node to a segregated solver. If you can reformulate your problem, that may be an option.

Regards,
Henrik

-------------------
Henrik Sönnerlind
COMSOL
Hi, There is no direct way for setting an upper limit. You can however set a lower limit using by adding a **Lower Limit** node to a segregated solver. If you can reformulate your problem, that may be an option. Regards, Henrik

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.