Introduction to computer and software architecture

David O. Yevick · Cambridge University Press eBooks · 2012

Scientific programming comprises four basic elements: analyzing a physical problem, developing a numerical algorithm for solving the problem, designing a program that implements this solution within a clear and understandable framework and, finally, determining the accuracy and the limits of validity of the numerical solution. Before discussing these, however, we survey computational methods and software and hardware architecture. Computational methods While most textbook problems possess a high degree of symmetry and/or a limited number of variables and can therefore be solved analytically, real-world applications typically require numerical analysis. Further, even analytic solutions can be unstable, as in water flowing through a cylindrical tube at high velocity, for which the motion depends critically on the initial conditions. Numerical calculations are then performed for numerous initial conditions and statistical properties derived from the results. Often a numerical model of a continuous system recasts the solution to the full, global problem as a set of simplified, coupled local problems, each of which describes the system over a restricted spatial or temporal domain. Continuous operators such as derivatives and integrals are then approximated by employing their definition as the limit of discrete differences and sums but without passing to the infinitesimal limit. As an example, the response of a building to an applied force from the ground can be obtained by noting that the forces on each brick vary only slightly over the surface of the brick. The response of each discrete, rigid, brick to these local applied forces can therefore easily be evaluated. Coupling the forces and displacements on each brick to those on neighboring bricks and to those applied at the boundary between the house and the ground generates a large system of linear equations that is solved numerically.

Read the paper · More papers on PaperTik