Categories
Blog COMSOL COMSOL General Articles Research

Conditional statement in comsol multiphysics

Conditional statement in comsol is very usefull for modelling complicated simulations.

The core of the function is

if((x>lowerlimit)*(x<=upperlimit),valueiftrue,valueiffalse)

the value if false is then a second if the statement of the same form, and so on. The "*" in the formula is equivalent to the AND statement.

One way is to use conditional expressions. An example of such an expression is (a<b)*c which evaluates to c when a is less than b and to zero otherwise.

check the video for full understanding

Thanks for reading 🙂

We offer some courses related to similar topics

If you want a discounted coupon or if you want to know more about the course. Feel free to contact us


All COMSOL Resources

Leave a Reply

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker on this site. Running the website takes time and money 😊. 
Thanks - bkacademy