在Intel Visual Fortran编制的CFD计算程序基础上,采用OpenGL绘图函数编制了流场显示程序。实现了在64位运行环境下,使用Fortran版本的OpenGL绘图函数库绘制流场参数的静态及动态结果的可视化输出。根据RGB颜色函数的变化规律建立了流...在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.展开更多
开发地球电子辐射带的数据同化模型,对于理解辐射带电子的动态演化过程和辐射带空间天气预报具有重要意义.结合范阿伦卫星的辐射带电子观测数据和外辐射带三维扩散模型,采用卡尔曼滤波算法,本文开发了基于Fortran语言的外辐射带电子三...开发地球电子辐射带的数据同化模型,对于理解辐射带电子的动态演化过程和辐射带空间天气预报具有重要意义.结合范阿伦卫星的辐射带电子观测数据和外辐射带三维扩散模型,采用卡尔曼滤波算法,本文开发了基于Fortran语言的外辐射带电子三维数据同化模型(Three-dimensional Data Assimilative Model of Outer Radiation belt Electrons,简称TDAMORE),实现对L^(*)=3~7、能量范围为0.1~5 MeV、投掷角范围为5°~90°的外辐射带电子时空变化过程的三维重构.通过对2018年8月期间外辐射带电子通量演化过程的重构,证实TDAMORE模型可以较好地重现不同能量和不同投掷角电子通量在磁暴前后的演化特征.通过分析电子通量的观测和同化结果之间的相关系数、平均误差、平均绝对误差和均方误差,发现对于能量低于4 MeV的电子,观测与同化结果之间的相关系数基本大于0.8且误差相对较低.而对于更高能量的电子,观测与同化结果之间的误差相对较高,这可能是同化模型忽略了电磁离子回旋波对电子的散射损失导致的.展开更多
文摘在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.
文摘开发地球电子辐射带的数据同化模型,对于理解辐射带电子的动态演化过程和辐射带空间天气预报具有重要意义.结合范阿伦卫星的辐射带电子观测数据和外辐射带三维扩散模型,采用卡尔曼滤波算法,本文开发了基于Fortran语言的外辐射带电子三维数据同化模型(Three-dimensional Data Assimilative Model of Outer Radiation belt Electrons,简称TDAMORE),实现对L^(*)=3~7、能量范围为0.1~5 MeV、投掷角范围为5°~90°的外辐射带电子时空变化过程的三维重构.通过对2018年8月期间外辐射带电子通量演化过程的重构,证实TDAMORE模型可以较好地重现不同能量和不同投掷角电子通量在磁暴前后的演化特征.通过分析电子通量的观测和同化结果之间的相关系数、平均误差、平均绝对误差和均方误差,发现对于能量低于4 MeV的电子,观测与同化结果之间的相关系数基本大于0.8且误差相对较低.而对于更高能量的电子,观测与同化结果之间的误差相对较高,这可能是同化模型忽略了电磁离子回旋波对电子的散射损失导致的.