Premium
Advanced programming methods and data structures for computational modelling using edge‐based finite volume methods
Author(s) -
Masters I.,
Rees I.,
Lewis R.W.
Publication year - 2004
Publication title -
international journal for numerical and analytical methods in geomechanics
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 1.419
H-Index - 91
eISSN - 1096-9853
pISSN - 0363-9061
DOI - 10.1002/nag.398
Subject(s) - code (set theory) , finite volume method , computer science , representation (politics) , enhanced data rates for gsm evolution , volume (thermodynamics) , mathematical optimization , flow (mathematics) , data structure , core (optical fiber) , computational science , algorithm , mathematics , programming language , geometry , artificial intelligence , physics , set (abstract data type) , quantum mechanics , politics , mechanics , political science , law , telecommunications
The generation of a numerical model must consider the separate issues of the governing equations, the numerical representation of those equations, the data structure that describes the model, the choice of programming language and finally the implementation and code management issues. These issues are considered as a whole in this paper and as a consequence, 10 golden rules for numerical modelling are proposed. By way of application, a saturated–unsaturated flow problem is modelled using the Richards equation and an innovative edge‐based finite volume method. The implementation uses a novel data structure. This is shown to have over 91% code re‐use and hence code written in this way is highly flexible and applicable to many different problems. By way of example, a compacted core earth filled dam problem has been solved. Finally, we conclude that this advanced programming method can significantly reduce code development time. Copyright © 2004 John Wiley & Sons, Ltd.