首页> 外文期刊>ACM transactions on mathematical software >A Grid-Free Abstraction of the Navier-Stokes Equations in Fortran 95/2003
【24h】

A Grid-Free Abstraction of the Navier-Stokes Equations in Fortran 95/2003

机译:Fortran 95/2003中Navier-Stokes方程的无网格抽象

获取原文
获取原文并翻译 | 示例
       

摘要

Computational complexity theory inspires a grid-free abstraction of the Navier-Stokes equations in Fortran 95/2003. A novel complexity analysis estimates that structured programming time grows at least quadratically with the number of program lines. Further analysis demonstrates how an object-oriented strategy focused on mathematical objects renders the quadratic estimate scale-invariant, so the time required for the limiting factor in program development (debugging) no longer grows as the code grows. Compared to the coordinate-free C++ programming of Grant et al. [2000], grid-free Fortran programming eliminates a layer of procedure calls, eliminates a related need for the C++ template construct, and offers a shorter migration path for Fortran programmers. The grid-free strategy is demonstrated by constructing a physical-space driver for a Fourier-space Navier-Stokes solver. Separating the expression of the continuous mathematical model from the discrete numerics clarifies issues that are otherwise easily conflated. A run-time profile suggests that grid-free design substantially reduces the fraction of the procedures that significantly impact runtime, freeing more code to be structured in ways that reduce development time. Applying Amdahl's law to the total solution time (development time plus run time) leads to a strategy that negligibly impacts development time but achieves 58% of the maximum possible speedup.
机译:计算复杂性理论激发了Fortran 95/2003中Navier-Stokes方程的无网格抽象。一项新颖的复杂性分析估计,结构化编程时间至少会随着编程行数的增加而平方增长。进一步的分析表明,专注于数学对象的面向对象的策略如何使二次估计的标度不变,因此程序开发(调试)中限制因素所需的时间不再随代码的增长而增长。与Grant等人的无坐标C ++编程相比。 [2000],无网格的Fortran编程消除了过程调用层,消除了对C ++模板构造的相关需求,并为Fortran程序员提供了更短的迁移路径。通过为傅立叶空间Navier-Stokes求解器构造物理空间驱动程序来演示无网格策略。将连续数学模型的表达式与离散数字分开,可以明确解决否则容易混淆的问题。运行时配置文件表明,无网格设计可显着减少对运行时间有重大影响的过程的比例,从而以减少开发时间的方式释放更多的代码以进行结构化。将阿姆达尔定律应用于总解决方案时间(开发时间加运行时间),所得出的策略对开发时间的影响可以忽略不计,但可以达到最大可能加速的58%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号