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.

Enforcing max/min values in PDE mode

Please login with a confirmed email address before reporting spam

Hi there!

I'm currently solving a system of equations, all entered in PDE mode. Only one is time dependent and is of the form:

Ft + v . grad(F) = (1-F)div(v)

I used the coefficient PDE mode for this equation and a reasonable solution is returned, but I would like to be able to set max and min values for F but can't seem to figure out how. I tried setting adding a term to all the coefficients:

Ft + (F<Fmax) v . grad(F) = (F<Fmax)*(1-F)div(v)

I had hoped that this would just make Ft = 0 where F exceeds the maximum value, so that F would no longer change in those locations but it doesn't have any effect at all.

Does anyone know:

1. Why my attempt doesn't work?
2. How I can go about enforcing max/min values?
3. How I could stop calculations if a max/min value is exceeded?

0 Replies Last Post 13.04.2012, 10:04 GMT-4
COMSOL Moderator

Hello c_h_r_i_s

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.

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.