声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 9587|回复: 23

[CFX应用] cfx 和ansys 多场耦合 (流固耦合)需要帮助

[复制链接]
发表于 2006-8-18 11:57 | 显示全部楼层 |阅读模式

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

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

x
1.问题描述:一根弯管,里面有流体入口流体速度10m/s ,开放出口压力(opening),管道两端固支。现在想用ansys和cfx的MFX的流固耦合做个练习,观察在水流冲击下管道的变形情况。参照ansys帮助做的,但是总是到第一步就算不下去了。请高手帮我看我的问题出在什么地方,先谢谢了!下面是我做详细步骤!

2.模型描述:


管道模型,网格,边界条件和接触面apdl
/prep7
!set element type
et,1,solid95   ! 3-D 20-Node Structural
R,1,0.01, , , , , ,

!!set material
mp,ex,1,2.1E11                        !Young modulus
mp,prxy,1,0.3                                !Poisson coefficient
mp,dens,1,7800

!simple pipe model
k,1,
k,2,1
k,3,0,1
l,1,2
l,1,3
LFILLT,2,1,0.5, ,
LPLOT   
WPSTYLE,,,,,,,,1
KWPAVE,       2
wpro,,,-90.000000  
CSYS,4

CYL4, , ,0.11,0,0.1,360
VDRAG,1, , , , , ,1,3,2  
WPCSYS,-1,0
vglue,all

type,1
mat,1
real,1
esize,0.03
vsweep,all

!boundary condition
nsel,r,loc,x,1
D,all, , , , , ,ALL, , , , ,
allsel,all
nsel,r,loc,y,1
D,all, , , , , ,ALL, , , , ,
allsel,all

!set fsi condition
asel,s,,,6,9,1  
asel,a,,,24,27,1
asel,a,,,15,18,1
NSLA,S,1
NPLOT     
sf,all,fsin,1
allsel  
save
cdwrite,db, solid,cdb
finish


流体模型,网格,边界集合apdl

/prep7

et,2,fluid142,,,,1        !3D Fluid element with diplacement DOF option
et,3,mesh200,6                !Mesh only element (3D quad 4 nodes) to mesh surfaces used in CFXpre

!Fluid domain geometry

k,1,
k,2,1
k,3,0,1
l,1,2
l,1,3
LFILLT,2,1,0.25, ,

LPLOT   
WPSTYLE,,,,,,,,1
KWPAVE,       2
wpro,,,-90.000000  
CSYS,4

CYL4, , , ,0,0.1,90   
CYL4, , , ,90,0.1,180   
CYL4, , , ,180,0.1,270  
CYL4, , , ,270,0.1,360  
aglue,all
VDRAG,1,5 ,6 ,7 , , ,1,3,2
vglue,all
aplot

!Fluid domain meshing
allsel                       
type,2
mat,2
esize,0.03
MSHAPE,1,3D
MSHKEY,0
vmesh,all

!FSI interface surface mesh
ASEL,S,EXT  
FLST,5,8,5,ORDE,7   
FITEM,5,1   
FITEM,5,5   
FITEM,5,-7  
FITEM,5,32  
FITEM,5,35  
FITEM,5,38  
FITEM,5,40  
ASEL,U, , ,P51X  
ALLSEL,BELOW,AREA
aplot
                               
type,3                        !with mesh only elements
amesh,all
allsel,below,area
cm,fsi,elem                !Create component named fsi
allsel

FLST,5,4,5,ORDE,4   
FITEM,5,32  
FITEM,5,35  
FITEM,5,38  
FITEM,5,40  
ASEL,S, , ,P51X
ALLSEL,BELOW,AREA
type,3                        !with mesh only elements
amesh,all
cm,inlet,elem                !Create component named inlet
allsel

FLST,5,4,5,ORDE,3   
FITEM,5,1   
FITEM,5,5   
FITEM,5,-7  
ASEL,S, , ,P51X
ALLSEL,BELOW,AREA   
APLOT
type,3                        !with mesh only elements
amesh,all
cm,outlet,elem                !Create component named outlet
allsel
cdwrite,db,fluid,cdb        !Create fluid.cdb file for CFXpre

3.生成dat和def
Set up the CFX Model and Create the CFX Definition File
Set up the example in the CFX preprocessor
1.        Start CFXpre from the CFX launcher.
2.        Create a new simulation and name it cfx_mfx
3.        Load the mesh from the ANSYS file named fluid.cdb. The mesh format is ANSYS. Accept the default unit of meters for the model.
4.        Define the simulation type:
1.        Set Option to Transient.
2.        Set Time duration - Total time to 5E-4 s. Note: this value will be overridden by ANSYS.
3.        Set Time steps - Timesteps to 5E-6 s. Note: this value must be equal to the time step set in ANSYS.
4.        Set Initial time - Option to Value, and accept the default of 0 s.
5.        Create the fluid domain and accept the default domain name. Use Assembly as the location.
6.        Edit the fluid domain using the Edit domain - Domain1 panel.
1.        Set Fluids list to Air at 25 C.
2.        Set Mesh deformation - Option to Regions of motion specified. Accept the default value of mesh stiffness.
3.        In the Fluid models tab, set Turbulence model - Option to None (laminar).
4.        Accept the remainder of the defaults.
5.        Initialize the model in the Initialisation tab. Click Domain Initialisation, and then click Initial Conditions. Select Automatic with value and set velocities and static pressure to zero.
7.        Create the interface boundary condition. This is not a domain interface. Set Name to Interface1.
1.        In the Basic settings tab: - Set Boundary type to Wall. Set Location to FSI.
2.        In the Mesh motion tab: Set Mesh motion - Option to ANSYS Multifield.
3.        Accept the defaults for boundary details.
8.        Create the opening boundary condition. Set Name to Opening.
1.        In the Basic settings tab: Set Boundary type to Opening. Set Location to outle.
2.        In the Boundary details tab: Set Mass and momentum - Option to Static pres. (Entrain). Set Relative pressure to 0 Pa.
3.        In the Mesh motion tab: Accept the Mesh motion - Option default of Stationary.
9.        Create the inlet boundary condition. Set Name to inlet. Edit the inlet boundary condition using Edit boundary: inlet in Domain: Domain1 panel.
1.        In the Basic settings tab: Set Boundary type to inlet. Set Location to inlet.
2.        In the Boundary details tab: Set Mass and momentum - Option to normal speed. Set normal speed value to 0
3.        In the Mesh motion tab: Set Mesh motion to Stationary.
10.        Generate transient results to enable post processing through the simulation period.
1.        Click Output Control.
2.        Go to Trn Results tab.
3.        Create New. Accept Transient Results as the default name.
4.        Choose Time Interval and set to 5E-5.
5.        Accept the remaining defaults.
11.        Create the CFX definition file.
1.        Choose menu path File> Write Solver File. Name the file cfx_mfxexample.def.
2.        Select Operation: Write Solver File.
3.        Click Quit CFX Pre.
4.        Click OK.


4.Choose menu path File> Write Solver File. Name the file cfx_mfxex Specify MFX
1.        Open the ANSYS Launcher.
2.        Select an ANSYS Multiphysics license.
4.        Click Run.
5.        When ANSYS has opened, choose menu path Utility Menu> File> Read Input From and navigate to the file solid.cdb. Click OK.
6.        Choose menu path Main Menu> Solution> Multi-field Set Up> Select Method.
7.        For the MFS/MFX Activation Key, click ON.
8.        Click OK.
9.        Click MFX-ANSYS/CFX and click OK.
10.        Back To Top
11.        Set Up the MFX Groups
12.        Choose menu path Main Menu> Multi-field Set Up> MFX-ANSYS/CFX> Solution Ctrl.
13.        Select Sequential. Enter .5 for the relaxation value and click OK.
14.        On the next dialog box, for Select Order, choose Solve ANSYS First and click OK.
15.        Back To Top
16.        Set Up the MFX Time Controls and Load Transfer
17.        Choose menu path Main Menu> Multi-field Set Up> MFX-ANSYS/CFX> Load Transfer.
18.        Enter Interface1 for the CFX Region Name.
19.        For Load Type, accept the default of Mechanical.
20.        Click OK.
21.        Choose menu path Main Menu> Multi-field Set Up> MFX-ANSYS/CFX> Time Ctrl.
22.        Set MFX End Time to 5e-4.
23.        Set Initial Time Step to 5e-6.
24.        Set Minimum Time Step to 5e-6.
25.        Set Maximum Time Step to 5e-6.
26.        Accept the remaining defaults and click OK.
27.        Back To Top
28.        Set Up MFX Advanced Options
29.        Choose menu path Main Menu> Multi-field Set Up> MFX-ANSYS/CFX> Advanced Set Up> Iterations.
30.        Note the defaults and click OK.
31.        Choose menu path Main Menu> Multi-field Set Up> MFX-ANSYS/CFX> Advanced Set Up> Convergence.
32.        Select All and click OK.
33.        On the next dialog box, accept the default of 1.0e-3 for Convergence for All Items and click OK.
34.        In the Command Input window, type MFOU,1 to write the output for every time step.
35.        In the Command Input window, type KBC,1 to specify stepped loading.
36.        Choose menu path Main Menu> Multi-field Set Up> MFX-ANSYS/CFX> Write input. Name the file mfxexample.dat.
37.        Exit ANSYS.
5.. Run the Example from the ANSYS Launcher, Open the ANSYS Launcher.
1.        Select MFX - ANSYS/CFX as the simulation environment.
2.        In the MFX - ANSYS/CFX Setup tab:
3.        Enter the ANSYS working directory you have been using. You can type this directory in or select it via browsing.
4.        Enter ansys_mfxexample for the ANSYS jobname.
5.        Enter mfxexample.dat for the ANSYS input file.
6.        Enter mfxexample.out for the ANSYS output file.
7.        Specify the following CFX settings:
8.        CFX Working Directory
9.        Enter cfx_mfxexample.def for the CFX definition file. You can leave the remaining CFX settings blank.
10.        Click Run.

模型图片

模型图片

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

 楼主| 发表于 2006-8-19 10:28 | 显示全部楼层
斑竹帮忙看看 !
发表于 2006-8-24 10:40 | 显示全部楼层
请问,双向耦合,是怎么实现的?
一台机子同时运行ansys  和cfx? 先开始cfx计算还是ansys 呢?
不懂啊,
有没有实例子?
 楼主| 发表于 2006-8-24 22:51 | 显示全部楼层
我采用的是顺序耦合
  也就是说流体对管道作用使管道变形,变形的管道反过来约束流体的流动。ansys和cfx的耦合只能是瞬态的 ,具体过程是在ansys的laucher中选择Mfx求解器,程序会自动的调用ansys和cfx, 查看结果是在ansys中看管道的应力和变形,在cfx中看流体结果

评分

1

查看全部评分

 楼主| 发表于 2006-8-24 22:52 | 显示全部楼层
在ansys10的帮助文件中有个压电的例子,你可以做着看看!
 楼主| 发表于 2006-8-28 17:52 | 显示全部楼层
调试成功!:@D
  用了好长时间
    下辈子不做有限元!
发表于 2006-8-28 19:12 | 显示全部楼层
我的一个算例也成功了,这个真的很奇怪,检查半天发现是选择接触面时,点了一下apply,又点了一下ok,出现了2个同样的接触面,总是不成功

评分

1

查看全部评分

发表于 2006-8-28 20:56 | 显示全部楼层
调试好的 发上来!!!
发表于 2006-11-7 15:44 | 显示全部楼层
把你做的过程发上来交流一下啊!我做水轮机导叶的流固耦合怎么做啊?帮帮忙啊!怎么学的啊!有没有gui的步骤!
发表于 2006-11-7 19:44 | 显示全部楼层
原帖由 caodongf 于 2006-8-28 17:52 发表
调试成功!:@D
  用了好长时间
    下辈子不做有限元!


希望分享一下成功后的命令流
发表于 2006-11-8 19:26 | 显示全部楼层
搂主真是神勇!
发表于 2006-11-8 19:40 | 显示全部楼层

是不是建模时候,弯道和流体域模型不一致,造成的

是不是建模时候,弯道和流体域模型不一致,造成的?
发表于 2006-11-9 14:57 | 显示全部楼层
例子有错误啊!~把成功的发出来看看!

你用的ansys是9.0还是10.0!

我怎么找不到你说的求解器啊!

[ 本帖最后由 swq830128 于 2006-11-9 15:06 编辑 ]
发表于 2006-11-9 20:36 | 显示全部楼层
我发现计算结果是不是接近800M,怎么这么大?你算的。rst文件是多大?
发表于 2006-11-10 21:38 | 显示全部楼层
楼主杂消失了!出来说句话啊!用ansys和cfx做流固耦合的例子多发几个出来啊!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-11-25 12:53 , Processed in 0.067651 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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