声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3158|回复: 2

[结构分析] 水灌内流固耦合问题Ansys实现

[复制链接]
发表于 2005-6-25 08:45 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
该题实现了一水罐在减速状态下,罐壁的应力分布和流体(水)的压强与速度分布
  1. /PREP7
  2. K,1
  3. K,2,,1,,
  4. K,3,,-1,,
  5. K,4,,,1,
  6. K,5,,,-1,
  7. LARC,2,5,1,1,
  8. LARC,2,4,1,1,
  9. LARC,4,3,1,1,
  10. LARC,3,5,1,1,
  11. FLST,2,4,4
  12. FITEM,2,2
  13. FITEM,2,1
  14. FITEM,2,4
  15. FITEM,2,3
  16. AL,P51X
  17. FLST,2,1,5,ORDE,1
  18. FITEM,2,1
  19. ARSCALE,P51X, , ,1,0.5,0.95, ,0,1
  20. FLST,2,1,5,ORDE,1
  21. FITEM,2,1
  22. VEXT,P51X, , ,5.1,0,0,,,,
  23. SPHERE,1, ,0,360,
  24. wpro,,,90.000000
  25. VSBW, 2
  26. wpro,,,-90.000000
  27. FLST,3,1,6,ORDE,1
  28. FITEM,3,4
  29. VGEN, ,P51X, , , , ,5.1, , ,1
  30. VPLOT
  31. VDELE, 4, , ,1
  32. FLST,2,1,6,ORDE,1
  33. FITEM,2,3
  34. VLSCAL,P51X, , ,0.3,0.5,0.95, ,0,1
  35. VPLOT
  36. FLST,3,1,6,ORDE,1
  37. FITEM,3,3
  38. VSYMM,X,P51X, , , ,0,0
  39. FLST,3,1,6,ORDE,1
  40. FITEM,3,3
  41. VGEN, ,P51X, , , 5.1, , , , ,1
  42. SAVE
  43. WPOFF,1.55,,,
  44. WPRO,,,90.000000
  45. ASBW,3
  46. WPRO,,,-90.000000
  47. WPOFF,2,,,
  48. wpro,,,90.000000
  49. ASBW,14
  50. CSYS,0
  51. WPAVE,0,0,0
  52. CSYS,0
  53. wpro,,,-90.000000
  54. wpoff,,,0.4
  55. ASBW,15
  56. WPOFF,,,0.3
  57. ASBW,16
  58. wpoff,,,0.1
  59. ASBW,15
  60. CSYS,0
  61. WPAVE,0,0,0
  62. CSYS,0
  63. wpoff,1.55,,
  64. wpro,,,90.000000
  65. ASBW,6
  66. wpoff,,,2
  67. ASBW,19
  68. CSYS,0
  69. WPAVE,0,0,0
  70. CSYS,0
  71. wpro,,,-90.000000
  72. wpoff,,,-0.5
  73. ASBW,20
  74. CSYS,0
  75. WPAVE,0,0,0
  76. CSYS,0
  77. wpoff,,,0.4
  78. ASBW,4
  79. wpoff,,,-0.8
  80. ASBW,5
  81. CSYS,0
  82. WPAVE,0,0,0
  83. CSYS,0
  84. /VIEW, 1 ,1,1,1
  85. /ANG, 1
  86. /REP,FAST
  87. FINISH

  88. /PREP7
  89. et,1,142,
  90. et,2,93
  91. BTOL,0.10e-9
  92. vadd,1,2
  93. vadd,3,4
  94. BTOL,0.10e-4
  95. VPLOT

  96. asel,s,,,1
  97. asel,a,,,4
  98. asel,a,,,7,8
  99. asel,a,,,12,21
  100. asel,a,,,25,27
  101. asel,a,,,30
  102. aatt,2,2,2 ! (material 2)
  103. alls
  104. vsel,s,,,1
  105. vatt,1,1,1 ! (material 1)
  106. alls
  107. !

  108. !划分网格(存在疑问)
  109. eshape,1
  110. asel,s,,,1
  111. asel,a,,,4
  112. asel,a,,,7,8
  113. asel,a,,,12,21
  114. asel,a,,,25,27
  115. asel,a,,,30
  116. amesh,all
  117. CM,_Y,VOLU
  118. VSEL, , , , 1
  119. CM,_Y1,VOLU
  120. CHKMSH,'VOLU'
  121. CMSEL,S,_Y
  122. !*
  123. VMESH,_Y1
  124. !*
  125. CMDELE,_Y
  126. CMDELE,_Y1
  127. CMDELE,_Y2
  128. !*

  129. !设置流体环境
  130. et,1,142
  131. et,2,0 ! becomes the Null Element(流固耦合场计算处理方法)
  132. !! CFD Solution Control
  133. flda,solu,flow,1 !Solves the momentum and pressure equations
  134. flda,solu,turb,1 !Activates the turbulence model
  135. flda,iter,exec,400 !Sets iteration and output controls for steady state analyses
  136. flda,outp,sumf,10 !set to be defout
  137. !! CFD Property Information
  138. flda,prot,dens,constant
  139. flda,prot,visc,constant
  140. flda,nomi,dens,1000. ! 1000 kg/m3 for density - water
  141. flda,nomi,visc,4.6E-4 ! 4.6E-4 kg-s/m (viscosity of water)
  142. flda,conv,pres,1.E-8 ! Tighten pressure equation convergence
  143. FLDATA18,METH,PRES,1 ! TDMA
  144. FLDATA19,TDMA,PRES,200,
  145. FLDA,RELX,PRES,0.5 !
  146. FLDA,RELX,Vx,0.5
  147. FLDATA24,TURB,MODL,5
  148. !! CFD Boundary Conditions (Applied to Solid Model)
  149. asel,s,,,7
  150. asel,a,,,12
  151. asel,a,,,25
  152. asel,a,,,27
  153. da,all,vx,0.,1
  154. asel,s,,,16,21
  155. asel,a,,,8
  156. asel,a,,,14
  157. asel,a,,,30
  158. asel,a,,,26
  159. da,all,vy,0.,1
  160. da,all,vz,0.,1
  161. alls
  162. /title,Fluid Analysis
  163. physics,write,fluid,fluid
  164. !

  165. !设置固体环境
  166. physics,clear
  167. et,1,0 ! The Null element for the fluid region
  168. et,2,93 ! Gasket element - material 2
  169. R,2,0.001, , , , , ,
  170. mp,ex,2,3.2947E+9 ! Young's modulus for rubber
  171. mp,nuxy,2,0.4270 ! Poisson's ratio for the rubber
  172. asel,s,,,1
  173. asel,a,,,4
  174. nsla,,1 !Select all nodes associated with the selected areas
  175. d,all,ux,0.
  176. d,all,uy,0.
  177. d,all,uz,0. ! Fix the bottom of the gasket
  178. alls
  179. /title,structural analysis
  180. finish

  181. /solu
  182. antype,static
  183. nlgeom,on
  184. cnvtol,f,,,,-1 !Sets convergence(一致性) values for nonlinear analyses;here,no minimum is enforced
  185. physics,write,struc,struc
  186. physics,clear
  187. SAVE
  188. /solu
  189. physics,read,fluid
  190. flda,iter,exec,50
  191. vsel,s,,,1
  192. nslv,s,0
  193. BF,all,FORC,3.68,,, !Defines a nodal body force load
  194. alls
  195. solve
  196. !vsel,s,,,1
  197. !nslv,s,0
  198. !BF,all,FORC,3.68,,, !Defines a nodal body force load(另外两个加速度值:5.21,6.25)
  199. !alls
  200. !solve
  201. vsel,s,,,1
  202. nslv,s,0
  203. BFDELE,all,forc
  204. fini

  205. physics,read,struc ! Read in structures environment
  206. /assign,esave,struc,esav ! Files for restarting nonlinear structure
  207. /assign,emat,struc,emat
  208. /solu
  209. asel,s,,,1
  210. asel,a,,,4
  211. asel,a,,,7,8
  212. asel,a,,,12,21
  213. asel,a,,,25,27
  214. asel,a,,,30
  215. nsla,,1
  216. esel,s,type,,2
  217. ldread,pres,last,,,2,,rfl ! Apply pressure surface load from Flotran
  218. alls
  219. rescontrol,,none ! Do not use multiframe restart for nonlinear
  220. solve
  221. FINISH
复制代码
回复
分享到:

使用道具 举报

发表于 2005-6-25 11:54 | 显示全部楼层
设置非线性迭代收敛残差, 那个CONVERGENCE是收敛的意思,不是一致性。晕
 楼主| 发表于 2005-8-3 21:45 | 显示全部楼层
搞错了,不好意思
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-4 21:44 , Processed in 0.061904 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表