Re: [NMusers] Logic Expression in $DATA: ACCEPT or IGNORE

2014-11-22 Thread Alison Boeckmann
Xinting and others are correct. The syntax of ACCEPT/IGNORE is limited and cannot handle an expression such as $DATA ACCEPT=((A == 1.OR.A == 2).AND.B<100) In the NM-TRAN syntax, OR is implied. NOT and AND cannot be coded. Instead, the ACCEPT must be negated as IGNORE to change AND to OR: IGNOR

Re: [NMusers] Logic Expression in $DATA: ACCEPT or IGNORE

2014-11-22 Thread Alison Boeckmann
Xinting and others are correct. The syntax of ACCEPT/IGNORE is limited and cannot handle an expression such as $DATA ACCEPT=((A == 1.OR.A == 2).AND.B<100) In the NM-TRAN syntax, OR is implied. NOT and AND cannot be coded. Instead, the ACCEPT must be negated as IGNORE to change AND to OR: IGNOR

Re: [NMusers] Logic Expression in $DATA: ACCEPT or IGNORE

2014-11-19 Thread Xinting Wang
Dear Katya and Bill, Thanks a lot for your suggestion. Multiple IGNORE, as suggested Katya, actually worked. Best Regards On 18 November 2014 17:24, Ekaterina Gibiansky wrote: > Hi Xinting, > > You can separate the condition into several statements. For example, if > you need to accept (A=1 O

Re: [NMusers] Logic Expression in $DATA: ACCEPT or IGNORE

2014-11-18 Thread Ekaterina Gibiansky
Hi Xinting, You can separate the condition into several statements. For example, if you need to accept (A=1 OR A=2) AND B<100 you instead can have 2 or 3 IGNORE statements (depending on the values A can have), say IGNORE=(B.GE.100) IGNORE=(A.GT.2) IGNORE=(A.LT.1) Regards, Katya Ekaterina G

RE: [NMusers] Logic Expression in $DATA: ACCEPT or IGNORE

2014-11-18 Thread Denney, William S.
Hi Xinting, I’ve worked with these types of statements a good bit, and my personal preference is to add a column to the data set that makes the selection simpler (e.g. set it to 1 if (A == 1 or A == 2) and B < 100). Last I knew, it wasn’t possible to do an “AND” in an ignore statement (and che