基于CAD二次开发的流场可视化研究
Visualization of flow field based on CAD secondary development
黄菊 1童思陈 2孙开 3蒋聘凤 1张倩倩 1王祥1
作者信息
- 1. 重庆交通大学河海学院,重庆 400074
- 2. 重庆交通大学河海学院,重庆 400074;重庆交通大学,国家内河航道整治工程技术中心,重庆 400074
- 3. 贵州乌江水电开发有限公司乌江渡发电厂,贵州 遵义 563104
- 折叠
摘要
水动力流场计算是水利工程及航道整治工程研究中涉及的重要内容.为实现流场可视化自主研发和便于编辑,提出一种基于CAD二次开发的流场生成及可视化方法.采用Fortran和C#的混合编程技术,基于动态链接库,通过C#与Fortran参数的传递,对AutoCAD进行二次开发.该方法可以在AutoCAD平台上快速绘制流场矢量图和流场云图,也可用不同颜色表示数值的大小,从而实现流场的可视化编辑.以三峡库区长寿河段为例,对该方法进行演示和应用,结果表明其具有较好的可视化效果和实用价值.
Abstract
Hydrodynamic flow field calculation is an important content in the research of hydraulic engineering and waterway regulation engineering.To realize independent research and development of flow field visualization and facilitate editing,a method of flow field generation and visualization based on CAD secondary development is proposed.Using the hybrid programming technology of Fortran and C#,based on dynamic link library,the secondary development of AutoCAD is carried out through the transfer of C#and Fortran parameters.This method can draw the flow field vector map and flow field cloud map quickly on AutoCAD platform,and can also represent the size of the value with different colors,so as to realize the visual editing of the flow field.The method is demonstrated and applied in Changshou River section of the Three Gorges Reservoir area,and the results show that it has a better visualization effect and practical value.
关键词
流场可视化/Fortran语言/C#语言/AutoCAD二次开发Key words
flow field visualization/Fortran language/C#language/AutoCAD secondary development引用本文复制引用
出版年
2024