Ansys建模示例
轴承座
1.创建基座
(1)生成长方体
BLOCK,0,3,0,1,0,3 !BLOCK,X1,X2,Y1,Y2,Z1,Z2
(2)平移并旋转工作平面
WPOFFS,2.25,1.25,0.75 !WPOFFS,XOFF,YOFF,ZOFF
WPROTA,0,-90 !WPTOTA,THXY,THYZ,THZX
(3)创建圆柱体
CYL4,0,0,0.75/2,,,,-1.5
(4)拷贝生成另一个圆柱体
VGEN,2,2,3,1,0,0,1.5,0,0,0
(5)长方体减去两个圆柱体
一个物体减去多个物体无法直接写出命令,但是可通过日志文件得到
/ANG,1
/REP,FAST
FLST,3,2,6,ORDE,2
FITEM,3,2
FITEM,3,-3
VSBV,1,P51X
(6)工作平面与总体笛卡尔坐标系一致
WPCSYS,-1,0
2.支撑部分
(1)支撑部分长方体
BLC4,0,1,1.5,1.75,0.75
(2)1/4 圆柱
K,110,0,2.75,0.75
KWPAVE,110
CYL4,0,0,0,0,1.5,90,-0.75
CYL4,0,0,0,0,1,360,-0.1875
CYL4,0,0,0,0,0.85,360,-2
相减
!以下为根据gui生成的日志命令
/ANG,1
/REP,FAST
FLST,2,2,6,ORDE,2
FITEM,2,1
FITEM,2,-2
VSBV,P51X,5
FLST,2,2,6,ORDE,2
FITEM,2,6
FITEM,2,-7
VSBV,P51X,3
!以上为日志
WPCSYS,-1,0
NUMMRG,KP
3.肋板
(1)确定三个点
K,50,1.5,1,0.75
K,60,1.5,2.75,0.75
K,70,1.5,1,3
(2)由点构成面
A,50,60,70
(3)由面构成体
VOFFST,22,-0.15,,
(4)转换工作坐标系
WPSTYL
(5)镜像实体
VSYMM,,ALL,,,0,0,0
(6)两个实体合并
VGLUE,ALL,,
4.单元类型
ET,1,SOLID92
TYPE,1
MAT,1
5.材料属性
MP,EX,1,30e6
6.网格划分
SMRTSIZE,5
VMESH,ALL,,,
7.加载
(1)对4个安装孔进行约束
/SOLU
ANTYPE,0
DA,15,SYMM
DA,16,SYMM
DA,17,SYMM
DA,18,SYMM
DA,53,SYMM
DA,55,SYMM
DA,57,SYMM
DA,58,SYMM
(2)对基座底部施加位移约束
DL,4,,UY
DL,5,,UY
DL,10,,UY
DL,115,,UY
DL,161,,UY
DL,163,,UY
(3)在轴承孔圆周上施加推力载荷
SFA,8,,PRES,1000
SFA,21,,PRES,1000
SFA,74,,PRES,1000
SFA,83,,PRES,1000
(4)轴承孔下半部分施加径向压力载荷
SFA,14,,PRES,5000
SFA,82,,PRES,5000
8.求解
SOLVE
附总代码
FINISH !关闭前面的分析
/CLEAR !清除变量/PREP7 !进入前处理器标志
!!!!!!!!!!!!!!!!!!!!!!!!!!几何建模
BLOCK,0,3,0,1,0,3 !BLOCK,X1,X2,Y1,Y2,Z1,Z2
WPOFFS,2.25,1.25,0.75 !WPOFFS,XOFF,YOFF,ZOFF
WPROTA,0,-90 !WPTOTA,THXY,THYZ,THZX
CYL4,0,0,0.75/2,,,,-1.5
VGEN,2,2,3,1,0,0,1.5,0,0,0
!以下为根据gui生成的日志命令
/ANG,1
/REP,FAST
FLST,3,2,6,ORDE,2
FITEM,3,2
FITEM,3,-3
VSBV,1,P51X
!以上为日志
WPCSYS,-1,0
BLC4,0,1,1.5,1.75,0.75
K,110,0,2.75,0.75
KWPAVE,110
CYL4,0,0,0,0,1.5,90,-0.75
CYL4,0,0,0,0,1,360,-0.1875
CYL4,0,0,0,0,0.85,360,-2
!以下为根据gui生成的日志命令
/ANG,1
/REP,FAST
FLST,2,2,6,ORDE,2
FITEM,2,1
FITEM,2,-2
VSBV,P51X,5
FLST,2,2,6,ORDE,2
FITEM,2,6
FITEM,2,-7
VSBV,P51X,3
!以上为日志
WPCSYS,-1,0
NUMMRG,KP
K,50,1.5,1,0.75
K,60,1.5,2.75,0.75
K,70,1.5,1,3
A,50,60,70
VOFFST,22,-0.15,,
WPSTYL
VSYMM,,ALL,,,0,0,0
VGLUE,ALL,,
ET,1,SOLID92
TYPE,1
MAT,1
MP,EX,1,30e6
SMRTSIZE,5
VMESH,ALL,,,/SOLU
ANTYPE,0
DA,15,SYMM
DA,16,SYMM
DA,17,SYMM
DA,18,SYMM
DA,53,SYMM
DA,55,SYMM
DA,57,SYMM
DA,58,SYMM
DL,4,,UY
DL,5,,UY
DL,10,,UY
DL,115,,UY
DL,161,,UY
DL,163,,UY
SFA,8,,PRES,1000
SFA,21,,PRES,1000
SFA,74,,PRES,1000
SFA,83,,PRES,1000
SFA,14,,PRES,5000
SFA,82,,PRES,5000
SOLVE