Uhaina Uhaina A brief ief intr introduction duction Code Uhaina - - PowerPoint PPT Presentation
Uhaina Uhaina A brief ief intr introduction duction Code Uhaina - - PowerPoint PPT Presentation
Uhaina Uhaina A brief ief intr introduction duction Code Uhaina Actors EPOC, IMB, INRIA, I3M Issues Simulation of tsunami propagation at regional scale. Simulation wave shoaling and wave transformation in the surf and swash zones. Wave
Code Uhaina
Actors EPOC, IMB, INRIA, I3M Issues Simulation of tsunami propagation at regional scale. Simulation wave shoaling and wave transformation in the surf and swash zones. Wave overtopping and coastal flooding during storm event or tsunami. Operational and open source community code. Realisation New numerical method for the resolution of the Green-Naghdi equations. Parallel implementation using the finite elements library AeroSol.
1 / 17
Architecture and developement tools
Using Aerosol finite elements library
Uhaina Pre-processing Post-processing AeroSol Computation
Tools C++ GForge Git / SVN Spack CMake - CTest Doxygen ci.inria Parallel test framework.
2 / 17
Code Uhaina
Inputs Mesh Bathymetry Initial conditions Boundary conditions. Output Submersion areas Elevation field Breaking zone etc...
3 / 17
Feature
AeroSol Finite elements, both continuous and discontinuous. Unstructured and hybrid meshes to handle complex geometry. Efficient parallel computation. Specific feature Well-balanced formulation. Wet/Dry zones handling Positivity preserving limiter [Zhang et al. 2010] Shock limiter [Guermond et al. 2011] Efficient discretization of dispersive terms [Lannes et al. 2015]
4 / 17
Aerosol library
Time iterator
Mesh / connectivity Assembly of the matrix System inversion
Spatial discretization
Geometry Quadrature formulas Finite elements functions Model Numerical flux Boundary condition
Operators
MUMPS UMFPACK PaStiX PETSc
Linear solver
Redistribution Memory allocation Communications
PaMPA
Residual computation System inversion Loop over elements Resolution Residual computation Local operations 5 / 17
Well balanced shallow water equations
Hyperbolic system ∂W ∂t + ∇ · F(W, zb) = S(W, zb) W = η q
- ,
- F(W, zb) =
- q
uq + 1
2g(η2 − 2ηzb)
- S(W, zb) =
- −gη ∂zb
∂x
- 6 / 17
Discontinuous Galerkin method
Hyperbolic system ∂W ∂t + ∇ · F(W, zb) = S(W, zb) Domain Ω of Rd Mesh Mh such that Ω = ∪e∈MhΩe Pk polynomial with : deg(Pk) ≤ k Approximation space V k
h =
- v ∈ [L2(Ωe)]d+2,
v|e ∈ [Pk(Ωe)]d+2, ∀Ωe ∈ Mh
- 7 / 17
Well balanced shallow water equations
Hyperbolic system ∂W ∂t + ∇ · F(W, zb) = S(W, zb) ∀vh ∈ V k
h
Wh approximation of W in V k
h
∀vh ∈ V k
h
- Ωe∈Mh
- Ωe
∂tWhvh dΩ −
- Ωe∈Mh
- Ωe
- F(Wh, zh) · ∇vh dΩ
+
- σ∈Γ
- σ
v−
h hb(W− h , Wb h, z− h , zb h , n) dσ
+
- σ∈Σi
- σ
[ [ vh ] ]H(W−
h , W+ h , z− h , z+ h , n) dσ
=
- Ωe∈Mh
- Ωe
- S(Wh, zh)vh dΩ
8 / 17
Positivity preserving limiter
Zhang & Shu quadrature for P1 and P2 cases
hmin = min
x∈SZhang
h(x) If hmin ≤ ǫ : ˜ U(x) = Θ(U(x) − ¯ U) + ¯ U, ∀x ∈ SGauss (1) With Θ = min
- 1,
ǫ − ¯ h hmin − ¯ h
- (2)
Zhang, X., Xia, Y., & Shu, C. (2012). Maximum-Principle-Satisfying and Positivity-Preserving High Order Discontinuous Galerkin Schemes for Conservation Laws on Triangular Meshes. Journal of Scientific Computing. 9 / 17
Shock limiter
E = 1 2
- hu2 + g(η2 + z2)
- D = ∂E
∂t + ∇ · f(E) ≤ 0 D is always zero except in discontinuities. ν = βνmax min
- 1.0, δx |D|
ǫN
- With :
µmax = δx max |λ| Neglecting face integral :
- Ωe∈Mh
- Ωe
ν∇vh · ∇Wh dΩ
Guermond et al (2011), Entropy viscosity method for nonlinear conservation laws. Journal of Computational Physics. 10 / 17
Shock limiter
Entropy viscosity on simple breaking wave.
11 / 17
Test case : Well balanced property
Well balanced property and dry/wet interface
12 / 17
Test case : Subcritical flow over a bump
5 10 15 20 x 0.0 0.2 0.4 0.6 0.8 1.0 h Bathymetry Water level Exact solutionConvergence with second and third order spatial discretization
13 / 17
Test case : Carrier and Greenspan periodic
5 10 15 20 25 30 35 x 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 h Bathymetry Water level Exact solutionMoving Wet/Dry interface with second order spatial discretization
14 / 17
Test case : Synolakis
Results for Synolakis test case at different time with third order spatial discretization.
15 / 17
Demo
Simple demonstration of parallel computation
16 / 17
Thank you for your attention.
17 / 17