𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Finite element programming and C

✍ Scribed by Z. Sanal


Publisher
Elsevier Science
Year
1994
Tongue
English
Weight
908 KB
Volume
51
Category
Article
ISSN
0045-7949

No coin nor oath required. For personal study only.

✦ Synopsis


Al~traet--ln finite element programming, data have to be dealt with which are of different types but belong together in a logical sense. It would be very effective, with respect to program readability and maintainability, to store these data as a single unit. Efficient software design requires that all parts of information, which belong together logically, are stored as a single data unit, This can be accomplished utilizing structured data types.

Dynamic memory allocation allows the definition of dynamic variables which can be created and destroyed during run-time. Dynamic memory management is handled in C by pointers. In other conventional languages, e.g. Fortran 77, the programmer has the responsibility to select adequate array sizes for the largest problem to be solved. This often leads in engineering practice to array oversizing and to memory wasting. By allocating memory dynamically during program execution according to actual problem size, wasting can be avoided.

The combination of structured data and pointers along with the dynamic memory allocation capabilities of C allows the creation of linked lists. Utilizing these concepts, an effective and easy-to-read C program has been written for finite element analysis. The C program presented demonstrates the use of these techniques for interactive finite mesh generation. The strengths of C are compared to that of Fortran 77 and Fortran 90. It has been found that for finite element programming C is in many aspects superior to Fortran 77. However, it has some disadvantages in comparison with Fortran 90 concerning array processing.


πŸ“œ SIMILAR VOLUMES


Finite element program
πŸ“‚ Article πŸ“… 1978 πŸ› Elsevier Science 🌐 English βš– 225 KB
Tensor objects in finite element program
✍ Boris JeremiΔ‡; Stein Sture πŸ“‚ Article πŸ“… 1998 πŸ› John Wiley and Sons 🌐 English βš– 133 KB

This paper describes a novel programming tool, nDarray, which is designed using an Object Oriented Paradigm (OOP) and implemented in the C++ programming language. Finite element equations, represented in terms of multidimensional tensors are easily manipulated and programmed. The usual matrix form o