摘要
对Fortran语言编写的船用柴油机工作过程数值模拟计算程序进行可视化编程,讨论了VB语言和Fortran语言混合编程的方法。利用VB的shell函数进行混合编程,实现计算程序的可视化输入输出,同时阐述了编程中遇到的问题和解决方法。根据Fortran计算程序各参数的意义,对VB界面进行合理布局,使操作简单方便。采用可视化程序对某型船用柴油机进行工作过程的数值模拟计算,并对部分计算结果进行实验验证。
Numerical programming of working process for diesel engine in FORTRAN language was compiled visually,and the method of mixing programming of the VB and Fortran language was discussed.The shell function of VB was used to realize the input and output of visualized calculation program with mixture programming,the problems and solutions were stated.According to the parameters significance of calculation procedure by FORTRAN,the VB interface was layout reasonably,so that the operation can be simple and convenient.The visualized program was adopted to calculate the working process of one type diesel engine,the calculated results were verified by some experiments.
出处
《船舶》
2011年第4期70-73,共4页
Ship & Boat