A tensorial approach to computational continuum mechanics using object-oriented techniques

A tensorial approach to computational continuum mechanics using object-oriented techniques
复制标题

DOI:
10.1063/1.168744
复制
发表时间:
1998-11-01
期刊:
COMPUTERS IN PHYSICS
影响因子:
--
通讯作者:
Fureby, C
Fureby, C
中科院分区:
其他
文献类型:
--
作者:
Weller, HG;Tabor, G;Fureby, C

文献摘要

被引文献

相似文献

本文概述了连续介质力学现场操作与操纵(FOAM)C++类库的原理。我们的目的是尽可能容易地开发可靠和有效的计算连续力学代码:这是通过使代码的顶级语法尽可能接近传统的数学符号,张量和偏微分方程来实现的。面向对象技术使得能够创建与连续介质力学非常相似的数据类型,并且C++中可能的运算符重载允许将正常的数学符号用于基本运算。作为一个例子,在FOAM计算流体动力学代码中的各种类型的湍流模型的实施进行了讨论。并对一个标准的试验情况,即绕方柱的流动进行了计算。为了证明FOAM库的灵活性,代码解决结构和磁流体力学也给出了适当的测试用例结果。(C)1998年美国物理学会。[S0894 - 1866(98)01906 - 3]。
In this article the principles of the field operation and manipulation (FOAM) C++ class library for continuum mechanics are outlined. Our intention is to make it as easy as possible to develop reliable and efficient computational continuum-mechanics codes: this is achieved by making the top-level syntax of the code as close as possible to conventional mathematical notation for, tensors and partial differential equations. Object-orientation techniques enable the creation of data types that closely mimic those of continuum mechanics, and the operator overloading possible in C++ allows normal mathematical symbols to be used for the basic operations. As an example, the implementation of various types of turbulence modeling in a FOAM computational-fluid-dynamics code is discussed. and calculations performed on a standard test case, that of flow around a square prism, are presented. To demonstrate the flexibility of the FOAM library, codes for solving structures and magnetohydrodynamics are also presented with appropriate test case results given. (C) 1998 American Institute of Physics. [S0894-1866(98)01906-3].