找回密码
 注册
查看: 6824|回复: 7

ansys与cfx耦合的例子

[复制链接]
发表于 2009-2-21 14:04:35 | 显示全部楼层 |阅读模式

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

您需要 登录 才可以下载或查看,没有账号?注册

x
问题描述:一根弯管,里面有流体入口流体速度10m/s ,开放出口压力(opening),管道两端固支。现在想用ansyscfxMFX的流固耦合做个练习,观察在水流冲击下管道的变形情况。
做完之后,出现下列界面:点击之后就什么也没有了,大家谁知道原因啊?一些贴出代码:
也不让兄弟们白来:
管道模型,网格,边界条件和接触面apdl
/prep7
                        !Selection tolerance

!set element type
et,1,shell63   ! 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.25, ,
LPLOT   
WPSTYLE,,,,,,,,1
KWPAVE,       2
wpro,,,-90.000000  
CSYS,4

CYL4, , , ,0,0.1,90  
CYL4, , , ,-90,0.1,0

VDRAG,1,2 , ,, , ,1,3,2
vglue,all
vdele,all,,0
aplot

FLST,2,6,5,ORDE,6   
FITEM,2,4   
FITEM,2,12  
FITEM,2,20  
FITEM,2,30  
FITEM,2,33  
FITEM,2,36  
ADELE,P51X, , ,1


FLST,2,7,5,ORDE,7   
FITEM,2,5   
FITEM,2,-6  
FITEM,2,13  
FITEM,2,-14
FITEM,2,21  
FITEM,2,28  
FITEM,2,31  
ADELE,P51X, , ,1


FLST,2,4,5,ORDE,4   
FITEM,2,1   
FITEM,2,22  
FITEM,2,27  
FITEM,2,34  
ADELE,P51X, , ,1
aglue,all

type,1
mat,1
real,1
esize,0.03
MSHAPE,0,2D
MSHKEY,1
Amesh,all

!boundary condition
nsel,s,loc,x,0
D,all, , , , , ,ALL, , , , ,
nsel,s,loc,z,0
D,all, , , , , ,uz, , , , ,
allsel,all


!set fsi condition                  
sf,all,fsin,1
allsel
save

cdwrite,db,example_shell,cdb
finish
流体模型,网格,边界集合apdl

/prep7

/prep7

et,2,fluid142,,,,1        !3D Fluid element with diplacement DOF option
et,3,shell63        !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,0

VDRAG,1,2 , ,, , ,1,3,2
vglue,all
aplot

!Fluid domain meshing
allsel       

       
type,2
mat,2
esize,0.02       
vsweep,all

!FSI interface surface mesh
asel,s,,,3
asel,a,,,11
asel,a,,,19
asel,a,,,29
asel,a,,,32
asel,a,,,35
ALLSEL,BELOW,AREA
aplot
                               
type,3                        !with mesh only elements
amesh,all
cm,fsi,elem                !Create component named fsi
allsel


ASEL,S, , ,34
ASEL,a, , ,22
ALLSEL,BELOW,AREA
type,3                        !with mesh only elements
amesh,all
cm,inlet,elem                !Create component named inlet
allsel,all

ASEL,S, , ,1
ASEL,a, , ,27
ALLSEL,BELOW,AREA
type,3                        !with mesh only elements
amesh,all
cm,outlet,elem                !Create component named inlet
allsel,all  

asel,s,,,4
asel,a,,,20
asel,a,,,12
asel,a,,,33
asel,a,,,36
asel,a,,,30
ALLSEL,BELOW,AREA
aplot                               
type,3                        !with mesh only elements
amesh,all
cm,sym,elem                !Create component named sym
allsel,all

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 0.5 s. Note: this value will be overridden by ANSYS.
3.        Set Time steps - Timesteps to 0.005 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 0.005。
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.Specify MFX
1.        Open the ANSYS Launcher.
2.        Select an ANSYS Multiphysics license.
3.        Set your working directory or any other settings as necessary. See The ANSYS Launcher in the ANSYS Operations Guide for details on using the ANSYS launcher.
4.        Click Run.
5.        When ANSYS has opened, choose menu path Utility Menu> File> Read Input From and navigate to the file example_shell. 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 0.5
23.        Set Initial Time Step to 0.005.
24.        Set Minimum Time Step to0.005.
25.        Set Maximum Time Step to 0.005.
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.
 楼主| 发表于 2009-2-21 22:19:08 | 显示全部楼层
没人给说说吗?版主能给看看吗
 楼主| 发表于 2009-2-23 15:40:58 | 显示全部楼层
版主给说说吧,是在解决不了啊,谁知道给说说,先谢谢了啊
发表于 2009-2-27 19:25:22 | 显示全部楼层
建议用CFX进行流场分析.得出.res结果文件.进入ANSYS.模型实体部分用SOLID187实体单元,受压力的表面用SURF154单元覆盖.网格划分后创建cdb文件.进入CFX-Post,加载res文件.在Import窗口中输入ANSYS .cdb文件.随后输出一个export.csv文件.重新进入ANSYS.输入刚才创建的那个csv文件.此时,受压表面的压力已经被耦合到结构分析模型的SURF154单元了.设置其他边界条件后即可解算.
发表于 2010-5-17 00:15:03 | 显示全部楼层

回复 4# shawwu 的帖子

有意思啊
发表于 2011-3-29 16:17:55 | 显示全部楼层
出现了什么界面啊  什么都看不见
发表于 2011-4-4 19:58:26 | 显示全部楼层

回复 4# shawwu 的帖子

发表于 2011-4-4 21:29:52 | 显示全部楼层
我要做的只考虑流体对结构的作用,而结构对流体的影响可以不考虑,这种在ansys中应该是很好实现的,对吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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