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.
Setting variables for different domains ('if...then'-function)
Posted 08.07.2010, 09:25 GMT-4 4 Replies
Please login with a confirmed email address before reporting spam
Hello everybody
I am pretty new in COMSOL. I have following (easy) problem: I study an advection-diffusion problem, where the reaction rate variable Rc is given by following equation:
Rc=(ceqA-c)/ceqA (it is actually the dissolution of a mineral)
I want that when this term does not become negative, i.e. when ceqA<c then it must be set equal to zero by the program. In excel this would be a simple 'if' function. How does one do it in COMSOL?
Thank you very much in advance
I am pretty new in COMSOL. I have following (easy) problem: I study an advection-diffusion problem, where the reaction rate variable Rc is given by following equation:
Rc=(ceqA-c)/ceqA (it is actually the dissolution of a mineral)
I want that when this term does not become negative, i.e. when ceqA<c then it must be set equal to zero by the program. In excel this would be a simple 'if' function. How does one do it in COMSOL?
Thank you very much in advance
4 Replies Last Post 08.07.2010, 11:29 GMT-4