arXiv Science⌕ Search

arXiv · 2610.36189

QMOMKit: A C++ library for quadrature-based moment methods

Abstract

QMOMKit is an open-source C++ library for the phase-space evolution of population balance equations with quadrature-based moment methods. The present version implements the quadrature method of moments (QMOM) and the conditional quadrature method of moments (CQMOM). QMOMKit is designed to be independent of any particular application and can be used either as a standalone solver for spatially homogeneous population models or as a local phase-space solver coupled to a host application. It handles the numerical aspects of the evolution of a population in phase space, including quadrature reconstruction, advection of the quadrature abscissas, and changes to the population through moment sources and phase-space boundary contributions. The number of quadrature nodes is adapted to what the supplied moments support, subject to prescribed bounds of the phase-space coordinates, and the CQMOM implementation supports an arbitrary number of phase-space dimensions as well as any conditioning order. The principal numerical algorithms of QMOMKit are verified against analytical and manufactured solutions. Standalone spatially homogeneous applications, ranging from aerosol evaporation to particle dynamics and fragmentation, are compared with Monte Carlo solutions of the same population models, while coupling examples with OpenFOAM and deal.II demonstrate how QMOMKit can be embedded in finite-volume and discontinuous-Galerkin simulation frameworks. Together, these capabilities provide a tested and reusable foundation for a wide range of population-balance problems, and a basis for extending QMOMKit to other quadrature-based moment methods.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Fabian Denner, Bruna Campos, Bruno Blais. 2026-10-26. QMOMKit: A C++ library for quadrature-based moment methods. https://arxiv.org/abs/2610.36189

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

A neural accelerated roughness-resolved Discrete Element Method (Rough-DEM) for modeling granular systems

The Discrete Element Method (DEM) is an indispensable tool for modeling and understanding the basic mechanical behaviors of (dry) granular media, a class of disordered material systems of significant interest to multiple scientific domains from (geo-)physics to (chemical) engineering. At the core of all present DEM frameworks is a phenomenological friction law--commonly chosen to be of the Amontons-Coulomb type--that models the frictional interaction among constituent grains. Here, inspired by research in the tribology community, we present an alternative, fundamentally different framework, termed roughness-resolved DEM (Rough-DEM), in which contact friction is handled in a more physics-based manner. In this framework, instead of using a friction law, we explicitly resolve the surface topography of each grain and let friction emerge from collective frictionless interactions of surface asperities. In essence, we trade phenomenology for physics at the cost of an increased computational demand. To mitigate the cost, we introduce an FE$^2$-like algorithm and a feature-wise linear modulation (FiLM)-based neural network surrogate, both of which are parallelized on GPU to accelerate contact computation. Crucially, using this framework in 2D, we (1) demonstrate the possibility of recovering a two-body-based Amontons-Coulomb-type friction behavior using a \textit{simple} representation of surface topography, and (2) identify many-body-based frictional behaviors--more specifically, the angle of repose values--that \textit{cannot always} be captured by current DEM frameworks under the same level of model complexity. We conclude by discussing future directions for Rough-DEM, as well as exciting new opportunities it could unlock for a wide range of emerging applications, including (designing) suspension rheology and metamaterial mechanics.

physics.comp-ph↗

Physics-Informed Neural Networks for coupled stiff transport systems

Physics-Informed Neural Networks (PINN) struggle with stiff, regime-changing transport equations due to instability, loss imbalance, and violations of physical consistency. This paper investigates these failures through the Marshak wave equations, a canonical benchmark from radiative transport, where initial and boundary conditions differ by up to 12 orders of magnitude, and proposes modifications to the standard PINN framework to overcome them. Three modifications are introduced: a ScaledSigmoid final activation enforcing physical bounds and positivity of the unknowns; a logarithmic MSE loss replacing the standard quadratic loss for initial and boundary conditions, enabling training across extreme scale disparities; and explicit enforcement of global conservation laws as an additional physics loss term. Monte Carlo sampling with exponential time weighting is used throughout. The proposed framework recovers the Marshak wave dynamics - including the hot, cold, and wave-front regions - in good agreement with a reference Implicit Monte Carlo solution (sub-millimeter absolute error on the front position, although the relative error remains substantial at early times), with run times under 5 minutes. Ablation studies confirm that each ingredient is essential: linear activation, absence of the logarithmic loss, or removal of the PDE term each independently cause the method to fail qualitatively. This work identifies and resolves three concrete failure modes of standard PINN on stiff hyperbolic systems with nonlinear coupling. The combination of bounded activations, scale-aware loss functions, and conservation law enforcement constitutes a framework validated on the present one-dimensional Marshak wave problem, with potential extension to other coupled stiff transport systems in engineering.

physics.comp-ph↗

Towards Exact Multidimensional Fluxes: A Structure-Preserving Data-Informed Framework for Riemann Solvers

Finite-volume and discontinuous Galerkin methods update cells using the space-time flux integral over their faces, which typically depends on the solutions to local Riemann problems. In the multidimensional Riemann problem setting, this integral is difficult to evaluate exactly because of complex wave interactions. In this work, we show that the exact space-time flux integral is a polynomial in the time step and face dimensions. This motivates a learning-based approach, as only the mapping from the initial states to the polynomial coefficients needs to be learned. We propose a structure-preserving, data-informed Riemann solver framework that uses a neural network trained on high-resolution simulation data to learn this mapping. Key structural properties, including consistency and symmetry, are enforced by construction. Provided that the high-resolution simulations converge to the exact flux integrals and the network accurately predicts the coefficients, this framework yields near-exact flux integrals for use in numerical simulations. We demonstrate the framework using classical implosion and explosion problems for the two-dimensional Euler equations. In an unsplit MUSCL-Hancock scheme, the learned Riemann solver remains stable at a CFL number of 0.9, whereas the same scheme using the exact one-dimensional Riemann solver fails. Compared with the latter scheme at CFL=0.45, the learned scheme is slightly more accurate and requires approximately 30% less computational time.

physics.comp-ph↗