节点文献
水流数值模拟中的混合编程技术
Mixed-language Programming of Flow Numerical Simulation
【摘要】 FORTRAN语言计算效率高但图形功能弱,Visual Basic(VB)计算效率低而图形功能强。为了发挥两者的优势,实现FORTRAN资源的再利用,以VB6.0和FORTRAN95为开发平台,通过动态链接库(DLL),探讨和演示了VB和FORTRAN混合编程技术在水流数值计算中的应用,实现了VB可视化界面与FORTRAN强大的数值计算能力的相结合。并探讨VB调用Surfer 8.0进行嵌入式编程,对水流数值模拟的结果进行了图形化处理和动态的显示。
【Abstract】 Fortran language is characterized by high calculating efficiency but weak graphic function,while Visual Basic 6.0(VB) is characterized by low calculating efficiency but powerful graphic function.In order to utilize their advantages adequately,and reuse resources of FORTRAN calculation program,the application of mixed-language programs in flow numerical simulation is discussed and demonstrated: By transferring Fortran′s dynamic-link library in Visual basic,integration between visual interface of VB and powerful calculating efficiency of FORTRAN language is realized.The procedure of developing VB with the embedded compiler of Surfer8.0 is also discussed,and the result of flow numerical simulation is displayed graphically and dynamically.
【Key words】 mixed-language program; flow numerical simulation; FORTRAN95; VB6.0; Surfer 8.0;
- 【文献出处】 水运工程 ,Port & Waterway Engineering , 编辑部邮箱 ,2007年02期
- 【分类号】TP311.11
- 【被引频次】5
- 【下载频次】207