We present a mixed finite element solver for the linearized regularized 13-moment equations of non-equilibrium gas dynamics. The Python implementation builds upon the software tools provided by the FEniCS computing platform. We describe a new tensorial approach utilizing the extension capabilities of FEniCS’ Unified Form Language to define required differential operators for tensors above second degree. The presented solver serves as an example for implementing tensorial variational formulations in FEniCS, for which the documentation and literature seem to be very sparse. Using the software abstraction levels provided by the Unified Form Language allows an almost one-to-one correspondence between the underlying mathematics and the resulting source code. Test cases support the correctness of the proposed method using validation with exact solutions. To justify the usage of extended gas flow models, we discuss typical application cases involving rarefaction effects. We provide the documented and validated solver publicly.
20 December 2025 in Journal of Computational Physics
This paper provides a provably quasi-optimal preconditioning strategy of the linear Schrödinger eigenvalue problem with periodic potentials for a possibly nonuniform spatial expansion of the domain. The quasi-optimality is achieved by having the iterative eigenvalue algorithms converge in a constant number of iterations for different domain sizes. In the analysis, we derive an analytic factorization of the spectrum and asymptotically describe it using concepts from the homogenization theory. This decomposition allows us to express the eigenpair as an easy-to-calculate cell problem solution combined with an asymptotically vanishing remainder. We then prove that the easy-to-calculate limit eigenvalue can be used in a shift-and-invert preconditioning strategy to bound the number of eigensolver iterations uniformly. Several numerical examples illustrate the effectiveness of this quasi-optimal preconditioning strategy.
This study investigates numerically the thermal boundary conditions effects on natural convection and entropy generation in non-Newtonian power-law fluids confined within a square cavity and a concentric cylindrical annulus. Steady, two-dimensional governing equations based on the incompressible power-law model and the Boussinesq approximation are solved using the Gridap.jl finite element framework. The numerical methodology is validated against benchmark solutions for both Newtonian and non-Newtonian convection, showing good agreement in terms of isotherm fields, streamlines, local Nusselt number distributions, and entropy generation. The effects of fluid rheology and heating mode are examined for shear-thinning, Newtonian, and shear-thickening fluids under uniform and non-uniform thermal boundary conditions. The results show that shear-thinning behavior enhances buoyancy-driven circulation, steepens thermal gradients, and increases heat transfer, whereas shear-thickening behavior suppresses convection and promotes conduction-dominated transport. Thermal boundary conditions are found to play an important role in controlling the intensity and spatial distribution of flow, heat transfer, and irreversibility. In both geometries, uniform heating produces stronger and more distributed convective structures, while non-uniform sinusoidal heating localizes thermal forcing and consistently reduces total entropy generation. An entropy analysis further reveals that viscous dissipation dominates irreversibility in shear-thinning fluids, whereas heat-transfer irreversibility becomes dominant as the power-law index increases. The study demonstrates that appropriate thermal boundary design, together with fluid rheology, provides an effective route for controlling heat transfer and minimizing thermodynamic losses in non-Newtonian convection systems. The source code and metadata are publicly available.
4 September 2026 in SIAM Journal on Applied Mathematics
In this paper, we finally prove the well-posedness of the linearized R13 moment model, which describes, e.g., rarefied gas flows. As an extension of the classical fluid equations, moment models are robust and have been frequently used, yet they are challenging to analyze due to their additional equations. By effectively grouping variables, we identify a 2-by-2 block structure, allowing us to analyze well-posedness within the abstract LBB framework for saddle point problems. Due to the unique tensorial structure of the equations, in addition to an interesting combination of tools from Stokes’ and linear elasticity theory, we also need new coercivity estimates for tensor fields. These Korn-type inequalities are established by analyzing the symbol map of the symmetric and trace-free part of tensor derivative fields. Together with the corresponding right inverse of the tensorial divergence, we obtain the existence and uniqueness of weak solutions. This result also serves as the basis for future numerical analysis of corresponding discretization schemes.
1 October 2024 in SIAM Journal on Scientific Computing
Accelerating iterative eigenvalue algorithms is often achieved by employing a spectral shifting strategy. Unfortunately, improved shifting typically leads to a smaller eigenvalue for the resulting shifted operator, which in turn results in a high condition number of the underlying solution matrix, posing a major challenge for iterative linear solvers. This paper introduces a two-level domain decomposition preconditioner that addresses this issue for the linear Schrödinger eigenvalue problem, even in the presence of a vanishing eigenvalue gap in nonuniform, expanding domains. Since the quasi-optimal shift, which is already available as the solution to a spectral cell problem, is required for the eigenvalue solver, it is logical to also use its associated eigenfunction as a generator to construct a coarse space. We analyze the resulting two-level additive Schwarz preconditioner and obtain a condition number bound that is independent of the domain’s anisotropy, despite the need for only one basis function per subdomain for the coarse solver. Several numerical examples are presented to illustrate its flexibility and efficiency. Reproducibility of computational results. This paper has been awarded the “SIAM Reproducibility Badge: Code and data available” as a recognition that the authors have followed reproducibility principles valued by SISC and the scientific computing community. Code and data that allow readers to reproduce the results in this paper are available at https://doi.org/10.5281/zenodo.11072863 . [Formula: see text]