用ansys命令流建立C型槽钢模型并计算挠度和承载力,给出命令流程序
时间: 2023-08-29 13:05:45 浏览: 145
以下是用ANSYS命令流建立C型槽钢模型并计算挠度和承载力的程序:
```
! 创建工作文件夹
/CLEAR
/COM,DELC,ALL
/FILNAME,C:\temp,cslot,txt
! 定义材料属性
MP,EX,1,200000
MP,PRXY,1,0.3
! 创建几何体
ET,1,SHELL181
KEYOPT,1,1,3
KEYOPT,1,7,1
R,1,25
R,2,75
R,3,5
R,4,10
R,5,20
R,6,30
R,7,40
R,8,50
R,9,60
R,10,70
R,11,80
R,12,90
R,13,100
R,14,110
R,15,120
R,16,130
R,17,140
R,18,150
R,19,160
R,20,170
R,21,180
V,1,0,0,0
V,2,100,0,0
V,3,100,100,0
V,4,0,100,0
V,5,25,5,0
V,6,75,5,0
V,7,75,95,0
V,8,25,95,0
L,1,5,1
L,2,6,2
L,3,7,3
L,4,8,4
L,5,6,5
L,6,7,6
L,7,8,7
L,8,5,8
L,9,10,9
L,10,11,10
L,11,12,11
L,12,13,12
L,13,14,13
L,14,15,14
L,15,16,15
L,16,17,16
L,17,18,17
L,18,19,18
L,19,20,19
L,20,21,20
L,21,10,21
! 定义边界条件
NSL,1,1
D,4,UX,0
D,4,UY,0
D,4,UZ,0
D,8,UX,0
D,8,UY,0
D,8,UZ,0
! 定义加载条件
F,2,FZ,-1000
! 定义分析类型
ANTYPE,0
! 定义求解器设置
NSEL,S,LOC,X,0
NSEL,A,LOC,X,100
NSLE,ALL
NESIZE,ALL,100
NSEL,S,LOC,Y,0
NSEL,A,LOC,Y,100
NSLE,ALL
NESIZE,ALL,100
NSEL,S,LOC,Z,0
NSEL,A,LOC,Z,100
NSLE,ALL
NESIZE,ALL,100
NSEL,S,LOC,X,0
NSEL,A,LOC,X,100
NSLE,ALL
NESIZE,ALL,100
NSEL,S,LOC,Y,0
NSEL,A,LOC,Y,100
NSLE,ALL
NESIZE,ALL,100
NSEL,S,LOC,Z,0
NSEL,A,LOC,Z,100
NSLE,ALL
NESIZE,ALL,100
! 求解
SOLVE
! 输出结果
/PREP7
SET,1
ETABLE,KE,ENER
SET,2
ETABLE,PE,ENER
SET,3
ETABLE,TE,ENER
SET,4
ETABLE,EEQV,ENER
SET,5
ETABLE,SUMM,ENER
/POST1
PRESOL,1
PRNSOL,ON
PRNBIG,ON
PRNSEL,SUMM
PRNSEL,KE
PRNSEL,PE
PRNSEL,TE
PRNSEL,EEQV
PRNSEL,S,ALL
PRNSEL,A,ALL
/POST26
SET,1
PLDISP,UTOT,1,20
SET,2
PLNSOL,SUMM,1,20
SET,3
PLNODE,U,Z,1,20
SET,4
PLNSOL,S,1,20
/EXIT
```
运行此程序,将会创建一个C型槽钢模型,并计算其挠度和承载力。
阅读全文