Computational Physics 1
Computational Physics 1
Computational Physics 1
ofComputationalPhysics
What is Computational Physics?
Basic computer hardware
Software 1: operating systems
Software 2: Programming languages
Software 3: Problem-solving environment
What does Computational Physics do?
2
What is Computational Physics?
few analytically
+ = solvable problems
solutions to very
+ = many problems
Why do we need computational physics?
In physics we answer how nature works.
Quite often we need equations
(unless you are a poet or a philosopher)
Using equations we create models to describe
nature
Exact (analytic) solutions are very rare unless
a model is a very simple one
We need computational physics when
– we cannot solve problems analytically
– we have too much data to process
9
Computer simulations for non-linear problems
Many natural phenomena are nonlinear, and
a small change in a variable might produce
a large effect.
But just few nonlinear problems can be
Solved analytically.
Interest in systems with many variables or
many degrees of freedom
Computational Physics
is a multidisciplinary field
Computational Physics
s project management
mathematics
physic
computers
Computers
Hardware
– Amazing progress: two times more
powerful processors in 18 months
(Moore’s law: the number of transistors
per square inch on integrated circuits
doubles every 18 months)
– Do we have twice more results in physics
each 18 months?
Software
12
Computers in computational physics
13
Basic computer hardware
14
Hardware (internal)
CPU - central processing unit (speed in GHz),
cache memory: cache 1, cache 2
RAM -random-access memory (MB or GB)
communication with CPU by bus (MHz)
PCI – Peripheral Component Interconnect
USB – Universal Serial Bus
HDD – Hard Disk Drive (GB)
Graphic card
Network Interface (Mb/sec)
15
Hardware (peripheral)
Keyboard (I/O)
Mouse (I/O)
Printer (I/O)
Monitor (Graphic card)
Ethernet (network)
Scanner, external storage, …
Critical hardware for calculations
Desktops
– CPU
– RAM
Clusters
– CPU and RAM
– number of CPUs
– fast network communication between
nodes
17
Software
18
Software 1: Operating Systems
Communication between
hardware (device drivers)
Communication between a user and a computer
running applications (software)
File system
Security
19
Types of Operating Systems
23
The basic ideas behind
computational physics are
language independent
24
Most common in physics
Fortra C/C++
n
Java
What language to use?
Maple
Mathematical
MathCAD
Derive
31
Problem-solving environment
Graphics
Spreadsheets
Word processors
Internet
…
34