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. © 1998 American Institute of Physics.
Skip Nav Destination
Article navigation
November 1998
Research Article|
November 01 1998
A tensorial approach to computational continuum mechanics using object-oriented techniques
H. G. Weller;
H. G. Weller
Department of Mechanical Engineering, Imperial College, London SW7 2BX, United Kingdom
Search for other works by this author on:
G. Tabor;
G. Tabor
Department of Mechanical Engineering, Imperial College, London SW7 2BX, United Kingdom
Search for other works by this author on:
H. Jasak;
H. Jasak
Computational Dynamics Limited, London W10 6RA, United Kingdom
Search for other works by this author on:
C. Fureby
C. Fureby
Department of Weapons and Protection, National Defense Research Establishment (FOA), S-17290 Stockholm, Sweden
Search for other works by this author on:
Comput. Phys. 12, 620–631 (1998)
Article history
Received:
June 01 1998
Accepted:
August 13 1998
Citation
H. G. Weller, G. Tabor, H. Jasak, C. Fureby; A tensorial approach to computational continuum mechanics using object-oriented techniques. Comput. Phys. 1 November 1998; 12 (6): 620–631. https://doi.org/10.1063/1.168744
Download citation file:
Sign in
Don't already have an account? Register
Sign In
You could not be signed in. Please check your credentials and make sure you have an active account and try again.
Could not validate captcha. Please try again.
Sign in via your Institution
Sign in via your InstitutionPay-Per-View Access
$40.00
Citing articles via
Related Content
Tensorial volume of turbulence revisited
Physics of Fluids A: Fluid Dynamics (September 1990)
Tensorial Description of Neutrinos
J. Math. Phys. (December 2004)
Simulating structured fluids with tensorial viscoelasticity
J. Chem. Phys. (February 2023)
Invariant expansion. IV. The exponentials of tensorial expressions
J. Chem. Phys. (October 1988)
Tensorial time scale in turbulent gradient transport of Reynolds stresses
Physics of Fluids (June 2005)