%0 Journal Article
%T OpenGL在CFD流场显示Visual Fortran编程中的应用
Application of OpenGL in Visual Fortran Programming for CFD Flow Field Display
%A 姜卫星
%A 叶羽
%A 陈玉强
%A 陈昌文
%J International Journal of Fluid Dynamics
%P 92-104
%@ 2328-0549
%D 2025
%I Hans Publishing
%R 10.12677/ijfd.2025.131009
%X 在Intel Visual Fortran编制的CFD计算程序基础上,采用OpenGL绘图函数编制了流场显示程序。实现了在64位运行环境下,使用Fortran版本的OpenGL绘图函数库绘制流场参数的静态及动态结果的可视化输出。根据RGB颜色函数的变化规律建立了流场参数与可视化颜色值之间的线性或函数对应关系。基于计算网格、边界条件,流场参数信息,采用OpenGL绘图及颜色函数绘制出CFD流场的参数云图、等值线图、速度矢量图及其组合图。采用Fortran编程语言编制完整的CFD程序,包括CFD前处理(网格及边界条件的显示)、计算过程流场参数动态显示、以及计算结果的后处理程序。无需使用外部的显示软件,增加了流场显示的可编程属性,避免了多语言联合编程带来的接口数据转换的时间延迟。这种方法可以扩展CFD计算流场显示的灵活性,并提高CFD程序的计算速度。
Based on a self-compiled CFD program by Intel Visual Fortran (IVF), a flow field display program was compiled using OpenGL drawing functions. The visualization output of static and dynamic results of flow field parameters was realized by using the Fortran version of OpenGL library in 64-bit environment. The linear or functional relationship between flow field parameters and display color values was established according to the RGB color functions. Based on the data of domain grids, boundary conditions, and flow field parameters, the parameter cloud map, contour map, velocity vector map and their combination for the flow field were drawn using OpenGL drawing and color functions. A complete CFD program was built by using IVF language, including CFD pre-processing (display of grids and boundary conditions), dynamic display during calculation process, and post-processing of calculated results. By this method, there is no need to use external display software, hence to increase the flexibility of flow field display programming, and decrease the time delay by the interface data conversion required by multi-language joint programming. This method not only improves the flexibility of CFD flow field display, it also increases the calculation speed of CFD program.
%K Visual Fortran,
%K CFD可视化,
%K 流场,
%K 计算流体力学,
%K OpenGL,
%K 计算机图形学
Visual Fortran
%K CFD Visualization
%K Flow Field
%K Computational Fluid Dynamics
%K OpenGL
%K Computer Graphics
%U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=110490