Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-mwx4w Total loading time: 0 Render date: 2024-07-04T13:20:28.854Z Has data issue: false hasContentIssue false

Chapter 4 - Introduction to computer and software architecture

Published online by Cambridge University Press:  05 June 2012

David Yevick
Affiliation:
University of Waterloo, Ontario
Get access

Summary

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.

Type
Chapter
Information
A Short Course in Computational Science and Engineering
C++, Java and Octave Numerical Programming with Free Software Tools
, pp. 22 - 25
Publisher: Cambridge University Press
Print publication year: 2012

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×