- 积分
- 7
- 注册时间
- 2004-6-29
- 仿真币
-
- 最后登录
- 1970-1-1
|
现在摘录一些,详细请见附件!
*DO
Defines the start of a "do" loop. The commands following the *DO command execute (up to the *ENDDO command) repeatedly until some loop control is satisfied.
Command format is *DO,Par,IVAL,FVAL,INC, where:
Par is a scalar parameter to be used as the loop index.
IVAL and FVAL are the initial and final parameter values.
INC is the amount by which IVAL is incremented at each loop execution.
You also can control looping via the *IF command.
ANSYS allows up to 20 levels of nested "do" loops, although "do" loops that include /INPUT, *USE, or an "unknown" command macro support fewer nesting levels because they do internal file switching. *DO, *ENDDO, *CYCLE, and *EXIT commands in a "do" loop must all read from the same file or the keyboard. Don't include picking operations in a "do" loop.
Take care if you include a /CLEAR command within a do-loop. The /CLEAR command does not clear the do-loop stack, but it does clear all parameters including the loop parameter in the *DO statement itself. You can avoid the problem of having an undefined looping value by issuing a /PARSAV command before the /CLEAR command, and then following the /CLEAR command with a /PARRES command.
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
评分
-
1
查看全部评分
-
|