arXiv Science⌕ Search

arXiv · 2611.40605

BioFluxHDG: a MATLAB Framework for Reaction-Diffusion-Chemotaxis Simulations on Two-Dimensional Domains

Abstract

We describe BioFluxHDG, a MATLAB framework for the simulation of reaction-diffusion-chemotaxis systems on two-dimensional polygonal domains by hybridizable discontinuous Galerkin (HDG) methods. A model is described as a list of diffusive species, each with a diffusion coefficient, chemotactic drifts and a reaction term, and of local species obeying pointwise ODEs; the element matrices, the linearization and the static condensation are generated from this description. The code supports the HDG schemes analyzed for the Keller--Segel system and for a Keller-Segel model of multiple sclerosis, Neumann, Dirichlet and Robin boundary conditions, implicit Euler and BDF2 time stepping with Picard or Newton linearization, an upwind stabilization of the chemotactic transport and a positivity limiter. We present the models, the discretization, the software architecture and numerical results: convergence tests, the finite-time blow-up of the Keller-Segel system, and demyelination patterns on a curved domain.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Silvia Bertoluzza, Micol Pennacchio. 2026-11-30. BioFluxHDG: a MATLAB Framework for Reaction-Diffusion-Chemotaxis Simulations on Two-Dimensional Domains. https://arxiv.science/abs/2611.40605

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Multiscaling in Wasserstein Spaces

We present a novel multiscale framework for analyzing sequences of probability measures in Wasserstein spaces over Euclidean domains. Exploiting the intrinsic geometry of optimal transport, we construct a multiscale transform applicable to both absolutely continuous and discrete measures. Central to our approach is a refinement operator based on McCann's interpolants, which preserves the geodesic structure of measure flows and serves as an upsampling mechanism. Building on this, we introduce the optimality number, a scalar that quantifies deviations of a sequence from Wasserstein geodesicity across scales, enabling the detection of irregular dynamics and anomalies. We establish key theoretical guarantees, including stability of the transform and geometric decay of coefficients, ensuring robustness and interpretability of the multiscale representation. Finally, we demonstrate the versatility of our methodology through numerical experiments: denoising and anomaly detection in Gaussian flows, analysis of point cloud dynamics under vector fields, and the multiscale characterization of neural network learning trajectories.

math.NA↗

Forward and backward error bounds for a mixed precision preconditioned conjugate gradient algorithm

The preconditioned conjugate gradient (PCG) algorithm is one of the most popular algorithms for solving large-scale linear systems $Ax = b$, where $A$ is a symmetric positive definite matrix. Rather than computing residuals directly, it updates the residual vectors recursively. Current analyses of the conjugate gradient (CG) algorithm in finite precision typically assume that the norm of the recursively updated residual goes orders of magnitude below the machine precision, focusing mainly on bounding the residual gap thereafter. This work introduces a framework for the PCG algorithm and provides rigorous proofs that the relative backward and forward errors of the computed results of PCG can reach the levels $O(u)$ and $O(u)κ(A)^{1/2}$, respectively, after a sufficient number of iterations without relying on an assumption concerning the norm of the recursively updated residual, where $u$ represents the unit roundoff and $κ(A)$ is the condition number of $A$. Our PCG framework further shows that applying preconditioners in low precision does not compromise the accuracy of the final results, provided that reasonable conditions are satisfied. Moreover, this framework introduces a new split PCG variant that improves upon the classical split PCG algorithm when the left preconditioner is applied in low precision. Our theoretical results are illustrated through a set of numerical experiments.

math.NA↗

A Semi-Discrete Optimal Transport Scheme for the Semi-Geostrophic Slice Compressible Model

We develop a semi-discrete optimal transport scheme for the compressible semi-geostrophic equations, a system that plays an important role in modelling large-scale atmospheric dynamics and frontogenesis. Unlike the incompressible case, the compressible equations involve variable density and internal energy, but can be recast into a variational framework that naturally couples the dynamics with an optimal transport formulation. This is done by a change to the so-called geostrophic coordinates, via a transformation inspired by the incompressible case. The discrete version of this variational formulation provides the basis for a numerical particle scheme. The implementation of this scheme presents considerable challenges, due to a non-quadratic cost function and parabolic $c$-Laguerre cells. To address these challenges, we use $c$-exponential charts to construct $c$-Laguerre tessellations efficiently, in which the cells become convex polygons. The time-continuous particle system conserves mass and energy, and the fully discrete scheme conserves them up to the time-discretisation error. We study the convergence of the scheme numerically, including a single-seed benchmark and error analysis. This work provides a significant new generalisation of existing semi-discrete optimal transport techniques, offering a robust and structure-preserving tool for simulating realistic atmospheric flows.

math.NA↗