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.
Function to return larger of two arguments
Posted 2016年11月15日 GMT-5 15:55 Heat Transfer & Phase Change, Parameters, Variables, & Functions Version 4.4 4 Replies
Please login with a confirmed email address before reporting spam
Hey Comsolers,
I have an equation that depends on one of two variables (x and y), whichever one is larger at the spatial location in the geometry where the equation is being evaluated. The values of these variables at any given spatial location depend on input parameters and other things so that I cannot simply use variable x up to a certain point and then use y after that. Is there a built in MAX(x,y) function or is there another way to do this?
Thanks,
Bryan
I have an equation that depends on one of two variables (x and y), whichever one is larger at the spatial location in the geometry where the equation is being evaluated. The values of these variables at any given spatial location depend on input parameters and other things so that I cannot simply use variable x up to a certain point and then use y after that. Is there a built in MAX(x,y) function or is there another way to do this?
Thanks,
Bryan
4 Replies Last Post 2016年11月17日 GMT-5 07:21