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.

Boolean Expression (If then else) v3.5a

Please login with a confirmed email address before reporting spam

Hi

I am looking for putting a condition that says:

if X>0, USE THIS FORMULA (e.g. x=x-1)
if X<0, USE THIS FORMULA (e.g. x=x+1)

How can I put conditional expression in COMSOL, any hint writing such an expression?

Thanks
Naveed

1 Reply Last Post 2010年9月23日 GMT-4 16:55
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年9月23日 GMT-4 16:55
Hi

Have ou tried a search for "if(" on the guide.pdf document (without the " "). Among other page 166 give an example, but there are many more, about in each doc ;)

--
Good luck
Ivar
Hi Have ou tried a search for "if(" on the guide.pdf document (without the " "). Among other page 166 give an example, but there are many more, about in each doc ;) -- Good luck Ivar

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.