exploring unstructured poisson solvers for fds
play

Exploring unstructured Poisson solvers for FDS Dr. Susanne Kilian - PowerPoint PPT Presentation

Exploring unstructured Poisson solvers for FDS Dr. Susanne Kilian hhpberlin - Ingenieure fr Brandschutz 10245 Berlin - Germany Next Generation Fire Engineering Agenda Lser 2 3 4 1 Poisson- Solvers for Discretization of Conclusions


  1. Exploring unstructured Poisson solvers for FDS Dr. Susanne Kilian hhpberlin - Ingenieure für Brandschutz 10245 Berlin - Germany Next Generation Fire Engineering

  2. Agenda Löser 2 3 4 1 Poisson- Solvers for Discretization of Conclusions Poisson equation Numerical Tests Poisson equation 4 Next Generation Fire Engineering

  3. 1 Discretization of the Poisson equation Numerical Structured versus unstructured Cartesian grids fire simulations Next Generation Fire Engineering

  4. 1 Pressure equation in FDS Discretization of Poisson equation Elliptic partial differential equation of type „Poisson“ + Boundary conditions Source terms of previous time step (radiation, combustion, etc.) • must be solved at least twice per time step • strongly coupled with velocity field Next Generation Fire Engineering

  5. 1 Finite difference discretization Discretization of Poisson equation Discretization stencil in 2D: • cell-centered • specifies physical relations between single cells Next Generation Fire Engineering

  6. 1 Subdivision into meshes Discretization of Poisson equation Single-Mesh: Multi-Mesh: 1 global system of equations M local systems of equations and are sparse matrices (only very few non-zeros entries) Next Generation Fire Engineering

  7. 1 Treatment of internal obstructions Discretization of Poisson equation Simple 2D-domain FDS velocity field open outflow internal obstruction inflow Next Generation Fire Engineering

  8. 1 Structured Cartesian grids Discretization of Poisson equation „Gasphase“ and „Solid“-cells: • uniform matrix stencils regardless of inner obstructions • cells interior to obstructions are part of system of equations Matrix stencils don’t care about obstructions Next Generation Fire Engineering

  9. 1 Structured Cartesian grids Discretization of Poisson equation Advantages: • very regular matrix structure (uniform numbering between neighboring cells) • can be exploited efficiently in solution process (Example: FFT) Use of highly optimized solvers possible Next Generation Fire Engineering

  10. 1 Structured Cartesian grids Discretization of Poisson equation Disadvantages: • incorrect treatment of interior boundaries • possible penetration of velocity field into internal solids Next Generation Fire Engineering

  11. 1 Structured Cartesian grids Discretization of Poisson equation Disadvantages: • incorrect treatment of interior boundaries • possible penetration of velocity field into internal solids • need of additional correction Losses of efficiency and accuracy Next Generation Fire Engineering

  12. 1 Unstructured Cartesian grids Discretization of Poisson equation Only „Gasphase“-cells: • individual matrix stencils by omitting internal obstructions • cells interior to obstructions are not part of system of equations Matrix stencils care about obstructions Next Generation Fire Engineering

  13. 1 Unstructured Cartesian grids Discretization of Poisson equation Advantages: • correct setting of interior boundary conditions possible ( homogeneous Neumann) • less grid cells Higher accuracy, no additional correction Next Generation Fire Engineering

  14. 1 Unstructured Cartesian grids Discretization of Poisson equation Disadvantages: • loss of regular matrix structure (cells must store its neighbors) • more general solvers needed (FFT doesn’t work anymore) Application of optimized solvers difficult Next Generation Fire Engineering

  15. Solvers for the Poisson equation Presentation of different strategies Next Generation Fire Engineering

  16. 2 Fast Fourier Transformation: FFT(tol) with velocity correction Solvers for Poisson equation Condition 1: „ Internal obstructions“ FFT(tol) normal velocity components < tol Condition 2: „ Mesh interfaces“ difference of neighboring Condition 1 ? normal velocity components < tol Condition 2 ? • FFT-solutions on single meshes are highly efficient and fast • usable for structured grids only Next Generation Fire Engineering

  17. 2 Parallel LU-Decomposition: Cluster interface of Intel MKL Pardiso Solvers for Poisson equation MKL - Init Initialization: • first „reordering“ of matrix structure • then distributed LU-factorization MKL - Solve Pressure solution per time step: • simple forward/backward substitution • also praised to be very efficient • usable for structured and unstructured grids Next Generation Fire Engineering

  18. 2 Scalable Recursive Clustering (ScaRC): Block-CG and -GMG Methods Solvers for Poisson equation ScaRC-CG / ScaRC-GMG Conjugate Gradient Methods (CG): Preconditioning/Smoothing: • solve equivalent minimization problem Block-SSOR, Block-MKL Geometric Multigrid Methods (GMG): Solution of coarse grid problem: • use complete grid hierarchy with exact Global CG, MKL solution on coarsest grid level Meshwise strategies with 1 cell overlap • reasonable convergence rates and scalability properties • usable for structured and unstructured grids Next Generation Fire Engineering

  19. Numerical tests Comparison of solvers on different geometries Next Generation Fire Engineering

  20. 3 Basic test geometries Numerical Tests Cube - Cube + Cube without obstruction Cube with obstruction Cells per cube: 24 3 , 48 3 , 96 3 , 192 ³ , 240 ³ , 288 ³ • constant inflow of 1 m/s from the left, open outflow on the right • comparison of structured FFT(tol) versus unstructured MKL und ScaRC Next Generation Fire Engineering

  21. 3 Different mesh decompositions Numerical Tests 8-Mesh 64-Mesh 1-Mesh 1x1x1 2x2x2 4x4x4 • notations: Cube - (M) and Cube + (M) for corresponding M-mesh geometry • comparison of all solvers on both geometries for M=1, 8, 64 Next Generation Fire Engineering

  22. 3 Cube + (1): Velocity error Numerical Tests FFT(10 -2 ) FFT(10 -6 ) FFT(10 -16 ) Ø 1 pressure iteration Ø 3,5 pressure iterations Ø 30 pressure iterations 24 3 Cells, same simulation time and display range for all cases • velocity correction successfully reduces error along internal obstructions • number of pressure iterations increases if tolerance is driven to zero Next Generation Fire Engineering

  23. 3 Cube - (M) vs. Cube + (M): FFT(10 -6 ) 3 4 Numerical Tests Average of pressure iterations per time step for increasing M: Erfahrungen Number of meshes M Geometry 48 ³ cells 1 8 64 Cube - (M) 1 106 222 Cube + (M) 8 123 254 • increasing number of pressure iterations if number of meshes is increased • mesh decomposition causes higher rise than internal obstruction Next Generation Fire Engineering

  24. 3 Cube - (8) vs. Cube + (8): All solvers Numerical Tests Average time for 1 pressure solution: 48 3 cells FFT(tol): • extremely fast for coarse tol • increasing costs for finer tol Time(s) MKL: • best computing times (~ zero tol) ScaRC: • good computing times (~ zero tol) FFT(10 -2 ) FFT(10 -4 ) FFT(10 -6 ) MKL ScaRC Next Generation Fire Engineering

  25. 3 Cube + (8) vs. Cube + (64): All solvers Numerical Tests Average time for 1 pressure solution, growing problem size: M=8, 48 3 cells M=64, 96 3 cells Time(s) Time(s) 24 ³ cells per mesh Method Method scalability gets worse if number of meshes is increased at constant load Next Generation Fire Engineering

  26. 3 Cube + (8): Costs MKL-method Logarithmic scale !! Numerical Tests Storage x 396 High memory needs due to „fill-in“ LU has much more non-zeros than A x 164 Number of non-zeros (FFT/ScaRC: very less memory needs) x 64 Runtime x 29 Expensive initialization Example: 8 Meshes with 96 ³ cells • MKL-Init: ~ 5000 s • MKL-Solve: 17 s 24 ³ 48 ³ 96 ³ 192 ³ Number of cells per mesh FFT and ScaRC can solve finer problems than MKL on given ressources (Example: FFT und ScaRC run for 288 3 , MKL already fails for 240 ³ ) Next Generation Fire Engineering

  27. 3 Duct_Flow: Flow through a pipe 3 4 Numerical Tests Case from FDS Verification Guide: 8 Meshes, 128 ³ cells Erfahrungen Average time for Method 1 pressure solution FFT(10 -4 ) 41.3 s MKL 4.4 s ScaRC 7.5 s • comparison of structured FFT(tol) versus unstructured MKL and ScaRC • best times for MKL, reasonable times for ScaRC Next Generation Fire Engineering

  28. 3 Duct_Flow: Flow through a pipe 3 4 Numerical Tests FFT(10-4) MKL / ScaRC 8 Meshes, 64 3 Cells 8 Meshes, 64 3 Cells Erfahrungen • FFT(tol): velocity correction slow (tol=10 -4 needs ~1000 iterations) • MKL / ScaRC: zero velocity error along pipe walls Next Generation Fire Engineering

  29. Conclusions Summary and outlook Next Generation Fire Engineering

  30. 4 Summary and outlook 3 4 Conclusions Summary • no consistent overall picture yet, still more tests planned Erfahrungen • need to find a clever balance between: - accuracy (velocity error?) - performance (computational times for 1 Poisson solve?) - additional costs (storage, further libraries?) Outlook • test unstructured MKL and ScaRC: - to solve the implicit advection diffusion problem for scalars on the cut-cell region (IBM-method) - to solve the Laplace problem on the unstructured grid (as velocity correction) in combination with a structured FFT solution of the Poisson problem Next Generation Fire Engineering

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend