Skip to main content Accessibility help
×
Hostname: page-component-6bb9c88b65-vpjdr Total loading time: 0 Render date: 2025-07-24T23:15:51.218Z 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 physicalproblem, developing a numerical algorithm for solving the problem, designing aprogram that implements this solution within a clear and understandableframework and, finally, determining the accuracy and the limits of validity ofthe numerical solution. Before discussing these, however, we surveycomputational methods and software and hardware architecture.

Computational methods

While most textbook problems possess a high degree of symmetry and/or alimited number of variables and can therefore be solved analytically, real-worldapplications typically require numerical analysis. Further, even analyticsolutions can be unstable, as in water flowing through a cylindrical tube athigh velocity, for which the motion depends critically on the initialconditions. Numerical calculations are then performed for numerous initialconditions 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 whichdescribes the system over a restricted spatial or temporal domain. Continuousoperators such as derivatives and integrals are then approximated by employingtheir definition as the limit of discrete differences and sums but withoutpassing to the infinitesimal limit. As an example, the response of a building toan applied force from the ground can be obtained by noting that the forces oneach brick vary only slightly over the surface of the brick. The response ofeach discrete, rigid, brick to these local applied forces can therefore easilybe evaluated. Coupling the forces and displacements on each brick to those onneighboring bricks and to those applied at the boundary between the house andthe ground generates a large system of linear equations that is solvednumerically.

Information

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.)

Book purchase

Temporarily unavailable

Accessibility standard: Unknown

Accessibility compliance for the PDF of this book is currently unknown and may be updated in the future.

Save book to Kindle

To save this book to your Kindle, first ensure no-reply@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
×