APL and finite elements for solving convection-diffusion problems, with examples from gas bearing design

The increasing popularity of finite element techniques to solve fluid flow problems has been due, in large part, to its geometric flexibility and adaptability. APL shares that property. Therefore, it is a natural companion to finite element modelling. The closeness of control that APL allows during algorithm and program development is especially welcome during the pre-processing stages of the solution of field problems, in particular during grid generation. This leads to very reasonable “door-to-door” solution times, especially for problems that occur in a R&D environment, where a large percentage of the time is spent formulating, changing and maintaining code. Using examples from engineering practice, the adaptability of APL is illustrated in gas bearing design, as applied to magnetic sliders in hard disk files and laser mirror scanners in electrophotographic printers. APL was also used to teach finite element techniques and grid generation. It proved effective in affording a more immediate view of the key steps of finite element modelling, such as assembly of the stiffness matrix, and the effect of node numbering on the bandwidth of the sparse linear system.