GMGPolar v2.0.0
Description
GMGPolar offers a taylored Geometric Multigrid solver for geometries described by curvilinear coordinates (in its simplest case, by polar coordinates). GMGPolar uses an implicit extrapolation scheme to raise the convergence order. For nonstandard finite elements, this result has been shown theoretically and for nine-point finite difference stars, we observed up to convergence order four in all numerical simulations. This extrapolation scheme can be used likewise for other domains described by tensor- or product-format meshes in 2D. For curvilinear domains, suited smoothing schemes have been developed and implemented. GMGPolar offers a matrix and matrix-free version for most of its operators. Its original application is on cross-sectional views of realistic Tokamak geometries for fusion plasma simulations.
Changes from v1.0.3 to v2.0.0
1) Enhancements and New Class Layout:
- Linear Algebra:
- Introduced custom Vector and SparseMatrix classes.
- Added a (cyclic) Tridiagonal Solver for improved performance and usability.
- Input Functions:
- Separated into distinct components: DomainGeometry, BoundaryConditions, SourceTerm, etc.
- Polar Grid:
- Indexing is now based on circle/radial smoother.
- Residual:
- Improved the residual calculation by addressing the unintuitive behavior that previously applied only to the interior part of the matrix. - Direct Solver:
- Fixed a bug where boundary values were not treated correctly.
- Built matrices to be symmetric, reducing factorization time.
- Smoother:
- Separated into extrapolated and standard smoothers.
- Replaced the LU-Decomposition algorithm with the Thomas algorithm for improved efficiency
2) New Features
- Introduced W- and F cycles for enhanced solving capabilities.
- Added FMG (Full Multigrid) to obtain improved starting solutions.
- Implemented advanced caching behavior options for the "Give" implementation strategy.
- Added a faster strategy named 'Take,' which is appropriate for cases where memory is less of a constraint, resulting in an 80% increase in memory usage.
- Comprehensive Unit Tests: Integrated Google Unit Tests for all classes, ensuring robust and reliable functionality across the codebase.
3) Performance Improvements
- Removed the task-based approach, which did not scale well with increasing parallelization.
- Sequential speed-up of 2, parallel speed-up of up to 10
- Reduced maximum usage by 61.5% by constructing symmetric matrices and utilizing the tridiagonal structure of smoother matrices.
4) Updated Features
- Added a new LU decomposition solver, allowing users to choose between MUMPS and the in-house solver for greater flexibility and performance.
Files
GMGPolar-2.0.0.zip
Files
(531.1 kB)
Name | Size | Download all |
---|---|---|
md5:d1615bde1f28cadddf45cecaadf981e1
|
531.1 kB | Preview Download |
Additional details
Related works
- Is described by
- Journal article: https://link.springer.com/article/10.1007/s10915-022-01802-1 (URL)
- Is identical to
- Software: https://github.com/mknaranja/GMGPolar/releases/tag/v2.0.0 (URL)
Dates
- Available
-
2025-04-24Completely refactored version 2.0
Software
- Repository URL
- https://github.com/SciCompMod/GMGPolar
- Programming language
- C++
References
- https://link.springer.com/article/10.1007/s10915-022-01802-1
- Leleux et al - Complexity analysis and scalability of a matrix-free extrapolated geometric multigrid solver for curvilinear coordinates representations from fusion plasma applications (Submitted, 2023)