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.

Stop condition for a dependent variable

Please login with a confirmed email address before reporting spam

I have a Coefficient boundary form PDE whose dependent variable is Rc. I want to stop the simulation when Rc becomes negative using the Stop condition in the time dependent solver. Initial value of Rc is 1.

However I get an error message that states
Could not evaluate stop condition.
Expression could not be evaluated.
- Expression: 1-100*eps-(Rc<0)
- Detail: Expression evaluates to NaN.

Can someone provide insight on what could be going wrong??

Thank you
Vishnu

1 Reply Last Post 15.08.2016, 07:37 GMT-4
Frank van Gool COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 15.08.2016, 07:37 GMT-4
Dear Vishnu,

You need to use comp1.Rc to access this variable. This is better explained in the manual on the stop condition (or the dynamic help).

Best regards,
Frank
Dear Vishnu, You need to use comp1.Rc to access this variable. This is better explained in the manual on the stop condition (or the dynamic help). Best regards, Frank

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.