how to use *DOWHILE command!
how to use *DOWHILE command!
(OP)
Hi everybody,
I would like to know how the *DOWHILE command works, and what is the argument "par"?
Thank you.
Lyes
I would like to know how the *DOWHILE command works, and what is the argument "par"?
Thank you.
Lyes





RE: how to use *DOWHILE command!
-Brian
RE: how to use *DOWHILE command!
I'm familiar with the WHILE loop in Fortran, but my problem is that I don't know how tu use the 'par' argument. In Fortran, we could write:
WHILE,A,LT,B,THEN
....
ENDWHILE
But with *DOWHILE in Ansys there is just the 'par' argument! why the loop exit when arg is equal to zero only? I don't understand the role of this parameter!
Lyes.
RE: how to use *DOWHILE command!
'par' is a boolean control parameter. 0 = "False", so the loop ends. Any other number is equivalent to 1 = "True", so the loop goes on.
It's the same concept as, for example, in VB when you write something like
... if not my_parameter then ...
Regards