摘要
将计算机软件开发领域面向对象编程(OOP)技术运用到计算流体力学(CFD)的程序结构设计与编程当中。通过构造非结构网格以及针对不同流动特点的算例的具体实施方案,表现出:面向对象编程思想能够更加真实直观的刻画问题,便于准确的建立求解模型,降低了CFD程序设计的复杂性;程序模块之间的耦合度降低,提高了代码重用性,为程序的扩展性提供了有力支撑。
The object-oriented programming (OOP) ideas, as a programming paradigm of software development, is applied to the design and programming of computational fluid dynamics (CFD). From the realizations of numerical examples on different flowing characteristics and grid types, the results show: OOP ideas can descript matters more realistically and directly, based on OOP ideas, exact solution models are easily to create and the complexity of CFD programming is reduced; the coupling degree between modules gets lower and the code reusability is improved, which can provide a powerful support to the extensibility of programs.
出处
《数字技术与应用》
2010年第7期77-79,共3页
Digital Technology & Application