remembering bertram broberg - ucdplynch/talks/img-eniac.pdf · 2008. 10. 16. · the eniac the...

34
Remembering Bertram Broberg The ENIAC Forecasts: A Recreation Peter Lynch UCD Meteorology & Climate Centre School of Mathematical Sciences Joint Symposium of Irish Mechanics Society Swedish National Committee for Mechanics Irish Society for Scientific & Engineering Mechanics 9–10 May, 2007.

Upload: others

Post on 04-Mar-2021

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Remembering Bertram Broberg

The ENIAC Forecasts:A Recreation

Peter LynchUCD Meteorology & Climate Centre

School of Mathematical Sciences

Joint Symposium ofIrish Mechanics Society

Swedish National Committee for MechanicsIrish Society for Scientific & Engineering Mechanics

9–10 May, 2007.

Page 2: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Outline of the lecture

• Introduction

• Preparing the Ground

• The First Computer Forecast

• Into Operations

• Recreating the Forecasts

2

Page 3: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Pioneers of Scientific Forecasting

Cleveland Abbe, Vilhelm Bjerknes, Lewis Fry Richardson

3

Page 4: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Cleveland Abbe

By 1890, the American mete-orologist Cleveland Abbe hadrecognized that:

Meteorology is essentially theapplication of hydrodynamicsand thermodynamics to theatmosphere.

Abbe proposed a mathemati-cal approach to forecasting.

4

Page 5: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Vilhelm Bjerknes

A more explicit analysis ofweather prediction was un-dertaken by the Norwegianscientist Vilhelm Bjerknes

He identified the two cru-cial components of a scientificforecasting system:

• Analysis

• Integration

5

Page 6: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Lewis Fry Richardson

The English Quaker scien-tist Lewis Fry Richardson at-tempted a direct solution ofthe equations of motion.

He dreamed that numericalforecasting would become apractical reality.

Today, forecasts are preparedroutinely using methods sim-ilar to Richardson’s . . .

. . . his dream has indeedcome true.

6

Page 7: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Richardson’s Forecast Factory

c©Francois Schuiten

7

Page 8: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Richardson’s Forecast Factory

c©Francois Schuiten

64,000 Computers: The first Massively Parallel Processor

7

Page 9: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Crucial Advances, 1920–1950

�Dynamic Meteorology

� Quasi-geostrophic Theory

�Numerical Analysis

� CFL Criterion

�Atmopsheric Observations

� Radiosonde

�Electronic Computing

� ENIAC

8

Page 10: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

The Meteorology ProjectProject estblished by John von Neumann in 1946.

Objective of the project:To study the problem of predicting the weatherusing a digital electronic computer.

A Proposal for Funding listed three “possibilities”:

�New methods of weather prediction

�Rational basis for planning observations

�Step towards influencing the weather!

9

Page 11: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

The ENIAC

10

Page 12: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

The ENIAC

The ENIAC was thefirst multi-purposeprogrammable elec-tronic digital com-puter.It had:

• 18,000 vacuum tubes

• 70,000 resistors

• 10,000 capacitors

• 6,000 switches

• Power: 140 kWatts

11

Page 13: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

The ENIAC: Technical Details.ENIAC was a decimal machine. No high-level language.Assembly language. Fixed-point arithmetic: −1 < x < +1.10 registers, that is,Ten words of high-speed memory.Function Tables:624 6-digit words of “ROM”, set onten-pole rotary switches.“Peripheral Memory”:Punch-cards.Speed: FP multiply: 2ms(say, 500 Flops).Access to Function Tables: 1ms.Access to Punch-card equipment:You can imagine!

12

Page 14: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Evolution of the Project

• Plan A: Integrate the Primitive Equations

Problems similar to Richardson’s would arise

• Plan B: Integrate baroclinic Q-G System

Too computationally demanding

• Plan C: Solve barotropic vorticity equation

Very satisfactory initial results

13

Page 15: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Charney, et al., Tellus, 1950.[Absolute

Vorticity

]=

[Relative

Vorticity

]+

[Planetary

Vorticity

]η = ζ + f .

• The atmosphere is treated as a single layer.• The flow is assumed to be nondivergent.• Absolute vorticity is conserved.

d(ζ + f )

dt= 0.

This equation looks deceptively simple. But it is nonlinear:

∂t[∇2ψ] +

{∂ψ

∂x

∂∇2ψ

∂y− ∂ψ

∂y

∂∇2ψ

∂x

}+ β

∂ψ

∂x= 0 ,

14

Page 16: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Charney, Fjørtoft, von Neumann

Charney Fjørtoft von Neumann

Numerical integration of the barotropic vorticity equationTellus, 2, 237–254 (1950).

15

Page 17: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Solution method for BPVE∂ζ

∂t= J(ψ, ζ + f )

1. Compute the Jacobian

2. Step forward (Leapfrog scheme)

3. Solve Poisson equation ∇2ψ = ζ (Fourier expansion)

4. Go to (1).

• Timestep : ∆t = 1 hour

• Gridstep : ∆x = 750 km (at North Pole)

• Gridsize : 19× 16 ≈ 300 points

• Elapsed time for 24 hour forecast: About 24 hours.

Each forecast involved punching about 25,000 cards.Most of the time was spent handling card-decks.

16

Page 18: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Flow-chart for the computations.G. W. Platzman: The ENIAC Computations of 1950 — Gateway to Numerical Weather Prediction (BAMS, April, 1979).

17

Page 19: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

ENIAC: First Computer Forecast

18

Page 20: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Key people in the ENIAC endeavour19

Page 21: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

NWP OperationsThe Joint Numerical Weather Prediction

Unit was established on July 1, 1954:

�Air Weather Service of US Air Force

�The US Weather Bureau

�The Naval Weather Service.

Operational numerical weather forecasting be-gan in May, 1955, using a three-level quasi-geostrophic model.

20

Page 22: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Recreating the ENIAC Forecasts

The ENIAC integrations have beenrecreated using:

• A MATLAB program to solve the BVE

• Data from the NCEP/NCAR reanalysis

The matlab code is available on the author’s website

http://maths.ucd.ie/∼plynch/eniac

21

Page 23: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

NCEP/NCAR ReanalysisThe initial dates for the four forecasts were:

• January 5, 1949

• January 30, 1949

• January 31, 1949

• February 13, 1949

When a reconstruction was first conceived,a laborious digitization of hand-drawn chartsappeared necessary.

22

Page 24: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

23

Page 25: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

24

Page 26: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

25

Page 27: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

The computational grid for the integrations26

Page 28: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

ENIAC Forecast for Jan 5, 1949

27

Page 29: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Recreation of the Forecast

28

Page 30: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

29

Page 31: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

30

Page 32: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

31

Page 33: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Computing Time for ENIAC Runs

�George Platzman, during his Starr Lec-ture, re-ran an ENIAC forecast

�The algorithm was coded on an IBM5110, a desk-top machine

�The program execution was completedduring the lecture (about one hour)

�The program eniac.m was run on a SonyVaio (model VGN-TX2XP)

�The main loop of the 24-hour forecastran in about 15 ms.

32

Page 34: Remembering Bertram Broberg - UCDplynch/Talks/IMG-ENIAC.pdf · 2008. 10. 16. · The ENIAC The ENIAC was the first multi-purpose programmable elec-tronic digital com-puter. It had:

Thank You

33