齿轮接触命令流
!开始
FINISH$/CLEAR$/PREP7
MN=0.005$Z1=30$Z2=66$JN=20$JFENL=28.4635$PI=ACOS(-1)
HAXN=1$CXN=0.25
MT=MN/COS(JFENL*PI/180)
JT=ATAN(TAN(JN*PI/180)/COS(JFENL*PI/180))
HAT=HAXN*MN
HFT=(HAXN+CXN)*MN
D1=MT*Z1$D2=MT*Z2
DB1=D1*COS(JT)$DB2=D2*COS(JT)
DA1=D1+2*HAT$DA2=D2+2*HAT
DF1=D1-2*HFT$DF2=D2-2*HFT
R_1=D1/2$R_2=D2/2
R_B1=DB1/2$R_B2=DB2/2
R_A1=DA1/2$R_A2=DA2/2
R_F1=DF1/2$R_F2=DF2/2
R_G1=R_1-HAT$R_G2=R_2-HAT
ALFAG1=ACOS(R_B1/R_G1)$ALFAG2=ACOS(R_B2/R_G2) !渐开线起点处半径
!下面列渐开线方程,方程参见SCI2
!小齿轮
N1=199
THETE_1=TAN(JT)-JT
CAN_FAI1=PI/2-PI/(2*Z1)-THETE_1
CSYS,0
*DO,I,1,N1
ALPHA_P=ACOS(R_B1/R_A1)-(ACOS(R_B1/R_A1)-ACOS(R_B1/R_G1))/(N1-1)*(I-1)
CAN_YOU=TAN(ALPHA_P)
X_1=R_B1*COS(CAN_YOU+CAN_FAI1)+R_B1*CAN_YOU*SIN(CAN_YOU+CAN_FAI1)
Y_1=R_B1*SIN(CAN_YOU+CAN_FAI1)-R_B1*CAN_YOU*COS(CAN_YOU+CAN_FAI1)
K,I,X_1,Y_1,0 !过渡曲线在Y轴左侧,所以把渐开线也镜像过去
*ENDDO
KSEL,ALL !注意渐开线起点从过渡曲线终点处关键点2开始,以保证无缝连接
BSPLIN,ALL
K,200,(R_F1-0.00093)*SIN(PI/Z1),(R_F1-0.00093)*COS(PI/Z1),0 !通过PROE绘图,计算圆弧半径
K,201,(R_F1-0.0009)*SIN(PI/Z1),(R_F1-0.0009)*COS(PI/Z1),0
LARC,199,200,201,0.00274
LCOMB,1,2
LSYMM,X,1,,,,,0
K,203,0,0,0
LARC,1,199,203,R_A1
CSYS,1
K,204,R_F1/3,KY(200),0
K,205,R_F1/3,KY(202),0
L,204,205
CSYS,0
L,200,204
L,202,205
LSEL,ALL
AL,ALL
CSYS,1
AGEN,5,1,,,,360/Z1,,,,0
ASEL,ALL
AADD,ALL
CSYS,0
L,202,205
L,210,209
L,216,215
L,222,221
K,230,0,R_1,0
CSYS,1
K,231,R_1,KY(230)+360/Z1,0
K,232,R_1,KY(231)+360/Z1,0
K,233,R_1,KY(232)+360/Z1,0
K,234,R_1,KY(233)+360/Z1,0
CSYS,0
LARC,200,202,230,R_A1/5
LARC,202,210,231,R_A1/5
LARC,210,216,232,R_A1/5
LARC,216,222,233,R_A1/5
LARC,222,228,234,R_A1/5
ASBL,6,10
ASBL,2,6
ASBL,4,13
ASBL,5,7
ASBL,6,14
ASBL,7,8
ASBL,8,15
ASBL,9,9
ASBL,10,16
LCOMB,19,21
LCOMB,20,22
LCOMB,25,26
LCOMB,39,40
LCOMB,27,41
LCOMB,44,43
LCOMB,42,45
LCOMB,46,48
LCOMB,47,49
LCOMB,50,51
CSYS,1
K,235,R_F1-0.00093,90
K,236,R_F1-0.00093,90+(TAN(JFENL*PI/180)*0.04/R_1)*180/PI,-0.04 !生成路径两端点坐标
L,235,236
ASEL,ALL
VDRAG,ALL,,,,,,1
ET,1,SOLID164
MP,EX,1,2.1E5
MP,PRXY,1,0.3
MP,DENS,1,7850
ET,2,SHELL163,7
R,2,,,0.1
EDMP,RIGID,2,7,4
MP,DENS,2,7800
MP,EX,2,2.1E11
MP,NUXY,2,0.3
MP,EX,3,1.5E5
MP,PRXY,3,0.1
MP,DENS,3,7000
EDMP,RIGID,4,7,4
MP,DENS,4,7500
MP,EX,4,2.0E11
MP,NUXY,4,0.5
CSYS,0
VSEL,ALL
VATT,1,,1
LSEL,S,LINE,,5,6,1
LESIZE,ALL,,,5
LSEL,S,LINE,,4,10,6
LESIZE,ALL,,,4
LSEL,S,LINE,,45,52,7
LESIZE,ALL,,,5
LSEL,S,LINE,,29,49,20
LESIZE,ALL,,,4
LSEL,S,LINE,,11,26,15
LESIZE,ALL,,,20
LSEL,S,LINE,,48,51,3
LESIZE,ALL,,,20
LSEL,S,LINE,,17,22,5
LESIZE,ALL,,,20
LSEL,S,LINE,,3
LESIZE,ALL,,,4
LSEL,S,LINE,,19,20,1
LESIZE,ALL,,,20
LSEL,S,LINE,,21
LESIZE,ALL,,,4
LSEL,S,LINE,,2,23,21
LESIZE,ALL,,,20
LSEL,S,LINE,,7
LESIZE,ALL,,,5
LSEL,S,LINE,,55
LESIZE,ALL,,,5
LSEL,S,LINE,,13,32,19
LESIZE,ALL,,,4
LSEL,S,LINE,,44,53,9
LESIZE,ALL,,,4
LSEL,S,LINE,,54
LESIZE,ALL,,,20
LSEL,S,LINE,,8
LESIZE,ALL,,,5
LSEL,S,LINE,,65
LESIZE,ALL,,,5
LSEL,S,LINE,,14,33,19
LESIZE,ALL,,,4
LSEL,S,LINE,,62,63,1
LESIZE,ALL,,,4
LSEL,S,LINE,,64
LESIZE,ALL,,,20
LSEL,S,LINE,,9
LESIZE,ALL,,,5
LSEL,S,LINE,,75
LESIZE,ALL,,,5
LSEL,S,LINE,,15,35,20
LESIZE,ALL,,,4
LSEL,S,LINE,,72,73,1
LESIZE,ALL,,,4
LSEL,S,LINE,,74
LESIZE,ALL,,,20
LSEL,S,LINE,,28
LESIZE,ALL,,,5
LSEL,S,LINE,,78
LESIZE,ALL,,,5
LSEL,S,LINE,,16,37,21
LESIZE,ALL,,,4
LSEL,S,LINE,,76,80,4
LESIZE,ALL,,,4
LSEL,S,LINE,,77
LESIZE,ALL,,,20
LSEL,S,LINE,,12
LESIZE,ALL,,,4
LSEL,S,LINE,,25,39,14
LESIZE,ALL,,,20
LSEL,S,LINE,,38
LESIZE,ALL,,,4
LSEL,S,LINE,,31,41,5
LESIZE,ALL,,,20
LSEL,S,LINE,,36,40,4
LESIZE,ALL,,,20
LSEL,S,LINE,,34
LESIZE,ALL,,,20
LSEL,S,LINE,,18
LESIZE,ALL,,,4
LSEL,S,LINE,,27,43,16
LESIZE,ALL,,,20
LSEL,S,LINE,,59
LESIZE,ALL,,,4
LSEL,S,LINE,,56,61,5
LESIZE,ALL,,,20
LSEL,S,LINE,,58,60,2
LESIZE,ALL,,,20
LSEL,S,LINE,,57
LESIZE,ALL,,,20
LSEL,S,LINE,,24
LESIZE,ALL,,,4
LSEL,S,LINE,,42,46,4
LESIZE,ALL,,,20
LSEL,S,LINE,,69
LESIZE,ALL,,,4
LSEL,S,LINE,,66,71,5
LESIZE,ALL,,,20
LSEL,S,LINE,,68,70,2
LESIZE,ALL,,,20
LSEL,S,LINE,,67
LESIZE,ALL,,,20
LSEL,S,LINE,,30
LESIZE,ALL,,,4
LSEL,S,LINE,,47,50,3
LESIZE,ALL,,,20
LSEL,S,LINE,,83
LESIZE,ALL,,,4
LSEL,S,LINE,,81,85,4
LESIZE,ALL,,,20
LSEL,S,LINE,,82,84,2
LESIZE,ALL,,,20
LSEL,S,LINE,,79
LESIZE,ALL,,,20
MSHAPE,0,3D
MSHKEY,1
VMESH,ALL
!大齿轮渐开线
LOCAL,11,0,R_1+R_2,0,0
N2=199
CAN_FAI2=PI/2-PI/(2*Z2)-THETE_1
*DO,I,1,N2
ALPHA_P=ACOS(R_B2/R_A2)-(ACOS(R_B2/R_A2)-ACOS(R_B2/R_G2))/(N2-1)*(I-1)
CAN_YOU=TAN(ALPHA_P)
X_1=R_B2*COS(CAN_YOU+CAN_FAI2)+R_B2*CAN_YOU*SIN(CAN_YOU+CAN_FAI2)
Y_1=R_B2*SIN(CAN_YOU+CAN_FAI2)-R_B2*CAN_YOU*COS(CAN_YOU+CAN_FAI2)
K,250+I,X_1,Y_1,0
*ENDDO
KSEL,S,KP,,251,250+N2,1
BSPLIN,ALL
K,450,(R_F2-0.00054)*SIN(PI/Z2),(R_F2-0.00054)*COS(PI/Z2),0
K,451,(R_F2-0.0005)*SIN(PI/Z2),(R_F2-0.0005)*COS(PI/Z2),0
LARC,449,450,451,0.00264
LCOMB,86,87
LSYMM,X,86,,,,,0
K,453,0,0,0
LARC,251,449,453,R_A2
LOCAL,12,1,R_1+R_2,0,0
K,454,R_F2/3,KY(450),0
K,455,R_F2/3,KY(452),0
L,454,455
CSYS,11
L,450,454
L,452,455
LSEL,S,LINE,,86,91,1
AL,ALL
CSYS,12
ASEL,S,AREA,,52
AGEN,5,ALL,,,,360/Z2,,,,0
ASEL,S,AREA,,52,56,1
AADD,ALL
CSYS,11
L,452,455
L,460,459
L,466,465
L,472,471
K,480,0,R_2,0
CSYS,12
K,481,R_2,KY(480)+360/Z2,0
K,482,R_2,KY(481)+360/Z2,0
K,483,R_2,KY(482)+360/Z2,0
K,484,R_2,KY(483)+360/Z2,0
CSYS,11
LARC,450,452,480,R_A2/5
LARC,452,460,481,R_A2/5
LARC,460,466,482,R_A2/5
LARC,466,472,483,R_A2/5
LARC,472,478,484,R_A2/5
ASBL,57,95
ASBL,53,91
ASBL,55,98
ASBL,56,92
ASBL,57,99
ASBL,58,93
ASBL,59,100
ASBL,60,94
ASBL,61,101
CSYS,12
K,485,R_F2-0.00054,90
K,486,R_F2-0.00054,90-(TAN(JFENL*PI/180)*0.04/R_2)*180/PI,-0.04 !生成路径两端点坐标
L,485,486
ASEL,S,AREA,,52,60,1
ASEL,A,AREA,,62
VDRAG,ALL,,,,,,104
CSYS,11
VSEL,S,VOLU,,11,20,1
VATT,3,,1
LSEL,S,LINE,,90,94,1
LSEL,A,LINE,,113
LESIZE,ALL,,,10
LSEL,S,LINE,,133,137,4
LSEL,A,LINE,,140,150,10
LSEL,A,LINE,,160,163,3
LESIZE,ALL,,,10
LSEL,S,LINE,,134,136,2
LSEL,A,LINE,,139,149,10
LSEL,A,LINE,,159,162,3
LESIZE,ALL,,,20
LSEL,S,LINE,,89,117,28
LSEL,A,LINE,,118,120,2
LSEL,A,LINE,,122
LSEL,A,LINE,,135,138,3
LSEL,A,LINE,,148,158,10
LSEL,A,LINE,,161
LSEL,A,LINE,,95,98,3
LSEL,A,LINE,,99,100,1
LSEL,A,LINE,,101
LSEL,A,LINE,,88,97,9
LSEL,A,LINE,,103,109,6
LSEL,A,LINE,,115
LSEL,A,LINE,,125,132,7
LSEL,A,LINE,,147,157,10
LSEL,A,LINE,,165
LSEL,A,LINE,,110,129,19
LSEL,A,LINE,,144,154,10
LSEL,A,LINE,,168
LESIZE,ALL,,,4
LSEL,S,LINE,,86,87,1
LSEL,A,LINE,,96,116,20
LSEL,A,LINE,,102,119,17
LSEL,A,LINE,,108,121,13
LSEL,A,LINE,,114,123,9
LSEL,A,LINE,,126,131,5
LSEL,A,LINE,,141,146,5
LSEL,A,LINE,,151,156,5
LSEL,A,LINE,,166,170,4
LESIZE,ALL,,,20
LSEL,S,LINE,,164,167,3
LSEL,A,LINE,,152,169,17
LSEL,A,LINE,,142,153,11
LSEL,A,LINE,,143,155,12
LSEL,A,LINE,,127,145,18
LSEL,A,LINE,,128,130,2
LSEL,A,LINE,,106,107,1
LSEL,A,LINE,,111,124,13
LESIZE,ALL,,,20
VSEL,S,VOLU,,11,20,1
MSHAPE,0,3D
MSHKEY,1
VMESH,ALL
ASEL,S,AREA,,44
ASEL,A,AREA,,41
ASEL,A,AREA,,25
ASEL,A,AREA,,22
ASEL,A,AREA,,33
AATT,2,2,2,0
AMESH,ALL
ASEL,S,AREA,,95
ASEL,A,AREA,,92
ASEL,A,AREA,,84
ASEL,A,AREA,,76
ASEL,A,AREA,,73
AATT,4,2,2,11
AMESH,ALL
EDPART,CREATE
EDCGEN,ASTS,1,2,0.3,0.25
!分开粘帖
CSYS,0
*DIM,TIME,ARRAY,1,1,1
*SET,TIME(1,1,1),10
*DIM,WZ,ARRAY,1,1,1
*SET,WZ(1,1,1),0.2
*DIM,CENTER,ARRAY,3,1,1,,,,0
*SET,CENTER(1,1,1),0
*SET,CENTER(2,1,1),0
*SET,CENTER(3,1,1),0
*DIM,II,ARRAY,6,1,1
*SET,II(1,1,1),1.1
*SET,II(4,1,1),0.02475
*SET,II(5,1,1),0.165
*SET,II(6,1,1),1.1
EDIPART,3,ADD,CENTER,4.4,,II
EDLCS,ADD,14,0,0,0,0,0,10,0,0,0
EDLOAD,ADD,RBOZ,14,3,TIME,WZ,0
CSYS,11
*DIM,JIAOSUDU,ARRAY,1,1,1
*SET,JIAOSUDU(1,1,1),62.8
*DIM,CENTER_2,ARRAY,3,1,1,,,,11
*SET,CENTER_2(1,1,1),0
*SET,CENTER_2(2,1,1),0
*SET,CENTER_2(3,1,1),0
*DIM,II_2,ARRAY,6,1,1
*SET,II_2(1,1,1),2
*SET,II_2(4,1,1),0.05
*SET,II_2(5,1,1),0.2
*SET,II_2(6,1,1),2
EDIPART,4,ADD,CENTER_2,4,,II
EDLCS,ADD,13,0,0,0,0,0,10,0,0,0
EDLOAD,ADD,RBOZ,13,4,TIME,JIAOSUDU,0
FINISH$/CLEAR$/PREP7
MN=0.005$Z1=30$Z2=66$JN=20$JFENL=28.4635$PI=ACOS(-1)
HAXN=1$CXN=0.25
MT=MN/COS(JFENL*PI/180)
JT=ATAN(TAN(JN*PI/180)/COS(JFENL*PI/180))
HAT=HAXN*MN
HFT=(HAXN+CXN)*MN
D1=MT*Z1$D2=MT*Z2
DB1=D1*COS(JT)$DB2=D2*COS(JT)
DA1=D1+2*HAT$DA2=D2+2*HAT
DF1=D1-2*HFT$DF2=D2-2*HFT
R_1=D1/2$R_2=D2/2
R_B1=DB1/2$R_B2=DB2/2
R_A1=DA1/2$R_A2=DA2/2
R_F1=DF1/2$R_F2=DF2/2
R_G1=R_1-HAT$R_G2=R_2-HAT
ALFAG1=ACOS(R_B1/R_G1)$ALFAG2=ACOS(R_B2/R_G2) !渐开线起点处半径
!下面列渐开线方程,方程参见SCI2
!小齿轮
N1=199
THETE_1=TAN(JT)-JT
CAN_FAI1=PI/2-PI/(2*Z1)-THETE_1
CSYS,0
*DO,I,1,N1
ALPHA_P=ACOS(R_B1/R_A1)-(ACOS(R_B1/R_A1)-ACOS(R_B1/R_G1))/(N1-1)*(I-1)
CAN_YOU=TAN(ALPHA_P)
X_1=R_B1*COS(CAN_YOU+CAN_FAI1)+R_B1*CAN_YOU*SIN(CAN_YOU+CAN_FAI1)
Y_1=R_B1*SIN(CAN_YOU+CAN_FAI1)-R_B1*CAN_YOU*COS(CAN_YOU+CAN_FAI1)
K,I,X_1,Y_1,0 !过渡曲线在Y轴左侧,所以把渐开线也镜像过去
*ENDDO
KSEL,ALL !注意渐开线起点从过渡曲线终点处关键点2开始,以保证无缝连接
BSPLIN,ALL
K,200,(R_F1-0.00093)*SIN(PI/Z1),(R_F1-0.00093)*COS(PI/Z1),0 !通过PROE绘图,计算圆弧半径
K,201,(R_F1-0.0009)*SIN(PI/Z1),(R_F1-0.0009)*COS(PI/Z1),0
LARC,199,200,201,0.00274
LCOMB,1,2
LSYMM,X,1,,,,,0
K,203,0,0,0
LARC,1,199,203,R_A1
CSYS,1
K,204,R_F1/3,KY(200),0
K,205,R_F1/3,KY(202),0
L,204,205
CSYS,0
L,200,204
L,202,205
LSEL,ALL
AL,ALL
CSYS,1
AGEN,5,1,,,,360/Z1,,,,0
ASEL,ALL
AADD,ALL
CSYS,0
L,202,205
L,210,209
L,216,215
L,222,221
K,230,0,R_1,0
CSYS,1
K,231,R_1,KY(230)+360/Z1,0
K,232,R_1,KY(231)+360/Z1,0
K,233,R_1,KY(232)+360/Z1,0
K,234,R_1,KY(233)+360/Z1,0
CSYS,0
LARC,200,202,230,R_A1/5
LARC,202,210,231,R_A1/5
LARC,210,216,232,R_A1/5
LARC,216,222,233,R_A1/5
LARC,222,228,234,R_A1/5
ASBL,6,10
ASBL,2,6
ASBL,4,13
ASBL,5,7
ASBL,6,14
ASBL,7,8
ASBL,8,15
ASBL,9,9
ASBL,10,16
LCOMB,19,21
LCOMB,20,22
LCOMB,25,26
LCOMB,39,40
LCOMB,27,41
LCOMB,44,43
LCOMB,42,45
LCOMB,46,48
LCOMB,47,49
LCOMB,50,51
CSYS,1
K,235,R_F1-0.00093,90
K,236,R_F1-0.00093,90+(TAN(JFENL*PI/180)*0.04/R_1)*180/PI,-0.04 !生成路径两端点坐标
L,235,236
ASEL,ALL
VDRAG,ALL,,,,,,1
ET,1,SOLID164
MP,EX,1,2.1E5
MP,PRXY,1,0.3
MP,DENS,1,7850
ET,2,SHELL163,7
R,2,,,0.1
EDMP,RIGID,2,7,4
MP,DENS,2,7800
MP,EX,2,2.1E11
MP,NUXY,2,0.3
MP,EX,3,1.5E5
MP,PRXY,3,0.1
MP,DENS,3,7000
EDMP,RIGID,4,7,4
MP,DENS,4,7500
MP,EX,4,2.0E11
MP,NUXY,4,0.5
CSYS,0
VSEL,ALL
VATT,1,,1
LSEL,S,LINE,,5,6,1
LESIZE,ALL,,,5
LSEL,S,LINE,,4,10,6
LESIZE,ALL,,,4
LSEL,S,LINE,,45,52,7
LESIZE,ALL,,,5
LSEL,S,LINE,,29,49,20
LESIZE,ALL,,,4
LSEL,S,LINE,,11,26,15
LESIZE,ALL,,,20
LSEL,S,LINE,,48,51,3
LESIZE,ALL,,,20
LSEL,S,LINE,,17,22,5
LESIZE,ALL,,,20
LSEL,S,LINE,,3
LESIZE,ALL,,,4
LSEL,S,LINE,,19,20,1
LESIZE,ALL,,,20
LSEL,S,LINE,,21
LESIZE,ALL,,,4
LSEL,S,LINE,,2,23,21
LESIZE,ALL,,,20
LSEL,S,LINE,,7
LESIZE,ALL,,,5
LSEL,S,LINE,,55
LESIZE,ALL,,,5
LSEL,S,LINE,,13,32,19
LESIZE,ALL,,,4
LSEL,S,LINE,,44,53,9
LESIZE,ALL,,,4
LSEL,S,LINE,,54
LESIZE,ALL,,,20
LSEL,S,LINE,,8
LESIZE,ALL,,,5
LSEL,S,LINE,,65
LESIZE,ALL,,,5
LSEL,S,LINE,,14,33,19
LESIZE,ALL,,,4
LSEL,S,LINE,,62,63,1
LESIZE,ALL,,,4
LSEL,S,LINE,,64
LESIZE,ALL,,,20
LSEL,S,LINE,,9
LESIZE,ALL,,,5
LSEL,S,LINE,,75
LESIZE,ALL,,,5
LSEL,S,LINE,,15,35,20
LESIZE,ALL,,,4
LSEL,S,LINE,,72,73,1
LESIZE,ALL,,,4
LSEL,S,LINE,,74
LESIZE,ALL,,,20
LSEL,S,LINE,,28
LESIZE,ALL,,,5
LSEL,S,LINE,,78
LESIZE,ALL,,,5
LSEL,S,LINE,,16,37,21
LESIZE,ALL,,,4
LSEL,S,LINE,,76,80,4
LESIZE,ALL,,,4
LSEL,S,LINE,,77
LESIZE,ALL,,,20
LSEL,S,LINE,,12
LESIZE,ALL,,,4
LSEL,S,LINE,,25,39,14
LESIZE,ALL,,,20
LSEL,S,LINE,,38
LESIZE,ALL,,,4
LSEL,S,LINE,,31,41,5
LESIZE,ALL,,,20
LSEL,S,LINE,,36,40,4
LESIZE,ALL,,,20
LSEL,S,LINE,,34
LESIZE,ALL,,,20
LSEL,S,LINE,,18
LESIZE,ALL,,,4
LSEL,S,LINE,,27,43,16
LESIZE,ALL,,,20
LSEL,S,LINE,,59
LESIZE,ALL,,,4
LSEL,S,LINE,,56,61,5
LESIZE,ALL,,,20
LSEL,S,LINE,,58,60,2
LESIZE,ALL,,,20
LSEL,S,LINE,,57
LESIZE,ALL,,,20
LSEL,S,LINE,,24
LESIZE,ALL,,,4
LSEL,S,LINE,,42,46,4
LESIZE,ALL,,,20
LSEL,S,LINE,,69
LESIZE,ALL,,,4
LSEL,S,LINE,,66,71,5
LESIZE,ALL,,,20
LSEL,S,LINE,,68,70,2
LESIZE,ALL,,,20
LSEL,S,LINE,,67
LESIZE,ALL,,,20
LSEL,S,LINE,,30
LESIZE,ALL,,,4
LSEL,S,LINE,,47,50,3
LESIZE,ALL,,,20
LSEL,S,LINE,,83
LESIZE,ALL,,,4
LSEL,S,LINE,,81,85,4
LESIZE,ALL,,,20
LSEL,S,LINE,,82,84,2
LESIZE,ALL,,,20
LSEL,S,LINE,,79
LESIZE,ALL,,,20
MSHAPE,0,3D
MSHKEY,1
VMESH,ALL
!大齿轮渐开线
LOCAL,11,0,R_1+R_2,0,0
N2=199
CAN_FAI2=PI/2-PI/(2*Z2)-THETE_1
*DO,I,1,N2
ALPHA_P=ACOS(R_B2/R_A2)-(ACOS(R_B2/R_A2)-ACOS(R_B2/R_G2))/(N2-1)*(I-1)
CAN_YOU=TAN(ALPHA_P)
X_1=R_B2*COS(CAN_YOU+CAN_FAI2)+R_B2*CAN_YOU*SIN(CAN_YOU+CAN_FAI2)
Y_1=R_B2*SIN(CAN_YOU+CAN_FAI2)-R_B2*CAN_YOU*COS(CAN_YOU+CAN_FAI2)
K,250+I,X_1,Y_1,0
*ENDDO
KSEL,S,KP,,251,250+N2,1
BSPLIN,ALL
K,450,(R_F2-0.00054)*SIN(PI/Z2),(R_F2-0.00054)*COS(PI/Z2),0
K,451,(R_F2-0.0005)*SIN(PI/Z2),(R_F2-0.0005)*COS(PI/Z2),0
LARC,449,450,451,0.00264
LCOMB,86,87
LSYMM,X,86,,,,,0
K,453,0,0,0
LARC,251,449,453,R_A2
LOCAL,12,1,R_1+R_2,0,0
K,454,R_F2/3,KY(450),0
K,455,R_F2/3,KY(452),0
L,454,455
CSYS,11
L,450,454
L,452,455
LSEL,S,LINE,,86,91,1
AL,ALL
CSYS,12
ASEL,S,AREA,,52
AGEN,5,ALL,,,,360/Z2,,,,0
ASEL,S,AREA,,52,56,1
AADD,ALL
CSYS,11
L,452,455
L,460,459
L,466,465
L,472,471
K,480,0,R_2,0
CSYS,12
K,481,R_2,KY(480)+360/Z2,0
K,482,R_2,KY(481)+360/Z2,0
K,483,R_2,KY(482)+360/Z2,0
K,484,R_2,KY(483)+360/Z2,0
CSYS,11
LARC,450,452,480,R_A2/5
LARC,452,460,481,R_A2/5
LARC,460,466,482,R_A2/5
LARC,466,472,483,R_A2/5
LARC,472,478,484,R_A2/5
ASBL,57,95
ASBL,53,91
ASBL,55,98
ASBL,56,92
ASBL,57,99
ASBL,58,93
ASBL,59,100
ASBL,60,94
ASBL,61,101
CSYS,12
K,485,R_F2-0.00054,90
K,486,R_F2-0.00054,90-(TAN(JFENL*PI/180)*0.04/R_2)*180/PI,-0.04 !生成路径两端点坐标
L,485,486
ASEL,S,AREA,,52,60,1
ASEL,A,AREA,,62
VDRAG,ALL,,,,,,104
CSYS,11
VSEL,S,VOLU,,11,20,1
VATT,3,,1
LSEL,S,LINE,,90,94,1
LSEL,A,LINE,,113
LESIZE,ALL,,,10
LSEL,S,LINE,,133,137,4
LSEL,A,LINE,,140,150,10
LSEL,A,LINE,,160,163,3
LESIZE,ALL,,,10
LSEL,S,LINE,,134,136,2
LSEL,A,LINE,,139,149,10
LSEL,A,LINE,,159,162,3
LESIZE,ALL,,,20
LSEL,S,LINE,,89,117,28
LSEL,A,LINE,,118,120,2
LSEL,A,LINE,,122
LSEL,A,LINE,,135,138,3
LSEL,A,LINE,,148,158,10
LSEL,A,LINE,,161
LSEL,A,LINE,,95,98,3
LSEL,A,LINE,,99,100,1
LSEL,A,LINE,,101
LSEL,A,LINE,,88,97,9
LSEL,A,LINE,,103,109,6
LSEL,A,LINE,,115
LSEL,A,LINE,,125,132,7
LSEL,A,LINE,,147,157,10
LSEL,A,LINE,,165
LSEL,A,LINE,,110,129,19
LSEL,A,LINE,,144,154,10
LSEL,A,LINE,,168
LESIZE,ALL,,,4
LSEL,S,LINE,,86,87,1
LSEL,A,LINE,,96,116,20
LSEL,A,LINE,,102,119,17
LSEL,A,LINE,,108,121,13
LSEL,A,LINE,,114,123,9
LSEL,A,LINE,,126,131,5
LSEL,A,LINE,,141,146,5
LSEL,A,LINE,,151,156,5
LSEL,A,LINE,,166,170,4
LESIZE,ALL,,,20
LSEL,S,LINE,,164,167,3
LSEL,A,LINE,,152,169,17
LSEL,A,LINE,,142,153,11
LSEL,A,LINE,,143,155,12
LSEL,A,LINE,,127,145,18
LSEL,A,LINE,,128,130,2
LSEL,A,LINE,,106,107,1
LSEL,A,LINE,,111,124,13
LESIZE,ALL,,,20
VSEL,S,VOLU,,11,20,1
MSHAPE,0,3D
MSHKEY,1
VMESH,ALL
ASEL,S,AREA,,44
ASEL,A,AREA,,41
ASEL,A,AREA,,25
ASEL,A,AREA,,22
ASEL,A,AREA,,33
AATT,2,2,2,0
AMESH,ALL
ASEL,S,AREA,,95
ASEL,A,AREA,,92
ASEL,A,AREA,,84
ASEL,A,AREA,,76
ASEL,A,AREA,,73
AATT,4,2,2,11
AMESH,ALL
EDPART,CREATE
EDCGEN,ASTS,1,2,0.3,0.25
!分开粘帖
CSYS,0
*DIM,TIME,ARRAY,1,1,1
*SET,TIME(1,1,1),10
*DIM,WZ,ARRAY,1,1,1
*SET,WZ(1,1,1),0.2
*DIM,CENTER,ARRAY,3,1,1,,,,0
*SET,CENTER(1,1,1),0
*SET,CENTER(2,1,1),0
*SET,CENTER(3,1,1),0
*DIM,II,ARRAY,6,1,1
*SET,II(1,1,1),1.1
*SET,II(4,1,1),0.02475
*SET,II(5,1,1),0.165
*SET,II(6,1,1),1.1
EDIPART,3,ADD,CENTER,4.4,,II
EDLCS,ADD,14,0,0,0,0,0,10,0,0,0
EDLOAD,ADD,RBOZ,14,3,TIME,WZ,0
CSYS,11
*DIM,JIAOSUDU,ARRAY,1,1,1
*SET,JIAOSUDU(1,1,1),62.8
*DIM,CENTER_2,ARRAY,3,1,1,,,,11
*SET,CENTER_2(1,1,1),0
*SET,CENTER_2(2,1,1),0
*SET,CENTER_2(3,1,1),0
*DIM,II_2,ARRAY,6,1,1
*SET,II_2(1,1,1),2
*SET,II_2(4,1,1),0.05
*SET,II_2(5,1,1),0.2
*SET,II_2(6,1,1),2
EDIPART,4,ADD,CENTER_2,4,,II
EDLCS,ADD,13,0,0,0,0,0,10,0,0,0
EDLOAD,ADD,RBOZ,13,4,TIME,JIAOSUDU,0
点赞 评论 2 收藏