·
k,2,22,0,0
k,3,10,12,0 k,4,0,12,0 /pnum,kp,1 /pnum,line,1 /pnum,area,1 /Triad,ltop kplot a,1,2,3,4
save
rectng,4,22,4,8 aplot aovlap,all adele,3 aplot save
!划分网格 esize,1 amesh,5 mat,2 aplot amesh,4 eplot
/pnum,elem /number,1 save
!进入加载求解 /SOLU
antype,trans esel,s,mat,,2 nsle,s /replot
ic,all,temp,2875 esel,inve nsle,s /replot
ic,all,temp,80 allsel save lplot
sfl,1,CONV,0.014,,80 sfl,3,CONV,0.014,,80 sfl,4,CONV,0.014,,80
Word资料
!设定为瞬态分析 !设定铸钢的初始温度
!设定砂模外边界对流
!设定砂模的初始温度 ·
/psf,conv,2
time,3 kbc,1 autots,on deltim,0.01,0.001,0.25 timint,on tintp,,,,1 outres,all,all solve
!进入后处理 /post26
/pnum,node,1 /number,0 eplot
nsol,2,204,temp,center plvar,2 save finish
菜单操作:
!设定瞬态分析时间 !设定为阶越的载荷 !打开自动时间步长 !设定时间步长 !打开时间积分
!将THETA设定为1 !输入每个子步的结果
!设定铸钢中心点温度随时间的变量 !绘制温度~时间曲线
1.Utility Menu>File>Change Title, 输入Casting Solidification;
2.定义单元类型:Main Menu>Preprocessor>Element Type>Add/Edit/Delete, Add, Quad
4node 55;
3.定义砂模热性能:Main Menu>Preprocessor>Material Props>Isotropic, 默认材料编号1,
在Density(DENS)框中输入0.054, 在Thermal conductivity (KXX)框中输入0.025, 在Specific heat(C)框中输入0.28;
4.定义铸钢热性能温度表:Main Menu>Preprocessor>Material Props>-Temp
Dependent->Temp Table, 输入T1=0,T2=2643, T3=2750, T4=2875;
5.定义铸钢热性能:Main Menu>Preprocessor>Material Props>-Temp Dependent ->Prop
Table, 选择Th Conductivity,选择KXX, 输入材料编号2,输入C1=1.44, C2=1.54, C3=1.22, C4=1.22,选择Apply, 选择Enthalpy,输入C1=0, C2=128.1, C3=163.8, C4=174.2;
6.创建关键点:Main Menu>Preprocessor>-Modeling->Create>Keypoints>In Active CS,输入
关键点编号1,输入坐标0,0,0, 输入关键点编号2, 输入坐标22,0,0, 输入关键点编号3, 输入坐标10,12,0, 输入关键点编号4, 输入坐标0,12,0;
Word资料
·
7.创
建几何模型:Main
Menu>Preprocessor>-Modeling->Create>-Areas->Arbitrary>Through KPs,顺序选取关键点1,2,3,4;
8.Main Menu>Preprocessor>-Modeling->Create>-Areas->Rectangle>By Dimension,输入
X1=4,X2=22,Y1=4,Y2=8;
9.进
行布尔操作:Main
Menu>Preprocessor>-Modeling->Operate>-Booleans->Overlap>Area,Pick all;
10.删除多余面:Main Menu>Preprocessor>-Modeling->Delete>Area and Below,3 11.保存数据库:在Ansys Toolbar中选取SAVE_DB;
12.定义单元大小:Main Menu>Preprocessor>-Meshing->Size Cntrls>-Global->Size, 在
Element edge length框中输入1;
13.对砂模划分网格:Main Menu>Preprocessor>-Meshing->Mesh>-Areas->Free,选择砂模; 14.对铸钢划分网格:Main Menu>Preprocessor>-Attributes->Define>Default Attribs, 在
Material number菜单中选择2;
15.Main Menu>Preprocessor>-Meshing->Mesh>-Areas->Free,选择铸钢;
16.定义分析类型:Main Menu>Solution>-Analysis Type->New Analysis, 选择Transient; 17.选择铸钢上的节点:Utility Menu>Select>Entities, 选择element,mat,输入2,选择Apply,选
择node, attached to element,选择OK;
18.定义铸钢的初始温度:Main Menu>Solution>-Loads->Apply>Initial Condit’n>Define, 选
择Pick all,选择temp, 输入2875, OK;
19.选择砂模上的节点:Utility Menu>Select>Entities,Nodes, inverse
20.定义砂模的初始温度:Main Menu>Solution>-Loads->Apply>Initial Condit’n>Define, 选
择Pick all, 选择temp, 输入80, OK;
21.Utility Menu>Select>Everything; 22.Utility Menu>Plot>Lines;
Word资料
·
23.定
义对流边界条件: Main
Menu>Solution>-Loads->Apply>-Thermal->Converction>On Lines,选择砂模的三个边界1,3,4, 在file coefficent框中输入80, 在Bulk temperature框中输入, 80;
24.设定瞬态分析时间选项:
Main Menu>Solution>Load Step Opts>Time/Frequenc>Time-Time Step, Time at end of load step Time Step size
3
0.01
Stepped on 0.001 0.25
Stepped or ramped b.c. Automatic time stepping Minimun time Step size Maximum time step size
25.设置输出:Main Menu>Solution>Load Step Opts>Output Ctrls>DB/Results File, 在File
write frequency框中选择Every substep;
26.求解:Main Menu>Solution>-Solve->Current LS; 27.进入后处理: Main Menu>Timehist Postproc;
28.定义铸钢中心节点的温度变量: Main Menu>Timehist Postproc>Define Variables, Add,
Nodal DOF result,2,204;
29.绘制节点温度随时间变化曲线:Main Menu>Timehist Postproc>Graph Variable,2。
Word资料
·
Word资料