kth.sePublications KTH
Change search
Link to record
Permanent link

Direct link
Publications (10 of 78) Show all publications
Du, S., Münsch, M., Jansson, N. & Schlatter, P. (2026). Assessment of the gradient jump penalisation in large-eddy simulations of turbulence. Acta Mechanica
Open this publication in new window or tab >>Assessment of the gradient jump penalisation in large-eddy simulations of turbulence
2026 (English)In: Acta Mechanica, ISSN 0001-5970, E-ISSN 1619-6937Article in journal (Refereed) Epub ahead of print
Abstract [en]

This research investigates the efficacy of the gradient jump penalisation (GJP) in large-eddy simulations (LES) when coupled with active subgrid-scale models. GJP is a stabilisation method tailored for the continuous Galerkin spectral element method, aiming at mitigating non-physical oscillations induced by discontinuous velocity gradients across element interfaces. We demonstrate that GJP effectively smoothens fields from LES without a salient impact on flow dynamics for the Taylor–Green vortex (TGV) at Re = 1600 , periodic hill flows at bulk Reynolds numbers Re b = 10 , 595 and 37,000, as well as turbulent channel flow at Re τ ≈ 550 . In the TGV case, the application of GJP results in decreased fluctuations at only high wavenumbers compared to simulations without GJP. The periodic hill flow simulations indicate the applicability of GJP in wall-resolved LES involving curved geometries, though it tends to dissipate some of the finer details in the solution. Finally, in the analysis of the canonical turbulent channel flow cases, GJP leads to a higher resolved turbulent kinetic energy than simulations without GJP and direct numerical simulations. GJP’s mechanism is identified as providing enhanced dissipation at high wavenumbers but accompanied with insufficient dissipation at low wavenumbers, leading to a pronounced spectral cut-off. Non-physical oscillations on element interfaces are reflected as spikes in the power spectral density. By evaluating the sharpness of the strongest spike, GJP is shown to smoothen the spectra, however, without completely removing the gradient jumps at low computational resolution.

Place, publisher, year, edition, pages
Springer Nature, 2026
National Category
Fluid Mechanics Computational Mathematics
Identifiers
urn:nbn:se:kth:diva-375361 (URN)10.1007/s00707-025-04607-z (DOI)001654939600001 ()2-s2.0-105026775830 (Scopus ID)
Funder
Swedish e‐Science Research Center, M3EU, Horizon Europe, 101093393
Note

QC 20260114

Available from: 2026-01-13 Created: 2026-01-13 Last updated: 2026-01-14Bibliographically approved
Karp, M., Stanly, R., Mukha, T., Galimberti, L., Toosi, S., Song, H., . . . Schlatter, P. (2026). Effects of lower floating-point precision on scale-resolving numerical simulations of turbulence. Journal of Computational Physics, 549, Article ID 114600.
Open this publication in new window or tab >>Effects of lower floating-point precision on scale-resolving numerical simulations of turbulence
Show others...
2026 (English)In: Journal of Computational Physics, ISSN 0021-9991, E-ISSN 1090-2716, Vol. 549, article id 114600Article in journal (Refereed) Published
Abstract [en]

Modern computing clusters offer specialized hardware for reduced-precision arithmetic, which can significantly speed up the time to solution. This is possible due to a decrease in data movement, as well as the ability to perform arithmetic operations at a faster rate. However, for high-fidelity simulations of turbulence, such as direct and large-eddy simulation, the impact of reduced precision on the computed solution and the resulting uncertainty across flow solvers and different flow cases has not been explored in detail, and limits the optimal utilization of new high-performance computing systems. In this work, the effect of reduced precision is studied using four diverse computational fluid dynamics (CFD) solvers (two incompressible, Neko and Simson, and two compressible, PadeLibs and SSDC) using four test cases: turbulent channel flow at Reτ=550 and higher, forced transition in a channel, flow over a cylinder at ReD=3900, and compressible flow over a wing section at Rec=50000. We observe that the flow physics are remarkably robust with respect to reductions in lower floating-point precision, and that often other forms of uncertainty, due to, for example, time averaging, often have a much larger impact on the computed result. Our results indicate that different terms in the Navier–Stokes equations can be computed to a lower floating-point accuracy without affecting the results. In particular, standard IEEE single precision can be used effectively for the entirety of the simulation, showing no significant discrepancies from double-precision results across the solvers and cases considered. Potential pitfalls are also discussed. 

Place, publisher, year, edition, pages
Elsevier BV, 2026
Keywords
Computational fluid dynamics, Direct numerical simulation, Floating-point precision, Turbulence
National Category
Fluid Mechanics Computational Mathematics Computer Sciences
Identifiers
urn:nbn:se:kth:diva-375324 (URN)10.1016/j.jcp.2025.114600 (DOI)001654296600002 ()2-s2.0-105025717580 (Scopus ID)
Note

Not duplicate with DiVA 2002138

QC 20260112

Available from: 2026-01-12 Created: 2026-01-12 Last updated: 2026-01-12Bibliographically approved
Chen, Y., de Oliveira Castro, P., Bientinesi, P., Jansson, N. & Iakymchuk, R. (2026). Enabling mixed-precision in spectral element codes. Future Generation Computer Systems, 174, Article ID 107990.
Open this publication in new window or tab >>Enabling mixed-precision in spectral element codes
Show others...
2026 (English)In: Future Generation Computer Systems, ISSN 0167-739X, E-ISSN 1872-7115, Vol. 174, article id 107990Article in journal (Refereed) Published
Abstract [en]

Mixed-precision computing has the potential to significantly reduce the cost of exascale computations, but determining when and how to implement it in programs can be challenging. In this article, we propose a methodology for enabling mixed-precision with the help of computer arithmetic tools, roofline model, and computer arithmetic techniques. As case studies, we consider Nekbone (Nek5000 developers), a mini-application for the Computational Fluid Dynamics (CFD) solver Nek5000 (Fischer et al.), and a modern Neko (Jansson et al., 2024) CFD application. With the help of the Verificarlo (Denis et al., 2016) tool and computer arithmetic techniques, we introduce a strategy to address stagnation issues in the preconditioned Conjugate Gradient method in Nekbone and apply these insights to implement a mixed-precision version of Neko. We evaluate the derived mixed-precision versions of these codes by combining metrics in three dimensions: accuracy, time-to-solution, and energy-to-solution. Notably, mixed-precision in Nekbone reduces time-to-solution by roughly 1.62x and energy-to-solution by 2.43x on MareNostrum 5, while in the real-world Neko application, the gain is up to 1.3x in both time and energy, with the accuracy that matches double-precision results.

Place, publisher, year, edition, pages
Elsevier BV, 2026
Keywords
Computer arithmetic tool, Conjugate gradient, Energy-to-solution, Mixed-precision, Neko, Roofline model, Verificarlo
National Category
Computer Sciences Computational Mathematics
Identifiers
urn:nbn:se:kth:diva-368935 (URN)10.1016/j.future.2025.107990 (DOI)001528005900003 ()2-s2.0-105009726439 (Scopus ID)
Note

QC 20250828

Available from: 2025-08-28 Created: 2025-08-28 Last updated: 2025-11-13Bibliographically approved
Jansson, N., Karp, M., Wahlgren, J., Markidis, S. & Schlatter, P. (2025). Design of Neko—A Scalable High‐Fidelity Simulation Framework With Extensive Accelerator Support. Concurrency and Computation, 37(2), Article ID e8340.
Open this publication in new window or tab >>Design of Neko—A Scalable High‐Fidelity Simulation Framework With Extensive Accelerator Support
Show others...
2025 (English)In: Concurrency and Computation, ISSN 1532-0626, E-ISSN 1532-0634, Vol. 37, no 2, article id e8340Article in journal (Refereed) Published
Abstract [en]

Recent trends and advancements in including more diverse and heterogeneous hardware in High-Performance Computing (HPC) are challenging scientific software developers in their pursuit of efficient numerical methods with sustained performance across a diverse set of platforms. As a result, researchers are today forced to re-factor their codes to leverage these powerful new heterogeneous systems. We present our design considerations of Neko—a portable framework for high-fidelity spectral element flow simulations. Unlike prior works, Neko adopts a modern object-oriented Fortran 2008 approach, allowing multi-tier abstractions of the solver stack and facilitating various hardware backends ranging from general-purpose processors, accelerators down to exotic vector processors and Field-Programmable Gate Arrays (FPGAs). Focusing on the performance and portability of Neko, we describe the framework's device abstraction layer managing device memory, data transfer and kernel launches from Fortran, allowing for a solver written in a hardware-neutral yet performant way. Accelerator-specific optimizations are also discussed, with auto-tuning of key kernels and various communication strategies using device-aware MPI. Finally, we present performance measurements on a wide range of computing platforms, including the EuroHPC pre-exascale system LUMI, where Neko achieves excellent parallel efficiency for a large direct numerical simulation (DNS) of turbulent fluid flow using up to 80% of the entire LUMI supercomputer.

Place, publisher, year, edition, pages
Wiley, 2025
National Category
Computational Mathematics Computer Sciences
Identifiers
urn:nbn:se:kth:diva-358042 (URN)10.1002/cpe.8340 (DOI)001387473600001 ()2-s2.0-85213688601 (Scopus ID)
Funder
Swedish Research Council, 2019‐04723Swedish e‐Science Research Center, SESSIEU, Horizon Europe, 101093393
Note

QC 20250122

Available from: 2025-01-03 Created: 2025-01-03 Last updated: 2025-01-22Bibliographically approved
Stanly, R., Bagheri, E., Peplinski, A., Toosi, S., Jansson, N., Mukha, T. & Schlatter, P. (2025). Direct numerical simulation of a starting rotorat Rec = 15000. Journal of Visualization
Open this publication in new window or tab >>Direct numerical simulation of a starting rotorat Rec = 15000
Show others...
2025 (English)In: Journal of Visualization, ISSN 1343-8875, E-ISSN 1875-8975Article in journal (Refereed) Epub ahead of print
Abstract [en]

Rotors play a major role in various applications including ventilation and propulsion systems such as in helicopters, drones, gas turbines and wind turbines. This visualization of instantaneous vortical structures (identified by the  criterion) shows complex flow structures emanating from a twisted drone rotor that is impulsively starting to rotate at 1600 rpm. Initially, a starting vortex is formed as a result of lift generation and shed as a connected vortex tube from the entire surface of the blade, which has a strong connection to the blade tip via the so-called tip vortex. Leading edge separation occurs at span positions of high twist, followed by wave-induced breakdown to turbulence along the whole wing span. This turbulence then sheds as small-scale vortices into the wake and dissipates. Understanding the behaviour of these vortices from such complex blades and how they interact with the other blade is critical to design more efficient and potentially more silent propellers. 

Place, publisher, year, edition, pages
Springer Nature, 2025
Keywords
Drone rotor, Adaptive mesh refinement, Spectral element method, Leading edge vortex, Tip vortex, Propeller
National Category
Fluid Mechanics
Identifiers
urn:nbn:se:kth:diva-371692 (URN)10.1007/s12650-025-01085-2 (DOI)001590961400001 ()2-s2.0-105018690007 (Scopus ID)
Funder
KTH Royal Institute of Technology
Note

QC 20251016

Available from: 2025-10-16 Created: 2025-10-16 Last updated: 2025-12-05Bibliographically approved
Andersson, M., Karp, M., Jansson, N. & Markidis, S. (2025). Portable High-Performance Kernel Generation for a Computational Fluid Dynamics Code with DaCe. In: Proceedings 31st European Conference on Parallel and Distributed Processing: Heteropar 202523RD International Workshop. Paper presented at 31st European Conference on Parallel and Distributed Processing, Dresden, Germany, August 25–29, 2025. Springer
Open this publication in new window or tab >>Portable High-Performance Kernel Generation for a Computational Fluid Dynamics Code with DaCe
2025 (English)In: Proceedings 31st European Conference on Parallel and Distributed Processing: Heteropar 202523RD International Workshop, Springer , 2025Conference paper, Published paper (Refereed)
Abstract [en]

With the emergence of new high-performance computing (HPC) accelerators, such as Nvidia and AMD GPUs, efficiently targeting diverse hardware architectures has become a major challenge for HPC application developers. The increasing hardware diversity in HPC systems often necessitates the development of architecture-specific code, hindering the sustainability of large-scale scientific applications. In this work, we leverage DaCe, a data-centric parallel programming framework, to automate the generation of high-performance kernels. DaCe enables automatic code generation for multicore processors and various accelerators, reducing the burden on developers who would otherwise need to rewrite code for each new architecture. Our study demonstrates DaCe's capabilities by applying its automatic code generation to a critical computational kernel used in Computational Fluid Dynamics (CFD). Specifically, we focus on Neko, a Fortran-based solver that employs the spectral-element method, which relies on small tensor operations. We detail the formulation of this computational kernel using DaCe's Stateful Dataflow Multigraph (SDFG) representation and discuss how this approach facilitates high-performance code generation. Additionally, we outline the workflow for seamlessly integrating DaCe's generated code into the Neko solver. Our results highlight the portability and performance of the generated code across multiple platforms, including Nvidia GH200, Nvidia A100, and AMD MI250X GPUs, with competitive performance results. By demonstrating the potential of automatic code generation, we emphasize the feasibility of using portable solutions to ensure the long-term sustainability of large-scale scientific applications. 

Place, publisher, year, edition, pages
Springer, 2025
National Category
Computer Sciences
Research subject
Computer Science
Identifiers
urn:nbn:se:kth:diva-368966 (URN)
Conference
31st European Conference on Parallel and Distributed Processing, Dresden, Germany, August 25–29, 2025
Note

QC 20251204

Available from: 2025-08-23 Created: 2025-08-23 Last updated: 2025-12-04Bibliographically approved
Massaro, D., Karp, M., Jansson, N., Markidis, S. & Schlatter, P. (2024). Direct numerical simulation of the turbulent flow around a Flettner rotor. Scientific Reports, 14(1), Article ID 3004.
Open this publication in new window or tab >>Direct numerical simulation of the turbulent flow around a Flettner rotor
Show others...
2024 (English)In: Scientific Reports, E-ISSN 2045-2322, Vol. 14, no 1, article id 3004Article in journal (Refereed) Published
Abstract [en]

The three-dimensional turbulent flow around a Flettner rotor, i.e. an engine-driven rotating cylinder in an atmospheric boundary layer, is studied via direct numerical simulations (DNS) for three different rotation speeds (α). This technology offers a sustainable alternative mainly for marine propulsion, underscoring the critical importance of comprehending the characteristics of such flow. In this study, we evaluate the aerodynamic loads produced by the rotor of height h, with a specific focus on the changes in lift and drag force along the vertical axis of the cylinder. Correspondingly, we observe that vortex shedding is inhibited at the highest α values investigated. However, in the case of intermediate α, vortices continue to be shed in the upper section of the cylinder (y/h>0.3). As the cylinder begins to rotate, a large-scale motion becomes apparent on the high-pressure side, close to the bottom wall. We offer both a qualitative and quantitative description of this motion, outlining its impact on the wake deflection. This finding is significant as it influences the rotor wake to an extent of approximately one hundred diameters downstream. In practical applications, this phenomenon could influence the performance of subsequent boats and have an impact on the cylinder drag, affecting its fuel consumption. This fundamental study, which investigates a limited yet significant (for DNS) Reynolds number and explores various spinning ratios, provides valuable insights into the complex flow around a Flettner rotor. The simulations were performed using a modern GPU-based spectral element method, leveraging the power of modern supercomputers towards fundamental engineering problems.

Place, publisher, year, edition, pages
Springer Nature, 2024
National Category
Fluid Mechanics
Identifiers
urn:nbn:se:kth:diva-344051 (URN)10.1038/s41598-024-53194-x (DOI)001158746700070 ()38321050 (PubMedID)2-s2.0-85184207516 (Scopus ID)
Funder
KTH Royal Institute of TechnologyKTH Royal Institute of Technology
Note

QC 20240301

Available from: 2024-02-29 Created: 2024-02-29 Last updated: 2025-12-08Bibliographically approved
Karp, M., Suarez, E., Meinke, J. H., Andersson, M. I., Schlatter, P., Markidis, S. & Jansson, N. (2024). Experience and analysis of scalable high-fidelity computational fluid dynamics on modular supercomputing architectures. The international journal of high performance computing applications
Open this publication in new window or tab >>Experience and analysis of scalable high-fidelity computational fluid dynamics on modular supercomputing architectures
Show others...
2024 (English)In: The international journal of high performance computing applications, ISSN 1094-3420, E-ISSN 1741-2846Article in journal (Refereed) Epub ahead of print
Abstract [en]

The never-ending computational demand from simulations of turbulence makes computational fluid dynamics (CFD) a prime application use case for current and future exascale systems. High-order finite element methods, such as the spectral element method, have been gaining traction as they offer high performance on both multicore CPUs and modern GPU-based accelerators. In this work, we assess how high-fidelity CFD using the spectral element method can exploit the modular supercomputing architecture at scale through domain partitioning, where the computational domain is split between a Booster module powered by GPUs and a Cluster module with conventional CPU nodes. We investigate several different flow cases and computer systems based on the Modular Supercomputing Architecture (MSA). We observe that for our simulations, the communication overhead and load balancing issues incurred by incorporating different computing architectures are seldom worthwhile, especially when I/O is also considered, but when the simulation at hand requires more than the combined global memory on the GPUs, utilizing additional CPUs to increase the available memory can be fruitful. We support our results with a simple performance model to assess when running across modules might be beneficial. As MSA is becoming more widespread and efforts to increase system utilization are growing more important our results give insight into when and how a monolithic application can utilize and spread out to more than one module and obtain a faster time to solution.

Place, publisher, year, edition, pages
SAGE Publications, 2024
National Category
Computer Sciences Computational Mathematics
Identifiers
urn:nbn:se:kth:diva-358044 (URN)10.1177/10943420241303163 (DOI)001366656300001 ()2-s2.0-85210745928 (Scopus ID)
Funder
Swedish Research Council, 2019-04723Swedish e‐Science Research Center, SESSIEU, Horizon 2020, 955606
Note

QC 20250116

Available from: 2025-01-03 Created: 2025-01-03 Last updated: 2025-03-20Bibliographically approved
Jansson, N., Karp, M., Markidis, S. & Schlatter, P. (2024). Neko: A Modern, Portable, and Scalable Framework for Extreme-Scale Computational Fluid Dynamics. In: 2024 IEEE International Conference on Cluster Computing workshops, cluster workshops 2024: . Paper presented at 2024 International Conference on Cluster Computing, September 24-27, 2024, Kobe, JAPAN (pp. 156-157). Institute of Electrical and Electronics Engineers (IEEE)
Open this publication in new window or tab >>Neko: A Modern, Portable, and Scalable Framework for Extreme-Scale Computational Fluid Dynamics
2024 (English)In: 2024 IEEE International Conference on Cluster Computing workshops, cluster workshops 2024, Institute of Electrical and Electronics Engineers (IEEE) , 2024, p. 156-157Conference paper, Published paper (Refereed)
Abstract [en]

Recent trends and advancements in including more diverse and heterogeneous hardware in High-Performance Computing are challenging scientific software developers in their pursuit of good performance and efficient numerical methods. As a result, the well-known maxim "software outlives hardware" may no longer necessarily hold true, and researchers are today forced to re-factor their codes to leverage these powerful new heterogeneous systems. We present Neko - a portable framework for high-fidelity spectral element flow simulations. Unlike prior works, Neko adopts a modern object-oriented Fortran 2008 approach, allowing multi-tier abstractions of the solver stack and facilitating various hardware backends ranging from general-purpose processors, accelerators down to exotic vector processors and Field Programmable Gate Arrays (FPGAs) via Neko's device abstraction layer. Focusing on Neko's performance and exascale readiness, we outline the optimisation and algorithmic work necessary to ensure scalability and performance portability across a wide range of platforms. Finally, we present performance measurements on a wide range of accelerated computing platforms, including the EuroHPC pre-exascale system LUMI and Leonardo, where Neko achieves excellent parallel efficiency for an extreme-scale direct numerical simulation (DNS) of turbulent thermal convection using up to 80% of the entire LUMI supercomputer.

Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers (IEEE), 2024
Keywords
Accelerators, Spectral element method, Direct numerical simulation
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-361618 (URN)10.1109/CLUSTERWorkshops61563.2024.00036 (DOI)001422214200025 ()2-s2.0-85211790427 (Scopus ID)
Conference
2024 International Conference on Cluster Computing, September 24-27, 2024, Kobe, JAPAN
Note

QC 20250326

Available from: 2025-03-26 Created: 2025-03-26 Last updated: 2025-03-27Bibliographically approved
Jansson, N., Karp, M., Podobas, A., Markidis, S. & Schlatter, P. (2024). Neko: A modern, portable, and scalable framework for high-fidelity computational fluid dynamics. Computers & Fluids, 275, 106243-106243, Article ID 106243.
Open this publication in new window or tab >>Neko: A modern, portable, and scalable framework for high-fidelity computational fluid dynamics
Show others...
2024 (English)In: Computers & Fluids, ISSN 0045-7930, E-ISSN 1879-0747, Vol. 275, p. 106243-106243, article id 106243Article in journal (Refereed) Published
Abstract [en]

Computational fluid dynamics (CFD), in particular applied to turbulent flows, is a research area with great engineering and fundamental physical interest. However, already at moderately high Reynolds numbers the computational cost becomes prohibitive as the range of active spatial and temporal scales is quickly widening. Specifically scale-resolving simulations, including large-eddy simulation (LES) and direct numerical simulations (DNS), thus need to rely on modern efficient numerical methods and corresponding software implementations. Recent trends and advancements, including more diverse and heterogeneous hardware in High-Performance Computing (HPC), are challenging software developers in their pursuit for good performance and numerical stability. The well-known maxim “software outlives hardware” may no longer necessarily hold true, and developers are today forced to re-factor their codebases to leverage these powerful new systems. In this paper, we present Neko, a new portable framework for high-order spectral element discretization, targeting turbulent flows in moderately complex geometries. Neko is fully available as open software. Unlike prior works, Neko adopts a modern object-oriented approach in Fortran 2008, allowing multi-tier abstractions of the solver stack and facilitating hardware backends ranging from general-purpose processors (CPUs) down to exotic vector processors and FPGAs. We show that Neko’s performance and accuracy are comparable to NekRS, and thus on-par with Nek5000’s successor on modern CPU machines. Furthermore, we develop a performance model, which we use to discuss challenges and opportunities for high-order solvers on emerging hardware

Place, publisher, year, edition, pages
Elsevier BV, 2024
National Category
Fluid Mechanics Computational Mathematics Computer Sciences
Identifiers
urn:nbn:se:kth:diva-344896 (URN)10.1016/j.compfluid.2024.106243 (DOI)001216304000001 ()2-s2.0-85189508362 (Scopus ID)
Funder
Swedish Research Council, 2019-04723EU, Horizon 2020, 823691EU, Horizon 2020, 801039
Note

QC 20240403

Available from: 2024-04-02 Created: 2024-04-02 Last updated: 2025-12-05Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0002-5020-1631

Search in DiVA

Show all publications