- 积分
- 5570
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 120
- 最后登录
- 1970-1-1
该用户从未签到
|
发表于 2009-3-3 03:30
|
显示全部楼层
来自: 美国
Using a Control Program in Transient Solutions
User control programs are externally created executables that are called after each time step and allow you to control the source input, circuit elements, mechanical quantities, time step, and stop­ping criteria, based on the updated solutions.
The output variable values are output to a file with a fixed name of outputvar.ctl. The file contents use the following format:
<output variable name> <output variable value>
<output variable name> <output variable value>
...
The solver maintains a copy of the previous solution in a file called previous.ctl because you may need first derivative information for its control purpose.
The user control program uses the file with fixed name user.ctl to output control parameters to con­trol the execution of the transient solver. Each file must use a predefined syntax which is flexible enough to cover a wide range of items. The process can be summarized as:
1. The transient solver reads control parameters from user.ctl.
2. The transient solver solves the current time step.
3. The transient solver copies the previous solution to previous.ctl and writes out solution infor­mation to solution.ctl.
4. The transient solver calls the user control program;
5. The user-control program writes control information to file user.ctl.
6. Return to the transient solver if the control program succeeds with exit status 0 or fails with exit status non-zero.
7. Return to step 1 for the next time step. |
评分
-
查看全部评分
|