- 积分
- 103
- 注册时间
- 2004-12-16
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2006-9-6 19:16:57
|
显示全部楼层
来自 台湾
本帖最后由 Kiddosuper 于 2011-10-31 10:47 编辑
Some time it's still necessary to apply time-varying data onto boundary directly.
I just create a UserFortran program to apply the time-varying data onto boundary.
Maybe my process is a little hard to understand, but it's a good exercise .
Steps:
1. create a time table with T, U,V,W , which name is bcdata.txt
example contents of bcdata.txt as follows, (I just control the W term for ease of simulation, sure you can control all the terms)
11
0.0 0.0 0.0 -1.20
0.2 0.0 0.0 -4.10
0.5 0.0 0.0 -2.82
0.6 0.0 0.0 -3.60
0.8 0.0 0.0 -5.60
1.0 0.0 0.0 -8.60
2.0 0.0 0.0 -8.6
3.2 0.0 0.0 -7.2
8.0 0.0 0.0 -4.2
9.0 0.0 0.0 -3.2
10. 0.0 0.0 -5.5
Notes:
1. 11 is the total data lines number
data shown is time [ s ], U [m/s],V [m/s],W [m/s] respectively
2. U,V,W will be interpolated if cfx run time (t) is not the same as the time in table.
2. compile bct.F program
3. set up subroutine and function in cfx-pre
(Hello, superdreamer I've sent you a short message about how to send you all-in-one file, please check it)
**IMPORTANT NOTES*****
if you can download bct.F, and all-in-one file (include definition and setting), remember to do:
1. Edit bct.F to modify the bcdata.txt path , then recompile it
2. start cfx-pre, to modify the subroutine path of bct.F
Otherwise you cannot run it. This run-case is run properly and checked OK in Linux system , and bct.F is compiled by g77. If you face problem about bct.F , you can announce here.! cfx10 and cfx571 version definition are supplied belows.
(the time interval is 0.2 seconds for this run case)
[ 本帖最后由 Kiddosuper 于 2008-12-15 18:24 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
评分
-
1
查看全部评分
-
|