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.
Math Operator Question
Posted 25 juin 2012, 10:16 UTC−4 Parameters, Variables, & Functions Version 4.2a 1 Reply
Please login with a confirmed email address before reporting spam
Hey guys,
Just had a question about math operators. I'm a little new to comsol.
Let's say I'm working with a heat source term in nonisothermal flow. On my Q, I defined Q as a function in the variables section. But, what if I want Q to be the calculated value of the function I already defined for only certain values.
What I have now:
Q = Qdefined*(Qdefined>0)
which I'm taking to mean, if the calculated Q is greater than 0, use that value. But what exactly does the *Qdefined>0 mean? Does it mean that it's 0 for all other values?
If not, what mathematical operator do I use so that if Q is NOT a positive number calculated by the function (i.e negative or 0), it gives 0 as the answer.
Thanks!
Just had a question about math operators. I'm a little new to comsol.
Let's say I'm working with a heat source term in nonisothermal flow. On my Q, I defined Q as a function in the variables section. But, what if I want Q to be the calculated value of the function I already defined for only certain values.
What I have now:
Q = Qdefined*(Qdefined>0)
which I'm taking to mean, if the calculated Q is greater than 0, use that value. But what exactly does the *Qdefined>0 mean? Does it mean that it's 0 for all other values?
If not, what mathematical operator do I use so that if Q is NOT a positive number calculated by the function (i.e negative or 0), it gives 0 as the answer.
Thanks!
1 Reply Last Post 25 juin 2012, 10:21 UTC−4