Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... ·...

17
Yeoun Joo KIM NAOFE, Dong-A university Stabilization of Gauss-Seidel Smoother

Transcript of Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... ·...

Page 1: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Yeoun Joo KIM

NAOFE, Dong-A university

Stabilization of Gauss-Seidel Smoother

Page 2: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Motivation

x방향으로 흐르지 못하는 이유는?

Page 3: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Cases of Face-Ordering

Different ordering of face index in two grid systems

Grid 1 Grid 2

Page 4: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

GS Smoother : Grid 1

𝝋𝒊,𝒋 = 𝒍𝒊−𝟏𝝋𝒊−𝟏,𝒋 + 𝒖𝒊+𝟏𝝋𝒊+𝟏,𝒋

+𝒍𝒋−𝟏𝝋𝒊,𝒋−𝟏 + 𝒖𝒋+𝟏𝝋𝒊,𝒋+𝟏

+𝒅𝒌,𝒍𝝋𝒌,𝒍

{𝒌 ≠ 𝒊 − 𝟏, 𝒊 + 𝟏𝒍 ≠ 𝒋 − 𝟏, 𝒋 + 𝟏

missed

misplaced

Page 5: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

GS Smoother : Grid 1

Page 6: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

GS Smoother : Grid 1

Page 7: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

GS Smoother : Grid 1

Page 8: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

DILU Smoother : Grid 1

𝐴𝑥𝑖 = 𝐵𝑖𝐴 𝑥𝑖 − 𝑥𝑖−1 = 𝐵𝑖 − 𝐵𝑖−1(𝐷 + 𝐿 + 𝑈) 𝑥𝑖 − 𝑥𝑖−1 = 𝐵𝑖 − 𝐵𝑖−1𝑥𝑖 − 𝑥𝑖−1 ≅ 𝐷−1(𝐵𝑖 − 𝐵𝑖−1)𝑥𝑖 − 𝑥𝑖−1 + 𝐷−1𝐿 𝑥𝑖 − 𝑥𝑖−1 + 𝐷−1𝑈 𝑥𝑖 − 𝑥𝑖−1 = 𝐷−1(𝐵𝑖 − 𝐵𝑖−1)𝑥𝑖 ≅ 𝑥𝑖−1 + 𝐷−1(𝐵𝑖 − 𝐵𝑖−1) − 𝐷−1𝐿𝐷−1 𝐵𝑖 − 𝐵𝑖−1 − 𝐷−1𝑈𝐷−1 𝐵𝑖 − 𝐵𝑖−1𝑟𝐴 = 𝐷−1(𝐵𝑖 − 𝐵𝑖−1)𝑥𝑖 ≅ 𝑥𝑖−1 + 𝑟𝐴 − 𝐷−1𝐿𝑟𝐴 − 𝐷−1𝑈𝑟𝐴

𝐷 𝑥𝑖 − 𝑥𝑖−1 ≫ 𝐿 𝑥𝑖𝑥 − 𝑥𝑖−1𝐷 𝑥𝑖 − 𝑥𝑖−1 ≫ 𝑈 𝑥𝑖 − 𝑥𝑖−1

Page 9: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

DILU Smoother : Grid 1

Page 10: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Other Smoothers

Based on GaussSeidel solver

DILUGaussSeidel solver

symGaussSeidel solver

nonBlockingGaussSeidel solver

Page 11: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

GS Smoother : Grid 2

𝝋𝒊,𝒋 = 𝒍𝒊−𝟏𝝋𝒊−𝟏,𝒋 + 𝒖𝒊+𝟏𝝋𝒊+𝟏,𝒋

+𝒍𝒋−𝟏𝝋𝒊,𝒋−𝟏 + 𝒖𝒋+𝟏𝝋𝒊,𝒋+𝟏

Page 12: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

GS Smoother : Grid 2

Page 13: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Code Analysis of GS

start owner face at each cell

start owner face at present cellstart owner face at next cell

psi at cell of owner faces

psi at cell of neighbour faces

cellIndexfaceIndex

fStart/ownStart fEnd

0 0 2

1 2 4

2 4 6

3 6 8

4 8 9

5 9 11

6 11 13

Page 14: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Code Analysis of GS

start owner face at each cell

start owner face at present cellstart owner face at next cell

psi at cell of owner faces

psi at cell of neighbour faces

cellIndexfaceIndex

fStart/ownStart fEnd

0 0 1

1 1 2

2 2 3

3 3 6

4 6 6

5 6 8

6 8 10

Page 15: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Stabilization of GS

𝝋𝒊,𝒋 = (𝒍𝒊−𝟏𝝋𝒊−𝟏,𝒋 + 𝒖𝒊+𝟏𝝋𝒊+𝟏,𝒋

+𝒍𝒋−𝟏𝝋𝒊,𝒋−𝟏 + 𝒖𝒋+𝟏𝝋𝒊,𝒋+𝟏)/𝑫𝒊

Page 16: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Stabilization of GS

Page 17: Stabilization of Gauss-Seidel Smoothernextfoam.co.kr/proc/DownloadProc.php?fName=181120122028... · Code Analysis of GS start owner face at each cell start owner face at present cell

Performance of correctedGS

GS solverefficient but unstable depending on face-ordering

DILU solverstable but inefficient

correctedGS solverefficient and stable