---------ANSYS命令流算例二--直接输入---------FINI退出四大模块,回到begin层/CLE清空数据库/FILENAME,Kuangjia改jobname/TITLE,TWO改title/UNITS,SI声明单位系统,表明所用的单位LABEL=SI(公制,米、千克、秒)/NERR,,100000错误提示100000个,UtilityMenuMenuctrlsMessageControls/CONFIG,NRES,10000更改子步总数限定,记录所有子步,重复Frequency限值为10000步/PREP7前处理ET,1,BEAM188单元类型1为beam188MP,EX,1,2.06E11定义材料1弹性模量2.06e11MP,PRXY,1,0.3定义材料1主泊松比0.3MP,DENS,1,7850定义材料1密度7850TB,BKIN,1,1,2,1材料1双线性随动强化TBTEMP,0设定温度TBDATA,,2.35E8,4.12E9给数据表定义数据,定义蠕变性能参数SECTYPE,1,BEAM,HREC,bianzhu,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.30,0.30,0.010,0.010,0.010,0.010描述梁截面的几何形状SECTYPE,2,BEAM,HREC,bianzhu2,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.27,0.27,0.010,0.010,0.010,0.010描述梁截面的几何形状SECTYPE,3,BEAM,HREC,bianzhu3,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.23,0.24,0.010,0.010,0.010,0.010描述梁截面的几何形状SECTYPE,4,BEAM,HREC,bianzhu4,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.22,0.23,0.010,0.010,0.010,0.010描述梁截面的几何形状SECTYPE,14,BEAM,HREC,zhongzhu,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.33,0.33,0.014,0.014,0.014,0.014描述梁截面的几何形状SECTYPE,15,BEAM,HREC,zhongzhu2,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.31,0.31,0.014,0.014,0.014,0.014描述梁截面的几何形状SECTYPE,16,BEAM,HREC,zhongzhu3,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.29,0.29,0.012,0.012,0.012,0.012描述梁截面的几何形状SECTYPE,17,BEAM,HREC,zhongzhu4,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.27,0.27,0.010,0.010,0.010,0.010描述梁截面的几何形状SECTYPE,7,BEAM,I,liang1,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.16,0.16,0.40,0.012,0.012,0.009描述梁截面的几何形状SECTYPE,8,BEAM,I,liang2,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.16,0.16,0.38,0.012,0.012,0.009描述梁截面的几何形状SECTYPE,9,BEAM,I,liang3,1将梁截面截面类型信息和ID编号联系起来SECOFFSET,CENT定义梁截面的截面偏移量SECDATA,0.16,0.16,0.36,0.012,0.012,0.009描述梁截面的几何形状MP,EX,2,2.06E11定义材料2的弹性模量2.06E11MP,PRXY,2,0.3定义材料2的主泊松比0.3MP,DENS,2,4.316E5定义材料2的密度4.316E5(折算密度)TB,BKIN,2,1,2,1激活材料2的一个数据表,材料2双线性随动强化TBTEMP,0给数据表定义一个温度TBDATA,,2.35E8,4.12E9给数据表定义数据,定义蠕变性能参数MP,EX,3,2.06E11定义材料3的弹性模量2.06E11MP,PRXY,3,0.3定义材料3的主泊松比0.3MP,DENS,3,4.424E5定义材料3的折算密度4.424E5TB,BKIN,3,1,2,1激活材料3的一个数据表,材料3双线性随动强化TBTEMP,0给数据表定义一个温度TBDATA,,2.35E8,4.12E9给数据表定义数据,定义蠕变性能参数MP,EX,4,2.06E11定义材料4的弹性模量2.06E11MP,PRXY,4,0.3定义材料4的主泊松比0.3MP,DENS,4,4.538E5定义材料4的折算密度4.538E5TB,BKIN,4,1,2,1激活材料4的一个数据表,材料4双线性随动强化TBTEMP,0给数据表定义一个温度TBDATA,,2.35E8,4.12E9给数据表定义数据,定义蠕变性能参数MP,EX,5,2.06E11定义材料5的弹性模量2.06E11MP,PRXY,5,0.3定义材料5的主泊松比0.3MP,DENS,5,3.646E5定义材料5的折算密度3.646E5TB,BKIN,5,1,2,1激活材料5的一个数据表,材料5双线性随动强化TBTEMP,0给数据表定义一个温度TBDATA,,2.35E8,4.12E9给数据表定义数据,定义蠕变性能参数*DO,I,1,4定义一个do循环i,1,跨数+1*DO,J,1,10定义一个do循环i,1,层数+1K,(I-1)*20+J,(I-1)*6,(J-1)*3.6,0关键点,用这个公式绘制,点编号,x,y,z*ENDDO结束循环*ENDDO结束循环ALLSEL全选*DO,I,1,4定义一个do循环i,1,跨数+1*DO,J,1,9定义一个do循环i,1,层数L,(I-1)*20+J,(I-1)*20+J+1柱线,按照公式绘制*ENDDO结束循环*ENDDO结束循环ALLSEL全选*DO,I,1,3定义一个do循环i,1,跨数*DO,J,2,10定义一个do循环i,1,层数+1L,(I-1)*20+J,I*20+J梁线,用这个公式绘制*ENDDO结束循环*ENDDO结束循环ALLSEL全部选择LSEL,S,LENGTH,,3.6选择层高的范围,划分柱尺寸LESIZE,ALL,,,4指定线划分数和间隔比例,4段ALLSEL全部选择LSEL,S,LENGTH,,6选择跨度的范围,划分梁尺寸LESIZE,ALL,,,8指定线划分数和间隔比例,8段K,800,-3,0,0梁单元定义定位点编号800,坐标(-3,0,0)*DO,I,1,1循环i,1到层数/3LSEL,S,LOC,X,-0.001,0.001从全部线中选择一组线,坐标是x,-0.001,-0.001LSEL,A,LOC,X,18-0.001,18+0.001从当前线中再选择一部线附加给当前选中组,坐标x,从跨数×跨度—0.001到跨数×跨度+0.001LSEL,R,LOC,Y,(I-1)*3.6*2,I*3.6*2从当前选中线中选取一组线,坐标y,从(i—1)×3.6×2到i×3.6×2LATT,1,,1,,800,,1赋予线属性,材料号,,类型,,截面类型号ALLSEL全选*ENDDOALLSEL全选*DO,I,2,2循环i,2到LSEL,S,L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