computational challenges in air pollution modelling

31
Computational Challenges in Air Pollution Modelling Z. Zlatev Z. Zlatev National Environmental Research Institute National Environmental Research Institute 1. 1. Why Why air pollution modelling? air pollution modelling? 2. 2. Major Major physical and chemical processes physical and chemical processes 3. 3. Need Need for splitting for splitting 4. 4. Computational Computational difficulties difficulties 5. Need for 5. Need for faster and accurate faster and accurate algorithms algorithms 6. Different 6. Different matrix matrix computations computations 7. 7. Inverse and optimization Inverse and optimization problems problems 8. 8. Unresolved Unresolved problems problems

Upload: aimee

Post on 22-Feb-2016

37 views

Category:

Documents


0 download

DESCRIPTION

Computational Challenges in Air Pollution Modelling. Z. Zlatev National Environmental Research Institute 1. Why air pollution modelling? 2. Major physical and chemical processes 3. Need for splitting - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Computational Challenges in Air Pollution Modelling

Computational Challengesin Air Pollution ModellingZ. ZlatevZ. ZlatevNational Environmental Research InstituteNational Environmental Research Institute

1. 1. WhyWhy air pollution modelling? air pollution modelling? 2. 2. MajorMajor physical and chemical processes physical and chemical processes 3. 3. NeedNeed for splitting for splitting 4. 4. ComputationalComputational difficulties difficulties

5. Need for5. Need for faster and accurate faster and accurate algorithmsalgorithms6. Different6. Different matrix matrix computationscomputations7. 7. Inverse and optimization Inverse and optimization problemsproblems8. 8. Unresolved Unresolved problemsproblems

Page 2: Computational Challenges in Air Pollution Modelling

1. Why air pollution models?

DistributionDistribution of the air pollution levels of the air pollution levels TrendsTrends in the development of air pollution in the development of air pollution

levelslevels Establishment of Establishment of relationshipsrelationships between air between air

pollution levels and key parameters pollution levels and key parameters (emissions, meteorological conditions, (emissions, meteorological conditions, boundary conditions, etc.).boundary conditions, etc.).

PredictingPredicting appearance of high levels appearance of high levels

Page 3: Computational Challenges in Air Pollution Modelling
Page 4: Computational Challenges in Air Pollution Modelling
Page 5: Computational Challenges in Air Pollution Modelling
Page 6: Computational Challenges in Air Pollution Modelling
Page 7: Computational Challenges in Air Pollution Modelling
Page 8: Computational Challenges in Air Pollution Modelling
Page 9: Computational Challenges in Air Pollution Modelling

2. Major physical processes Horizontal transportHorizontal transport (advection) (advection) Horizontal diffusionHorizontal diffusion Deposition (dry and wet)Deposition (dry and wet) Chemical reactionsChemical reactions + emissions + emissions Vertical transport and diffusionVertical transport and diffusion----------------------------------------------------------------------------------------Describe these processes mathematicallyDescribe these processes mathematically

Page 10: Computational Challenges in Air Pollution Modelling

3. Air Pollution Models3. Air Pollution Models

,...,q,szc

Kzz

)(wc

),c...,c(cQE)ck(k

yc

Kyx

cK

x

y)(vc

x)(uc

tc

sz

s

qss

sss

sy

sx

sss

21

transportvert.

emis.chem.,deposition

diffusionhor.

transporthor.

21

21

Page 11: Computational Challenges in Air Pollution Modelling

4. Need for splitting Bagrinowskii and Godunov 1957Bagrinowskii and Godunov 1957 Strang 1968Strang 1968 Marchuk 1968, 1982Marchuk 1968, 1982 McRay, Goodin and Seinfeld 1982McRay, Goodin and Seinfeld 1982 Lancer and Verwer 1999Lancer and Verwer 1999 Dimov, Farago and Zlatev 1999Dimov, Farago and Zlatev 1999

Zlatev 1995Zlatev 1995

Page 12: Computational Challenges in Air Pollution Modelling

4. Criteria for choosing the splitting procedure AccuracyAccuracy EfficiencyEfficiency Preservation of the propertiesPreservation of the properties of the of the

involved operators involved operators

Page 13: Computational Challenges in Air Pollution Modelling

5. Resulting ODE systems

.,

,1,

,1,

NCNZNYNXNf

mg

migtftdgd

Ni

Ni

iii

Page 14: Computational Challenges in Air Pollution Modelling

6. Size of the ODE systems6. Size of the ODE systems (480x480x10) grid and 35 species results (480x480x10) grid and 35 species results

in ODE systems with more than in ODE systems with more than 80 mill80 mill. . equations (equations (8 mill.8 mill. in the 2-D case). in the 2-D case).

More than More than 20000 time-steps20000 time-steps are to be are to be carried out for a run with meteorological carried out for a run with meteorological data covering one month.data covering one month.

Sometimes the model has to be run over a Sometimes the model has to be run over a time period of up to time period of up to 10 years10 years..

Different Different scenarios scenarios have to be tested. have to be tested.

Page 15: Computational Challenges in Air Pollution Modelling

7. Chemical sub-model Parallel tasksParallel tasks The calculations at a given grid-pointThe calculations at a given grid-point Numerical methodsNumerical methods QSSA QSSA (Hesstvedt et al., 1978)(Hesstvedt et al., 1978) Backward Euler Backward Euler (Alexandrov et al., 1997)(Alexandrov et al., 1997) Trapezoidal Rule (Alexandrov et al., 1997)Trapezoidal Rule (Alexandrov et al., 1997) Runge-Kutta methods (Zlatev, 1981)Runge-Kutta methods (Zlatev, 1981) Rosenbrock methods Rosenbrock methods (Verwer et al., 1998)(Verwer et al., 1998)--------------------------------------------------------------------------------------------------------------------Criteria for choosing the numerical method?Criteria for choosing the numerical method?

Page 16: Computational Challenges in Air Pollution Modelling

8. Advection sub-model Parallel tasksParallel tasks The calculations for a given compoundThe calculations for a given compound Numerical methodsNumerical methods Pseudo-spectral discretization Pseudo-spectral discretization (Zlatev, 1984)(Zlatev, 1984) Finite elements Finite elements (Pepper et al., 1979) (Pepper et al., 1979) Finite differences (up-wind)Finite differences (up-wind) “ “Positive” methods (Bott, 1989; Holm, 1994)Positive” methods (Bott, 1989; Holm, 1994) Semi-Lagrangian algorithms (Neta, 1995)Semi-Lagrangian algorithms (Neta, 1995) Wavelets (not tried yet)Wavelets (not tried yet)

Page 17: Computational Challenges in Air Pollution Modelling

9. Discretization of the derivatives

dxN

xdf

dx

xdf

dx

xdf

NG

Nxfxfxf

NF

NnNn

nx

nx

NX

xfxfxxf

2,,1,0

2,,

1,

0

210,12

2/

2,2,0,

Page 18: Computational Challenges in Air Pollution Modelling

10. Pseudo-spectral discretization

mxkN

m mxfNkb

mxkN

m mxfNka

N

m mxfN

A

N

kkxkbkxkaANT

sin2

012

1

cos2

012

1

2

012

1

1sincos

Page 19: Computational Challenges in Air Pollution Modelling

11. Convergence of the Fourier series

If If f(x)f(x) is continuous and is continuous and periodicperiodic and if and iff´(x) f´(x) is piece-wise continuous, then theis piece-wise continuous, then theFourier series of f(x) Fourier series of f(x) convergesconverges uniformly uniformlyand absolutely to f(x).and absolutely to f(x).

Davis (1963)Davis (1963)

Page 20: Computational Challenges in Air Pollution Modelling

12. Accuracy of the Fourier series

It can be proved (It can be proved (Davis, 1963Davis, 1963) that) that

if if

constant, a is ,and 11 MkMb

kMa kk

,,1,0,2)0( ff

Page 21: Computational Challenges in Air Pollution Modelling

13. Drawbacks of the pseudo-spectral method

Drawback Removing ReferenceEquidistantgrids ?Periodicity forconvergence Yes

Lyness,1974

Periodicity foraccuracy Yes

Roache,1971, 1978

Page 22: Computational Challenges in Air Pollution Modelling

14. Finite elements

The application of finite elements in the The application of finite elements in the advection module leads to an ODE advection module leads to an ODE system:system:

gHtdgdP

P is a constant matrix,H depends on the wind

Choice of method11 )(, HtPP

Page 23: Computational Challenges in Air Pollution Modelling

15. Matrix Computations Fast Fourier TransformsFast Fourier Transforms Banded matricesBanded matrices Tri-diagonal matricesTri-diagonal matrices General sparse matricesGeneral sparse matrices DenseDense matrices matricesTypical feature:Typical feature: The matrices are not large, The matrices are not large,

but these are to be handled but these are to be handled many timesmany times in in everyevery sub-module during sub-module during everyevery time-step time-step

Page 24: Computational Challenges in Air Pollution Modelling

16. Major requirements Efficient performance on a single Efficient performance on a single

processorprocessor Reordering of the operationsReordering of the operations------------------------------------------------------------------------------------------------------------What about parallel tasks?What about parallel tasks?““Parallel computation actually reflects the Parallel computation actually reflects the

concurrent character of many concurrent character of many applications”applications”

D. J. Evans (1990) D. J. Evans (1990)

Page 25: Computational Challenges in Air Pollution Modelling

17. Chunks on one processorSIZESIZE FujitsuFujitsu SGISGI IBM SMPIBM SMP 1 76964 14847 103131 76964 14847 10313 48 2611 48 2611 1211412114 522552259216 9216 494494 18549 19432 18549 19432--------------------------------------------------------------------------------------------------------First line:First line: the straight-forward call of the box routine the straight-forward call of the box routineLast line:Last line: the vectorized option the vectorized optionSecond line:Second line: using using 192192 chunks chunks----------------------------------------------------------------------------------------------------------------------------------------------Owczarz and Zlatev (2000)Owczarz and Zlatev (2000)

Page 26: Computational Challenges in Air Pollution Modelling

18. “Non-optimized” codeModuleModule Comp. timeComp. time PercentPercentChemistry 16147 Chemistry 16147 83.0983.09Advection 3013 15.51Advection 3013 15.51Initialization 1 0.01Initialization 1 0.01Input operations 50 0.26Input operations 50 0.26Output operation 220 1.13Output operation 220 1.13Total 19432 100.00Total 19432 100.00IBM SMP computer, one processorIBM SMP computer, one processor

Page 27: Computational Challenges in Air Pollution Modelling

19. Parallel runs on IBM SMPProcessorsProcessors AdvectionAdvection ChemistryChemistry TotalTotal 1 933 4185 52251 933 4185 5225 2 478 1878 24272 478 1878 2427 4 244 1099 14054 244 1099 1405 8 144 521 7998 144 521 799 16 62 272 42416 62 272 424------------------------------------------------------------------------------------------------------------------IBM IBM “Night Hawk”“Night Hawk” (2 nodes); (2 nodes); NSIZE=48NSIZE=48

Page 28: Computational Challenges in Air Pollution Modelling

20. ScalabilityProcessProcess (288x288)(288x288) (96x96)(96x96) RatioRatioAdvection 1523 63 24.6Advection 1523 63 24.6Chemistry 2883 288 10.0Chemistry 2883 288 10.0Total 6209 432 14.4Total 6209 432 14.4--------------------------------------------------------------------------------------------------------------IBM IBM “Night Hawk”“Night Hawk” (2 nodes); (2 nodes); NSIZE=48NSIZE=48

Page 29: Computational Challenges in Air Pollution Modelling

22. Why is a good performance needed?

GridGrid Comp. TimeComp. Time (96x96) 424 (45.8)(96x96) 424 (45.8) (288x288) 6209 ( 3.1)(288x288) 6209 ( 3.1)Non-optimized code:Non-optimized code: 1943219432----------------------------------------------------------------------------------------------------------------IBM IBM “Night Hawk”“Night Hawk” (2 nodes); (2 nodes); NSIZE=48NSIZE=48

Page 30: Computational Challenges in Air Pollution Modelling

23. PLANS FOR FUTURE WORK

ImprovingImproving the spatial the spatial resolutionresolution of the of the model used to obtain information.model used to obtain information.

Object-oriented codeObject-oriented code PredictingPredicting occurrences where the critical occurrences where the critical

levels will be levels will be exceeded.exceeded. Evaluating Evaluating the the losseslosses due to long due to long

exposures to high pollution levels.exposures to high pollution levels. FindingFinding optimal optimal solutions.solutions.

Page 31: Computational Challenges in Air Pollution Modelling

24. Unresolved problems

3-D3-D models on models on finefine grids grids LocalLocal refinement of the grids refinement of the grids Data Data assimilationassimilation InverseInverse problems problems OptimizationOptimization problems problems------------------------------------------------------------------------------------------Important for Important for decision makersdecision makers