Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-25wd4 Total loading time: 0 Render date: 2024-04-26T10:12:12.968Z Has data issue: false hasContentIssue false

2 - Basics

Published online by Cambridge University Press:  04 August 2010

Andi Klein
Affiliation:
Los Alamos National Laboratory
Alexander Godunov
Affiliation:
Old Dominion University, Virginia
Get access

Summary

Before we start we need to introduce a few concepts of computers and the interaction between you, the user, and the machine. This will help you decide when to write a program for solving a physics or science problem and when it is much easier or faster to use a piece of paper and a pocket calculator. In thinking about computers, remember there is a distinction between hardware and software. Software is divided into the operating system and your particular application, like a spreadsheet, word-processor or a high level language. In this book we will spend most of the time in dealing with issues relevant to physics and the algorithms used to solve problems. However, in order to make this as productive as possible, we will start off with a short description of the hardware and then some discussion of the operating system.

Basic computer hardware

Apart from huge parallel supercomputers, all workstations you can buy today are organized in a similar way (Figure 2.1).

The heart of the computer is the CPU (Central Processing Unit) controlling everything in your workstation. Any disk I/O (Input/Output) or computational task is handled by the CPU. The speed at which this chip can execute an instruction is measured in Hz (cycles per second) at several GHz. The CPU needs places to store data and instructions. There are typically four levels of memory available: level I cache, level II cache, RAM (Random Access Memory) and swap space, the last being on the hard disk.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2006

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.

  • Basics
  • Andi Klein, Los Alamos National Laboratory, Alexander Godunov, Old Dominion University, Virginia
  • Book: Introductory Computational Physics
  • Online publication: 04 August 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511793219.003
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.

  • Basics
  • Andi Klein, Los Alamos National Laboratory, Alexander Godunov, Old Dominion University, Virginia
  • Book: Introductory Computational Physics
  • Online publication: 04 August 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511793219.003
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.

  • Basics
  • Andi Klein, Los Alamos National Laboratory, Alexander Godunov, Old Dominion University, Virginia
  • Book: Introductory Computational Physics
  • Online publication: 04 August 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511793219.003
Available formats
×