用户名: 密码: 验证码:
C#中铸件凝固过程温度场三维数值模拟软件开发研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
通过铸造过程的数模模拟,人们可以掌握主要铸造缺陷的形成机理,优化铸造工艺参数,确保铸件质量,缩短试制周期,降低生产成本。温度场数值模拟是缩孔缩松、、热裂、偏析等缺陷预测和流场、热应力场模拟的基础。
     在当前的数值模拟软件开发中,用得比较多的是Fortran和C++语言,在三维图形显示方面多使用OpenGL来实现。本文用微软最新推出的C#为开发语言,用DirectX来实现三维图形显示,编制了一套铸件凝固过程三维温度场数值模拟软件,实现了STL造型文件的处理、直角六面体网格剖分、温度场数值计算、冷却曲线和查看最后凝固区域等功能,且程序运行过程中均实现了三维直观显示。
     软件开发的平台和语言,直接决定着软件开发的难易,以及软件运行的效率。本文在微软公司最新推出的.NET程序开发平台下,对使用最新的C#语言进行数值模拟软件开发进行了研究。研究发现:在C#中进行数值模拟软件开发,不仅编程容易实现,程序运行效率很高且更有利于程序后续版本的控制。
     面向对象思想是当前程序开发的主流思想,在程序开发过程中,充分使用面向对象的编程思想,不但使编程工作变得更加快捷、方便,更可提高程序代码可读性、可扩充性和可维护性。本文充分使用面向对象的思想,对数值模拟计算中的大量数据进行索引、排序,大大提高了程序的开发和运行效率。
     造型是数值模拟的第一步,本文直接对Pro/E、UG等大型造型软件所造模型实体进行调用,经过处理后存入计算机内存,能够迅速用于网格剖分和数值计算。
     网格剖分是数值模拟顺利进行的前提条件。本文充分使用面向对象思想,采用逆向思维,对传统网格剖分方法进行改进,描述了一种快速生成均匀或非均匀直角六面体网格的网格剖分方法。这种方法不仅原理简单,编程实现方便,而且剖分速度快,适用于剖分任意形状的铸件。
     数值计算是数值模拟的核心。传统的直接差分法具有程序复杂、计算时间较长、数据量大等缺点,本文采用简化的直接差分法,减少了数据量,使程序开发更简单,计算效率更高。并使用等价比热法和温度回复法对凝固潜热进行处理,可以比较准确地模拟出二元合金在浇注后凝固和冷却过程的温度场变化。
     三维图形的直观显示是数值模拟软件应该具备的功能。在当前的计算机编程中,常用的图形显示技术有OpenGL和DirectX,但是在数值模拟方面,OpenGL使用较多,而DirectX则使用较少。本文使用DrectX实现了网格剖分、温度场计算、查看最后凝固的区域等功能,并列出了使用DirectX的关键步骤,用C#语言给出了实现数值模拟网格可视化的关键代码,并对主要参数进行了说明。探讨发现,使用DirectX不仅编程实现容易,且能实现半透明、旋转等功能,能满足数值模拟图形显示的要求。
     为了验证软件的实用性,本文对湿砂型中含硅6.57%的亚共晶铝硅合金起吊凸轮的凝固过程的温度场进行计算,模拟的铸件冷却趋势、冷却曲线、最后凝固区域、程序计算时间和界面显示等效果基本令人满意。
Numerical simulation of foundry process is very important,Which can help foundrymen to research the reason of casting defect,Use better foundry parameters,Make sure casting quality,Shorten the develop time of new product and Decrease production cost. Numerical simulation of Temperature field is the basis on predicting solidification shrinkage, gas porosity, lack of fill, laps, hot cracks, macrosegregation and micro-segregation and also the basis of flow field and hot power field simulation.
     Fortran and C++ are common used on current development of numerical simulation,and OpenGL is used more on 3D sketch manifestation. This paper developed a numerical simulation software on 3D temperature field of casting solidification process in C#,which Microsoft strongly released and DirectX is used to on 3D sketch manifestation .This software realized some important function,Such as input STL model files,Slice veridical hexahedron meshes,Numerical calculation of temperature field,View the cooling curve and the last solidified district,etc.3D direct manifestation is keeped when software is running.
     OOP is the main thought on current application develop,Which make our programming faster and more Convenience,The code can be easy to read and Maintenance.A great deal of data was ordered and indexed by fully used of OOP in this paper,Which greatly increased develop and circulate Efficiency.
     Making model is the first step in numerical simulation. The paper use STL model files directly,Which created in Pro/E,A big Software to make model.After models be solved,Useful information will keep in computer memory,Which can be used to slice mesh and calculate quikly.
     Mesh generation is the prior condition that the numerical simulation smoothly progress.The paper improved common mesh generation method by use oop thought and Contrary thinking,Descripted a new method,In which regular or irregular veridical hexahedron meshes can be quickly generated,Be applicable to generate casting with arbitrarily shape.The improved method of mesh generation is easy to understanding and programming.
     Numerical calculation is the core in numerical simulation.Traditional direct difference method have some weakness:Procedure complications,Cost long time to calculate,Much more data.The improved DFDM decrease data quantity,Exaltation procedure efficiency.Using the specific heat method and temperature restoring method, temperature field of two-phase alloy can be simulated more precisely.
     The 3D sketch manifestation is the basic function of numerical simulation software.On current computer programming,OpenGL and directX are common used on graphics field,But directX is less used than OpenGL on numerical simulation.This paper carried on a study on the important steps of using directX, The important code is listed in C# and main parameters are introduced.The study show that using directX to display mesh,Which is easy to programming, Can match the request of numerical simulation and can creat translucent and revolve effects.
     A temperature field calculation of AL-6.57SI two-phase alloy in wet sand mold was conducted to identify function of the software.The numerical simulation result is basically match the actual circumstance on the trend of casting cooling,the cooling curve,the last solidified district,Time of procedure calculation and Interface manifestation,etc.
引文
[1]缪良,入世后我国铸造工业前景展望与建议,铸造技术,2003,1,5-9
    [2]颜爱民,中国铸造行业现状及发展对策,铸造技术,2003(2),77-79
    [3]林国荣,铸件形成过程计算机数值模拟的发展及应用,现代铸铁,2001(2),8-13
    [4]李晨曦等,铸造充型过程流场计算机模拟技术述评,铸造,1997(2),47-52
    [5]柳百成,铸件凝固过程的宏观及微观模拟仿真研究进展,中国工程科学,2000(2),29-37
    [6]杨迎东,高锰钢铸件不同铸造工艺条件下温度场的数值模拟,西安理工大学硕士学位论文,2007
    [7]张毅,铸件凝固数值模拟及铸造工艺CAD现代进展,铸造,1987,6,2-7
    [8]蒋玉明,杨屹,梅筱琴,铸件凝固数值模拟和铸造工艺CAD的发展综述(一),成都科技大学学报,1994,1,32-40
    [9]Jindong Zhu,Itsuo Ohnaka,Treatment of Free Surface Boundary Conditions for the Simulation of Mold Filling,Proceedings of Modeling of Casting and Solidification Process,1995,126
    [10]Meton Flemings,Advanced Casting Simulation of Solidification Process of ShapedCasting,J.Mater.Science Technology,1995,Vol.11,313-322
    [11]Len Estrin,A Deeper Look at Casting Solidification Software,Modern Casting,1994,84(7),20-24
    [12]T.C.Midea,D.Schmidt,1999 Simulation Software Survey,Modern Casting,1999,89(5),47-51
    [13]Pikin J.E.J,Methoding in a 3D CAD Environment,Foundry Management &Technology,1992.11,26-28
    [14]中国机械工程学会铸造分会代表团,21世纪铸造工业技术展望—第九届国际铸造博览会概览,铸造,1999,1-3
    [15]Kavicka.Imporving the Benefit to Foundries through the MAGMASOFT Release 3.3.5,Foundrymen,1997,206-207
    [16]T.Tsukamoto,K.Anzai,E.Niyama.Mold Filling Analysis Using a New VOF-Based FreeSurface Tracing Algorithm,Proceedings of Modeling of Casting andSolidification Process,1995
    [17]Kreziak G.Low Pressure Permanent Mould Process Simulation of a thin Wall Aluminum Casting.Materials Science and Engineering,Dec.20.1993,255-259
    [18]Stetina.Simulor Software Achieves 10 Years Maturity,Foundry Trade J,July 1994,325-326
    [19]Estrin L,A Deeper Look at Casting Solidification Software,Modern Casting,July 1994,20-24
    [20]Cope M A.Metal Flow Design Concept,May 1995
    [21]AFS Process Design & Modeling Committee,Source of Casting Modeling Software.Modern Casting,October 1997,27-30
    [22]周蓉蓉,近观C#,计算机世界,2002,B14
    [23]王春森,系统设计师(高级程序员)教程,北京,清华大学出版社,2001,227
    [24]彭佳红,结构化技术与面向对象技术,吉首大学学报(自然科学版),1997,18(4),92-94
    [25]杨光宇,面相对象方法论,自然辩证法研究(京),1997,7,27-32
    [26]朱海滨编著,面向对象技术——原理与设计,国防科技大学出版社,1992,3-8
    [27]冯玉琳,黄涛,倪彬编著,对象技术导论,北京,科学出版社,1998,27(30),61
    [28]Bruce Eckel,C++编程思想(刘宗田等译),北京,机械工业出版社,2000,255-274
    [29]劳廷,面向对象 你准备好了吗,程序员,2002,10,40-41
    [30]印旻,Java语言与面向对象程序设计,北京,清华大学出版社,2000,1
    [31]Thomas Zimmermann,Object-oriented finite element programming,1.Governing principles,Computer Methods in Applied Mechanics and Engineering,1992,98,291-303
    [32]Bruce W.R.Forde,OBJECT-ORIENTED FINITE ELEMENT ANALYSIS,Computers &Structures,1990,34(3),355-374
    [33]S.P Scholz,ELEMENTS OF AN OBJECT-ORIENTED FEM++ PROGRAM IN C++,Computers & Structures,1992,43(3),517-529
    [34]Mackie RI,Object oriented programming of the finite element method,Int J Numer Meth Engng,1992,35(2),425-436
    [35]PH.Menetrey and TH.Zimmermann,Object-Oriented non-linear finite element analysis,application to J2 plasticity,Computers & Structures,1993,49(5),767-777
    [36]Yu G,Adeli H,Object-oriented finite element analysis using EER model.J Struct Engng,1993,119(9),2763-2781
    [37]Verner DA,Heileman GL,Budge KG,Robinson AC,Development of generic field classes for finite element and finite difference problems.Scient Program,1993,2(4),227-234
    [38]Zeglinski GW,Han RPS,Altchison P,Object oriented matrix classes for use in a finite element code using C++,Int J Numer Meth Engng 1994,37(22),3921-3937
    [39]Elson J.Silva,Renato C.Mesquita,Data Management in Finite Element Analysis Programs Using Object-Oriented Techniques,IEEE TRANSACTIONS ON MAGNETICS,1996,32(3),1445-1448
    [40]Luis Fernando Nacif Rocha,Renato Cardoso Mesquita,An Object-Oriented Data Structure for a3-D Electromagnetic Field Computation Program Preprocessor.IEEE TRANSACTIONS ONMAGNETICS.1996,32(3),1449-1452
    [41]Mihai Popescu,Irina Munteanu,Cristian-George Constantin and Daniel Ioan,An Object Oriented Data Structure for Field Analysis,IEEE TRANSACTIONS ON MAGNETICS,1998,34(5),3403-3406
    [42]Johan Driesen,Johan Fransen,Herbert De Gersem,Ronnie Belmans,Kay Hameyer,Object Oriented Storage of Material Data for Coupled Problems,IEEE TRANSACTIONS ON MAGNETICS,1998,34(5),3415-3418
    [43]Lichao Yu,Ashok V.Kumar,An object-oriented modular Framework for implementing the finite element method,Computers & Structures,2001,79,919-928
    [44]孔祥安,瞿已,面向对象有限元程序的数据设计,西南交通大学学报,1996,31(4),355-360
    [45]李会平,曹中清,周本宽,弹塑性分析的面向对象有限元方法,西南交通大学学报,1997,32(4),401-406
    [46]习俊通,梅雪松,吴序堂,面向对象的接触问题的有限元分析,机械强度,1999, 21(1),39-41
    [47]平扬,刘崇权,白世伟,面向对象有限元分析在深基坑工程中的应用,电力勘测,1999,2,8-12
    [48]周益军,吴巨龙,机械工程中面向对象的有限元程序设计方法探讨,计算机辅助工程,1999,3,59-62
    [49]张向,许晶月,沈启等,面向对象的有限元程序设计,计算力学学报,1999,16(2),216-226
    [50]袁政强,白绍良,李正良,面向对象的有限元程序设计,重庆建筑大学学报,2000,22(增刊),1-8
    [51]柳百成,荆涛等编著,铸造工程的模拟仿真与质量控制,北京,机械工业出版社,2001
    [52]Kuan-O(Oscar)Yu,Modeling for Casting and Solidification Processing,Marcel Dekker Inc,New
    [53]C Hirsch.Numerical Computation of Internal and External Flows,Volume 1.Chichester,UK,John Wiley & Sons,1988
    [54]邱宗文,铸件凝固过程温度场三维数值模拟软件开发,东南大学硕士学位论文,2004
    [55]C#是什么?,计算机世界,2001,C15
    [56]陈默,.NET平台开发的王者—C#,电脑报,2007,F15,1-3
    [57]李建忠,C#语言系列讲座(3)—Micorsoft.NET平台,计算机世界,2002,C22
    [58]赵彦珍,马西奎,张卫华,基于STL格式的三维电磁场有限元自动剖分方法,High Voltage Apparatus,2002,38(6),12-19
    [59]杨迎东,高锰钢铸件不同铸造工艺条件下温度场的数值模拟,西安理工大学硕士学位论文,2007
    [60]贾宝仟,柳百成,铸造数值模拟中直角六面体网格全自动剖分技术,热加工工艺,1996(6)
    [61]邱宗文,孙国雄,基于STL的切片法有限差分网格剖分的研究,特种铸造及有色合金,2003(6)
    [62]陈立亮,刘瑞祥,林汉同,基于STL网格剖分技术的研究.特种铸造及有色合金, 1999(1)
    [63]周超,复杂铸件凝固过程面向对象的有限元数值模拟,福州大学硕士学位论文,2002
    [64]曹辉,铸件凝固进程的数值模拟方法研究,大连理工大学硕士学位论文,2003
    [65]R.E.Marrone,J.O.Wilkes,R.D.Pehike,Numerical Simulation of Solidification,Part Ⅰ:Low Carbon Steel Casting-T Shape,Cast Metals Research Journal,1970(12),184-188
    [66]R.Nomura,Y.Otsuka,M.Kurosawa,T.Banno.Industrial Applications of Computer Simulation System to Sand Mold Castings,48th International Foundry Congress,Varna,Bulgaria,1981
    [67]Y.Nagasaka,S.Kiguchi,M.Nachi,Three-Dimensional Computer Simulation of Casting Processes,AFS Transactions,1989,97,553-564
    [68]O.C.Zienkiewicz,The Finite Element Method,McGrow-Hill,1977,247
    [69]大中逸雄,长坂悦敬,福迫达一,吉悶二郎,内节点法铸物三次元凝固解析,铸物,1981,53(7),376-382
    [70]马鑫,基于ObjectARX技术的铸件凝固进程数值模拟和凝固条件对凝固组织的影响,大连理工大学硕士学位论文,2004
    [71]J Miettien,modeling of solidification processes,Metall Trans 23A,1155-1170,1992
    [72]J Miettien,S Louhenkilpi,Caculation of thermophysical properties of carbon and low alloy steels for modeling of solidification processes,Met Trans1994(25B),909-916
    [73]YA Chang,A thermodynamic approach to obtain materials properties for engineering applications,Proceedings of a Workshop on the Thermophysical Properties of Molten Materials,NASA Lewis Research Center,Cleveland,Oct.20-23,1992,177-201
    [74]袁浩扬,铸件形成过程传热与流动耦合数值模拟的研究,武汉,华中理工大学,1995
    [75]杨全,张真,金属凝固与铸造过程数值模拟,浙江大学出版社,1996,292-311
    [76]王君卿,铸造手册,第5卷,机械工业出版社,2003
    [77]周建兴,刘瑞祥,陈立亮等,凝固过程数值模拟中的潜热处理方法,铸造,2001,7,404-407
    [78]杨全,张真,金属凝固与铸造过程数值模拟,杭州,浙江大学出版社,1996,38-48
    [79]陈栋梁,于勇,一种处理凝固导热方程的焓式源法,东北重型机械学院学报,1996,9,223-226
    [80]Y.-T.Im,Y.-H.Chen,J.K.Lee,A Comparative Study of Finite Element Solutions of Solidification by Temperature Recovery Method.AFS Transactions,1991,99,299-304
    [81]陈海清,李华基,曹阳,铸件凝固过程数值模拟,重庆,重庆大学出版社,1991,76-78,91-94,210-211
    [82]吕文达,精通C#程序设计,北京,清华大学出版社,2005,232-497
    [83]奚小萍,侯华,程军,基于OpenGL的STL实体模型的装配,电脑开发与应用,2005,18(1),13
    [84]杨福迈.利用OpenGL实现三维绘图,电脑知识与技术,2005,35
    [85]王明福,齐治文,基于DirectX的游戏动画技术研究,计算机工程与设计,2005,26(4),940
    [86]华才健,蔡勇,申玉斌,基于DirectX的交互式三维图形开发工具,先进制造技术,2005,24(1),26
    [87]杨建鸣,王鹏飞,边明杰,基于Managed DirectX的三维建模器的开发与研究,现代设计与先进制造技术,2007,36(11),45

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700