ansys命令流

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。



/PREP7
!梁横截面4个关键点
K,1,-25.5e-3,1.69e-3,,
K,2,-2.55e-2,0,,
K,3,2.55e-2,0,,
K,4,2.55e-2,1.69e-3,,

!复制关键点
KGEN,2,4, , ,100e-3, , , ,0
KGEN,2,5, , , ,20e-3, , ,0
KGEN,2,6, , ,-100e-3, , , ,0
KGEN,2,7, , ,-51e-3, , , ,0
KGEN,2,8, , ,-100e-3, , , ,0
KGEN,2,9, , , ,-20e-3, , ,0
KGEN,2,10, , , ,-1.69e-3, , ,0
KGEN,2,11, , , ,-20e-3, , ,0
KGEN,2,12, , ,100e-3, , , ,0
KGEN,2,13, , ,51e-3, , , ,0
KGEN,2,14, , ,100e-3, , , ,0
KGEN,2,15, , , ,20e-3, , ,0

!创建面
A,1,2,3,4
A,3,4,5,16
A,4,5,6,7
A,1,4,7,8
A,1,8,9,10
A,1,10,11,2
A,2,11,12,13
A,2,13,14,3
A,3,14,15,16

!创建拉伸的线
KGEN,2,1, , , , ,5e-3, ,0
KGEN,2,17, , , , ,260e-3, ,0
KGEN,2,18, , , , ,150e-3, ,0
LSTR, 1, 17
LSTR, 17, 18
LSTR, 18, 19
!拉伸成体
ASEL,S,LOC,Z,0
VDRAG,ALL, , , , , , 25
ASEL,S,LOC,Z,5e-3
VDRAG,ALL, , , , , , 26
ASEL,S,LOC,Z,265e-3
VDRAG,ALL, , , , , , 27
!merge
ALLSEL,ALL
NUMMRG,KP, , , ,LOW
!定义材料
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,EX,1,,1.69e5
MPDATA,PRXY,1,,0.3
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,DENS,1,,2.33e-9
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,DENS,2,,1e-9
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,SONC,2,,1.5e6
!定义单元类型
ET,1,SOLID45
ET,2,FLUID30
KEYOPT,2,2,1
ET,3,FLUID30

!赋材料和单元属性
VATT, 2, , 2, 0
VSEL,S, , , 1
VSEL,A, , , 2
VSEL,A, , , 3
VSEL,A, , , 4
VSEL,A, , , 5
VSEL,A, , , 6
VSEL,A, , , 7
VSEL,A, , , 8
VSEL,A, , , 9
VSEL,A, , , 10
VATT, 1, , 1, 0
ALLSEL,ALL
!划分网格
LESIZE,13, , ,8,2, , , ,1
LESIZE,15, , ,8,0.5, , , ,1
LESIZE,17, , ,8,0.5, , , ,1
LESIZE,19, , ,8,0.5, , , ,1
LESIZE,2, , ,5, , , , ,1
LESIZE,4, , ,5, , , , ,1
LESIZE,11, , ,5, , , , ,1
LESIZE,21, , ,5, , , , ,1
LESIZE,5, , ,8,2, , , ,1
LESIZE,7, , ,8,0.5, , , ,1
LESIZE,9, , ,8,0.5, , , ,1
LESIZE,23, , ,8,2, , , ,1
LESIZE,1, , ,1, , , , ,1
LESIZE,3, , ,1, , , , ,1
LESIZE,6, , ,1, , , , ,1
LESIZE,16, , ,1, , , , ,1
LESIZE,8, , ,10,2.5, , , ,1
LESIZE,10, , ,10,0.4, , , ,1
LESIZE,12, , ,10,0.4, , , ,1
LESIZE,14, , ,10,0.4, , , ,1
LESIZE,18, , ,10,2.5, , , ,1
LESIZE,20, , ,10,0.4, , , ,1
LESIZE,22, , ,10,0.4, , , ,1
LESIZE,24, , ,10,0.4, , , ,1
LESIZE,42, , ,1, , , , ,1
LESIZE,82, , ,25, , , , ,1
LESIZE,130, , ,8, 3, , , ,1
LESIZE,132, , ,8, 3, , , ,1
LESIZE,135, , ,8, 3, , , ,1
LESIZE,138, , ,8, 3, , , ,1
LESIZE,127, , ,8, 3, , , ,1
LESIZE,27, , ,8, 3, , , ,1
LESIZE,110, , ,8, 3, , , ,1
LESIZE,124, , ,8, 3, , , ,1
LESIZE,140, , ,8, 3, , , ,1
LESIZE,114, , ,8, 3, , , ,1
LESIZE,112, , ,8, 3, , , ,1
LESIZE,143, , ,8, 3, , , ,1
LESIZE,122, , ,8, 3, , , ,1
LESIZE,117, , ,8, 3, , , ,1
LESIZE,119, , ,8, 3, , , ,1
LESIZE,146, , ,8, 3, , , ,1
VSWEEP,3,3,22
VSWEEP,2,2,18
VSWEEP,4,4,25
VSWEEP,9,9,42
VSWEEP,1,1,14
VSWEEP,5,5,29
VSWEEP,8,8,39
VSWEEP,6,6,32
VSWEEP,7,7,36
VSWEEP,

12,22,55
VSWEEP,11,18,51
VSWEEP,13,25,58
VSWEEP,18,42,75
VSWEEP,10,14,47
VSWEEP,14,29,62
VSWEEP,17,39,72
VSWEEP,15,32,65
VSWEEP,16,36,69
VSWEEP,21,55,88
VSWEEP,20,51,84
VSWEEP,22,58,91
VSWEEP,27,75,108
VSWEEP,19,47,80
VSWEEP,23,62,95
VSWEEP,26,72,105
VSWEEP,24,65,98
VSWEEP,25,69,102

!更改与梁接触水的单元属性
ESEL,S,MAT,,1
ALLSEL,BELOW,ELEM
ESLN,S
ESEL,R,MAT,,2
EMODIF,ALL,TYPE,3,
ALLSEL,ALL

!选择固体外表面施加位移约束
ASEL,S,LOC,Z,0
NSLA,S,1
D,ALL, , , , , ,ALL, , , , ,
ALLSEL,ALL
!选择流体外表面
ASEL,S,LOC,X,-125.1e-3
ASEL,A,LOC,X,125.1e-3
ASEL,A,LOC,Y,-20e-3
ASEL,A,LOC,Y,21.69e-3
ASEL,A,LOC,Z,415e-3
ASEL,U,LOC,Z,0,5e-3
NSLA,S,1
D,ALL,PRES,0
ALLSEL,ALL
!选择流固耦合面
VSEL,S, , , 10
ALLSEL,BELOW,VOLU
ASEL,A,LOC,Z,5e-3
ASEL,U, , , 14
ALLSEL,BELOW,AREA
NSEL,ALL, , ,
NSLA,S,1
ESLN,S
ESEL,R,MAT,,2
SF,ALL,FSI
ALLSEL,ALL
FINISH

!进入求解器
/SOL
ANTYPE,2
MODOPT,DAMP,5
EQSLV,FRONT
MXPAND,5, , ,0
LUMPM,0
PSTRES,0
MODOPT,DAMP,5,0,0, ,OFF
solve





























相关文档
最新文档