Stop condition expression

Topics: 4.3

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   4 Replies   Last post: November 2, 2012 8:27pm UTC
Collin Mui

Collin Mui

October 2, 2012 1:13am UTC

Stop condition expression

How do I set up the stop condition if I want the solver to stop when the point probe expression ppb1 is less than a value?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Paul Coman

Paul Coman

November 2, 2012 9:58am UTC in response to Collin Mui

Re: Stop condition expression

I have the same problem.

The stop condition expression that I use is

mod1.ppb1<0.1

where mod1 is the index from the model and ppb1 is the point probe.

The expression is well evaluated and the model works but the stop condition isn't.

Does anybody know why?

Paul

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Paul Coman

Paul Coman

November 2, 2012 9:59am UTC in response to Paul Coman

Re: Stop condition expression

If I use

mod1.ppb1-0.1

the model stops when the point value reaches the value 0.1, therefore it works. But what about "less than" ?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Paul Coman

Paul Coman

November 2, 2012 10:08am UTC in response to Collin Mui

Re: Stop condition expression

Dear Collin,

I was killing my brain with this and finally I have discovered how it works.

Just write:

0.5-(modx.ppby<value)

where x and y denote the index of model and probe evaluation and the value is the desired value. My example:

0.5-(mod1.ppb1<0.02)

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Nagi Elabbasi

Nagi Elabbasi
Certified Consultant
Veryst Engineering

November 2, 2012 8:27pm UTC in response to Paul Coman

Re: Stop condition expression

You figured it out obviously. I just want to clarify one thing. The Stop condition terminates the analysis when the stop expression becomes negative. The Boolean operators like >, < evaluate to 0 (False) or 1 (True). That’s why they don’t work as you expected. Your modified expression takes care of that.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines