Bergner & Spichtinger 2026 model

After mixed success with the Berton 2023 model, I looked around for a different low-dimensional cloud model to play with, and found Bergner and Spichtinger (2026) Bergner, Hannah, and Peter Spichtinger. 2026. “Ice Clouds as Nonlinear Oscillators.” Chaos: An Interdisciplinary Journal of Nonlinear Science 36 (4): 043115. https://doi.org/10.1063/5.0297531. . This paper introduces a different cloud model and then does a range of dynamical systems investigations on it. This seemed like a good vehicle to explore some of the numerical continuation tools I’ve been looking at. I’m going to start off by replicating the results in the paper using custom Python continuation code (as was used for the Berton 2023 model earlier), AUTO (which didn’t work so well for Berton 2023) and the Trilinos LOCA package. LOCA is a C++ package intended for performing this kind of analysis on very large systems, and I’ve never had the patience to get it set up, because it’s quite complicated. Getting the agent to show me how to use it on a real but small problem seems like a good way to go.

The first thing I did was to refine the extract-model model skill I developed for the Berton 2023 model a little, and to use that to produce a Python implementation of the core model in the Bergner & Spichtinger paper. This is a 2-moment model for the ice-particle number concentration nn and the ice mass concentration qq, with an additional equation for the saturation ratio ss. The model extraction worked very well here. There were a couple of ambiguous interpretations of things in the paper, where the authors said something like “one could do …” and the agent wasn’t sure whether or not it should do the thing, and there was one expression it couldn’t OCR with high confidence, but apart from that, everything went smoothly.

I’ve set things up in a new repository following the same “episode”-based approach that I used for the Berton 2023 analysis, because that seems to work quite well for this kind of semi-structured research activity.

I validated the model implementation by getting the agent to reproduce Figure 4 from the paper, which has time series of some model trajectories for selected environmental conditions, spanning a range of updraft velocities where the model displays different behaviors: for sufficiently weak and sufficiently strong updrafts, the model has a stable equilibrium, while for intermediate updraft strengths, there is what appears to be a stable limit cycle.

Qualitative Figure 4-style trajectories generated from the website data exported from the episode code. The selectors switch quantity and vertical velocity. (Environmental/control parameters: T=225 KT = 225 \,\mathrm{K}, p=300 hPap = 300 \,\mathrm{hPa}, F=1F = 1, w∈{0.01,0.1,1.0} m s−1w \in \{0.01, 0.1, 1.0\} \,\mathrm{m\ s^{-1}}.)

This isn’t any kind of strict validation of the implementation, just some indication that the Python code produced by the agent is a fairly good match to the model in the paper. We’ll be validating aspects of the implementation more strictly as we go on.