Searcharxiv⌕ Search

arXiv subjects

Halvor Møll Nilsen

Publications and source records attributed to Halvor Møll Nilsen.

5 recordsLinked to original sources

BattMo -- Battery Modelling Toolbox

This paper presents the Battery Modelling Toolbox (BattMo), a flexible finite volume continuum modelling framework in MATLAB\textsuperscript{\textregistered} (\citeproc{ref-MATLAB}{The MathWorks Inc., 2025}) for simulating the performance of electro-chemical cells. BattMo can quickly setup and solve models for a variety of battery chemistries, even considering 3D designs such as cylindrical and prismatic cells. The simulation input parameters, including the material parameters and geometric descriptions, are specified through JSON schemas. In this respect, we follow the guidelines of the Battery Interface Ontology (BattINFO) to support semantic interoperability in accordance with the FAIR principles (\citeproc{ref-fair}{Wilkinson et al., 2016}). The Doyle-Fuller-Newman (DFN) (\citeproc{ref-Doyle1993ModelingCell}{Doyle et al., 1993}) approach is used as a base model. We include fully coupled thermal simulations. It is possible to include degradation mechanisms such as SEI layer growth, and the use of composite material, such as a mixture of Silicon and graphite. The models are setup in a hierarchical way, for clarity and modularity. Each model corresponds to a computational graph, which introduces a set of variables (the nodes) and functional relationship (the edges). This design enables the flexibility for changing and designing new models. The solver in BattMo uses automatic differentiation and support adjoint computation. We can therefore compute the derivative of objective functions with respect to all parameters efficiently. Gradient-based optimization routines can be used to calibrate parameters from experimental data.

physics.comp-ph↗

Constrained mixers for the quantum approximate optimization algorithm

The quantum approximate optimization algorithm/quantum alternating operator ansatz (QAOA) is a heuristic to find approximate solutions of combinatorial optimization problems. Most literature is limited to quadratic problems without constraints. However, many practically relevant optimization problems do have (hard) constraints that need to be fulfilled. In this article, we present a framework for constructing mixing operators that restrict the evolution to a subspace of the full Hilbert space given by these constraints; We generalize the "XY"-mixer designed to preserve the subspace of "one-hot" states to the general case of subspaces given by a number of computational basis states. We expose the underlying mathematical structure which reveals more of how mixers work and how one can minimize their cost in terms of number of CX gates, particularly when Trotterization is taken into account. Our analysis also leads to valid Trotterizations for "XY"-mixer with fewer CX gates than is known to date. In view of practical implementations, we also describe algorithms for efficient decomposition into basis gates. Several examples of more general cases are presented and analyzed.

quant-ph↗

Using flow models with sensitivities to study cost efficient monitoring programs of co2 storage sites

A key part of planning CO2 storage sites is to devise a monitoring strategy. The aim of this strategy is to fulfill the requirements of legislations and lower cost of the operation by avoiding operational problems. If CCS is going to be a widespread technology to deliver energy without CO2 emissions, cost-efficient monitoring programs will be a key to reduce the storage costs. A simulation framework, previously used to estimate flow parameters at Sleipner Layer 9 [1], is here extended and employed to identify how the number of measurements can be reduced without significantly reducing the obtained information. The main part of the methodology is based on well-proven, stable and robust, simulation technology together with adjoint-based sensitivities and data mining techniques using singular value decomposition (SVD). In particular we combine the simulation framework with time-dependent (seismic) measurements of the migrating plume. We also study how uplift data and gravitational data give complementary information. We apply this methodology to the Sleipner project, which provides the most extensive data for CO2 storage to date. For this study we utilize a vertical-equilibrium (VE) flow model for computational efficiency as implemented in the open-source software MRST-co2lab. However, our methodology for deriving efficient monitoring schemes is not restricted to VE-type flow models, and at the end, we discuss how the methodology can be used in the context of full 3D simulations.

physics.geo-ph↗

Multiresolution Coupled Vertical Equilibrium Model for Fast Flexible Simulation of CO$_2$ Storage

CO2 capture and storage is an important technology for mitigating climate change. Design of efficient strategies for safe, long-term storage requires the capability to efficiently simulate processes taking place on very different temporal and spatial scales. The physical laws describing CO2 storage are the same as for hydrocarbon recovery, but the characteristic spatial and temporal scales are quite different. Petroleum reservoirs seldom extend more than tens of kilometers and have operational horizons spanning decades. Injected CO2 needs to be safely contained for hundreds or thousands of years, during which it can migrate hundreds or thousands of kilometers. Because of the vast scales involved, conventional 3D reservoir simulation quickly becomes computationally unfeasible. Large density difference between injected CO2 and resident brine means that vertical segregation will take place relatively quickly, and depth-integrated models assuming vertical equilibrium (VE) often represents a better strategy to simulate long-term migration of CO2 in large-scale aquifer systems. VE models have primarily been formulated for relatively simple rock formations and have not been coupled to 3D simulation in a uniform way. In particular, known VE simulations have not been applied to models of realistic geology in which many flow compartments may exist in-between impermeable layers. In this paper, we generalize the concept of VE models, formulated in terms of well-proven reservoir simulation technology, to complex aquifer systems with multiple layers and regions. We also introduce novel formulations for multi-layered VE models by use of both direct spill and diffuse leakage between individual layers. This new layered 3D model is then coupled to a state-of-the-art, 3D black-oil type model.

physics.comp-ph↗

Combining the Modified Discrete Element Method with the Virtual Element Method for Fracturing of Porous Media

Simulation of fracturing processes in porous rocks can be divided into two main branches: (i) modeling the rock as a continuum which is enhanced with special features to account for fractures, or (ii) modeling the rock by a discrete (or discontinuous) approach that describes the material directly as a collection of separate blocks or particles, e.g., as in the discrete element method (DEM). In the modified discrete element (MDEM) method, the effective forces between virtual particles are modified in all regions, without failing elements, so that they reproduce the discretization of a first order finite element method (FEM) for linear elasticity. This provides an expression of the virtual forces in terms of general Hook's macro-parameters. Previously, MDEM has been formulated through an analogy with linear elements for FEM. We show the connection between MDEM and the virtual element method (VEM), which is a generalization of FEM to polyhedral grids. Unlike standard FEM, which computes strain-states in a reference space, MDEM and VEM compute stress-states directly in real space. This connection leads us to a new derivation of the MDEM method. Moreover, it gives the basis for coupling (M)DEM to domain with linear elasticity described by polyhedral grids, which makes it easier to apply realistic boundary conditions in hydraulic-fracturing simulations. This approach also makes it possible to combine fine-scale (M)DEM behavior near the fracturing region with linear elasticity on complex reservoir grids in the far-field region without regridding. To demonstrate the simulation of hydraulic fracturing, the coupled (M)DEM-VEM method is implemented using the Matlab Reservoir Simulation Toolbox (MRST) and linked to an industry-standard reservoir simulator.

math.NA↗