numerische lösungen der transportgleichung · mit “upstream weighting” explizite approximation...

18
22.05.2012 Transportmodellierung Numerische Lösungen der Transportgleichung Prof. Dr. Sabine Attinger Jun.Prof. Dr. Anke Hildebrandt

Upload: others

Post on 06-Oct-2019

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

Numerische Lösungen der Transportgleichung

Prof. Dr. Sabine Attinger

Jun.Prof. Dr. Anke Hildebrandt

Page 2: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

02

2

=∂

∂−

∂+

xcD

xcv

tc

Transport in 1D – advektiv-dispersiv

Page 3: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

Numerische Fehler

Numerische Dispersion

Numerische Oszillationen

Page 4: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

tc

xcv

∂=

∂−

(siehe Zheng & Bennett, p. 174-181)

v j-1 j j+1

Δx

x

tcc

xcc

vnj

nj

nj

nj

Δ

−=

Δ

−−

+−

11 )(Explizite Approximation

mit “Upstream Weighting”

Explizite Approximation des advektiven Flusses

Page 5: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

nj

nj

nj

nj ccc

ltvc +−

Δ

Δ−= −

+ )( 11

v = 100 cm/hr Δl = 100 cm C1= 100 mg/l C2= 10 mg/l Δt = 0.1 hr bzw. Δt = 1 hr

Beispiel

Die Anfangskonzentration ist eine Stufenfunktion mit C1 an der Stelle x=0m und C2 an der Stelle x=1m. Berechnen Sie die Konzentrationen zum Zeitpunkt Δt am Ort x=1m mit zwei unterschiedlichen Zeitschritten !

Page 6: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

nj

nj

nj

nj ccc

ltvc +−

Δ

Δ−= −

+ )( 11

v = 100 cm/hr Δl = 100 cm C1= 100 mg/l C2= 10 mg/l Δt = 0.1 hr

Lösung

Page 7: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

v = 100 cm/h

Δl = 100 cm

C1= 100 mg/l

C2= 10 mg/l

Ohne Dispersion, Durchbruch bei t = Δl/v = 1 h

Lösung

Page 8: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

tcc

xcc

vnj

nj

nj

nj

Δ

−=

Δ

−−

++−

++

111

11 )2

(

Implizit: central differences

tcc

xcc

vnj

nj

nj

nj

Δ

−=

Δ

−−

++++

1111 )(

tcc

xcc

vnj

nj

nj

nj

Δ

−=

Δ

−−

++−

+ 111

1

)(

Implizit: upstream weighting

Implizite Approximationen des advektiven Flusses

Page 9: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

Numerische Lösungen

Page 10: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

= Finite Element Method

Numerische Lösungen

Page 11: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

j-1 j j+1

Δx x

j-1/2 j+1/2

Approximation des dispersiven Flusses

Page 12: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

tcc

xcc

vx

cccD

nj

nj

nj

nj

nj

nj

nj

Δ

−=

Δ

−−

Δ

+− +−+−

11

211 )()

)(

2(

explizit mit “Upstream weighting”, v >0

)()2()( 1112

1 nj

nj

nj

nj

nj

nj

nj cc

xtvccc

xtDcc −+−

+ −Δ

Δ−+−

Δ

Δ+=

Solve for cj n+1

Explizites Schema

Page 13: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

tcc

xcc

vx

cccD

nj

nj

nj

nj

nj

nj

nj

Δ

−=

Δ

−−

Δ

+− ++−

++−

111

1

211 )()

)(2

(

implizit mit “Upstream weighting”, v >0

)2()(

)( 1121

111 n

jnj

nj

nj

nj

nj

nj ccc

xtDccc

xtvc +−

+−

++ +−Δ

Δ+=−

Δ

Δ+

Solve for cjn+1

Implizites Schema

Page 14: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

tcc

xcc

vx

cccD

nj

nj

nj

nj

nj

nj

nj

Δ

−=

Δ

−−

Δ

+− ++−

+++−

111

11

211 )()

)(2

(

implizit mit “Central weighting”, v >0

)2()(

)( 1121

11

11 n

jnj

nj

nj

nj

nj

nj ccc

xtDccc

xtvc +−

+−

++

+ +−Δ

Δ+=−

Δ

Δ+

Solve for cjn+1

Implizite Schemata

Page 15: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

21

)( 2 >Δ

Δ

xtD

1<Δ

Δ

xtv

Stabilitätskriterium – Explizite Approximation

für Dispersion

für Advektion (Courant Zahl)

Page 16: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

Numerische Dispersion kontrolliert durch (für explizite und implizite Approximationen)

Courant Zahl xtvCr

Δ

Δ= Cr < 1

Peclet Zahl αx

DxvPe Δ=

Δ= 2<Pe

Kriterien

Page 17: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

Numerische Löser (MT3DMS) Pa

rtik

el

Met

hode

n

Fini

te

Diff

eren

zen

Met

hode

n

Page 18: Numerische Lösungen der Transportgleichung · mit “Upstream Weighting” Explizite Approximation des advektiven Flusses . 22.05.2012 Transportmodellierung n j n j n j n j c c c

22.05.2012 Transportmodellierung

Aufgabe 1.  Programmieren Sie verschiedene

implizite FD-Lösungen mit matlab! Hinweis: Stelle dafür zunächst die

Matrizen-Gleichung auf, die numerisch gelöst werden muß.

2. Vergleichen Sie die verschiedenen Lösungsschemata hinsichtlich numerischer Stabilität und Dispersion!