找回密码
 注册
Simdroid-非首页
查看: 414|回复: 4

请教ansys 与cfx 的mfx耦合

[复制链接]
发表于 2006-8-18 12:40:16 | 显示全部楼层 |阅读模式 来自 湖北武汉
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.
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 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:51:18 | 显示全部楼层 来自 湖北武汉
Simdroid开发平台
怎么没有人理睬,斑竹帮忙看看啊!谢谢
发表于 2007-1-4 18:23:13 | 显示全部楼层 来自 广东广州
楼主说的第一步,是指ANSYS和CFX的耦合分析的第一步么?
发表于 2007-1-8 22:54:49 | 显示全部楼层 来自 北京
关注ing

正在学习中!

静待高见!
发表于 2007-1-13 13:32:49 | 显示全部楼层 来自 河北廊坊
可以参考CFX5.7.1的帮助教程tutorials,其中有一加热管加热圆筒的教程,其后半部分就是关于楼主的问题,步骤很详细的,10。0的好像就没有后半部分

[ 本帖最后由 freebird-w 于 2007-1-13 13:37 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-21 21:43 , Processed in 0.039539 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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