CGSim: Two-Fluid Cold Gas Subgrid Model
- CGSim is a two-fluid subgrid model that represents unresolved cold circumgalactic gas as a co-spatial fluid, facilitating realistic mass, momentum, and energy exchanges with the hot phase.
- It addresses the critical scale separation between galactic halos and sub-pc cold cloudlets by providing a gradual and physically motivated transition from hot to cold gas in simulations.
- The modular design of CGSim enables the integration of additional physics, such as turbulence and magnetic fields, thereby improving the accuracy of cold gas representations in cosmological studies.
Searching arXiv for the cited papers to ground the article. CGSim most explicitly denotes the Cold Gas Subgrid Model (CGSM), a two-fluid subgrid framework for modeling unresolved cold circumgalactic medium (CGM) gas in galaxy simulations. In that formulation, the cold phase at is represented not as resolved clumps but as a co-spatial subgrid fluid coupled to the ordinary hydrodynamic gas through mass, momentum, and energy exchange. The framework is motivated by the severe scale separation between galactic halos and the sub-pc to pc cloudlet scales that govern cold-gas survival, destruction, and condensation, and it is intended to recover the qualitative behavior of unresolved cold CGM physics more faithfully than standard underresolved hydrodynamics (Butsky et al., 2024).
1. Definition and terminological scope
Within the supplied literature, CGSim refers most directly to the CGSM / CGSim concept: a two-fluid subgrid model for unresolved cold CGM gas. The model evolves the normal resolved gas with hydrodynamics and a subgrid cold phase by tracking its total mass density and bulk momentum, while deriving unresolved cloudlet properties from the resolved phase under pressure equilibrium and a cooling-length-based cloud-size prescription (Butsky et al., 2024).
A central point is that CGSim in this sense is not a particle-based cloud tracker and not a direct high-resolution simulation of individual cold structures. The model explicitly does not track individual clouds. Instead, it evolves the cell-averaged mass density of all unresolved cold gas in a cell, denoted , together with the bulk velocity of that unresolved component. This distinction matters because the framework is designed to represent an unresolved multiphase medium statistically rather than geometrically.
The term can also be confused with unrelated simulation frameworks in other subfields. In geostatistics, CCWSIM is a wavelet-accelerated extension of CCSIM for categorical multiple-point geostatistical simulation; it is described as being in the same family as CCSIM and MS-CCSIM and is not a separate CGSim implementation (Bavandsavadkoohi et al., 2024). In graphics hardware, 3DGauCIM concerns acceleration of static and dynamic 3D Gaussian splatting on edge devices and is relevant only in the broader sense of simulation/rendering acceleration rather than as a cold-gas CGSim framework (Huang et al., 25 Jul 2025). This suggests that, in astrophysical usage, CGSim is best interpreted as shorthand for the CGSM-style cold-gas subgrid approach.
2. Astrophysical motivation and scale separation
The core motivation for CGSim is that cold CGM gas is both astrophysically important and numerically underresolved. The cold component of the CGM is described as a major reservoir in the galactic baryon cycle: it can be accreted onto galaxies and fuel star formation, ejected in winds, and mix with hot halo gas. The supplied account states that cold gas is seen around dwarf, , and massive galaxies, and may account for of baryons in galaxies and up to in dwarfs (Butsky et al., 2024).
The numerical obstacle is the mismatch between physically relevant cold-cloud scales and practical halo-resolution scales. The characteristic size of cold CGM cloudlets is estimated to be pc, with observations suggesting structures perhaps as small as pc or below, whereas galaxy-scale cosmological simulations typically resolve the CGM only to pc to kpc scales. The paper further notes that resolving an 0 halo out to 1 kpc at parsec resolution would require 2 million times more voxels than state-of-the-art cosmological runs (Butsky et al., 2024).
Standard underresolved hydrodynamics then produces specific pathologies. Cold clouds become artificially one-cell objects; their sizes are set by the grid rather than by the underlying microphysics; cloud destruction and growth times become too long; and the spatial distribution of cold gas becomes qualitatively wrong. CGSim is introduced precisely to avoid forcing all thermodynamic complexity into a single resolved thermal phase when the relevant cold structures are far below the grid scale.
3. Two-fluid formulation
CGSim treats the gas as two coupled components: a resolved “hot” gas fluid and an unresolved cold gas fluid. The resolved fluid is the standard hydrodynamic gas, characterized by density 3, velocity 4, energy density 5, and pressure 6. In the uncoupled presentation, its equations are written as
7
8
9
The cold phase represents unresolved cold cloudlets embedded in the hot medium. Three assumptions organize the closure. First, the cloudlets satisfy 0. Second, the cold phase is effectively pressureless as a bulk fluid on resolved scales. Third, it is assigned a fixed temperature, usually
1
The dynamically evolved cold-fluid variables are the total mass density 2 and the bulk velocity 3. The quantity 4 is explicitly not the physical density inside an individual cloudlet; it is the cell-averaged mass density of all unresolved cold gas in that cell. This choice separates macroscopic transport from unresolved internal cloud structure and allows partial cold mass fractions within a single resolution element.
4. Derived cloudlet properties and exchange operators
The unresolved cloudlets are not evolved individually; their physical properties are inferred from the resolved hot phase. The construction assumes thermal pressure equilibrium between phases, so the cold cloudlet density is set by the hot-cell pressure and the assumed cold temperature. The cloudlet radius follows the “mist” picture of CGM cold gas,
5
evaluated at the cooling-function peak temperature 6: 7 Here
8
and 9 is determined from the resolved thermodynamic state and the radiative cooling rate. Once 0 is known, a characteristic cloudlet mass is assigned through
1
and the number of unresolved cloudlets in a cell is obtained from the total cold mass via
2
The coupled mass equations are written as
3
4
A positive 5 transfers mass from hot to cold; a negative value transfers mass from cold to hot.
The momentum equations add both mixing and drag: 6
7
The mixing momentum term assigns donor-phase momentum to transferred mass: 8 The drag term is
9
with
0
Because the cold phase is kept at fixed 1, its internal energy is not separately evolved. The hot-phase energy equation becomes
2
with
3
In physical terms, mixing removes thermal energy from the hot phase, while drag converts relative bulk motion into heat.
5. Thermal instability, cloud crushing, and timestep control
CGSim includes two explicit exchange channels: thermal instability and cloud crushing / cloud-wind interactions. Thermal instability is implemented by identifying cells that satisfy three conditions at a timestep: 4, 5, and radiative cooling would reduce the cell’s energy, 6 (Butsky et al., 2024). If these conditions are not met, the cell cools or heats normally.
When the instability criteria are satisfied, the model converts the energy that would be radiated away into cold-gas mass while conserving energy: 7 Solving for the mass transfer yields
8
Since 9, the transfer is positive and thermal instability moves mass only from hot to cold.
The second exchange channel adopts a cloud-crushing prescription from Fielding et al. (2022): 0 The associated control parameters are
1
with 2 if 3, and 4 otherwise. In the intended interpretation, rapidly cooling mixed gas can cause the cloud to grow by accreting mixed material; otherwise the cloud is destroyed. A plausible implication is that CGSim is designed to represent both condensation-dominated and ablation-dominated regimes within a single closure hierarchy.
The timestep is additionally constrained by drag coupling, following Laibe & Price-style two-fluid methods: 5 The supplied description notes that the excerpt is truncated, but the intended purpose is explicit: the method imposes a drag-related timestep limit so that the two-fluid coupling remains numerically stable.
6. Validation, interpretation, and relation to adjacent usages
The validation program compares high-resolution standard hydrodynamics, low-resolution standard hydrodynamics, and low-resolution CGSM in idealized tests of thermal instability, spatial cold-gas distribution, cloud destruction, and cloud growth (Butsky et al., 2024). In a one-zone cooling test, standard hydrodynamics converts gas into a cold phase in a step-like way once the entire cell crosses the threshold, whereas CGSim produces a gradual transfer of mass. After one cooling time, CGSim yields roughly two-thirds of the gas as cold, and by three cooling times it saturates at about 83\% cold rather than forcing an immediate 6 conversion.
In 2D thermal-instability tests of a 7 kpc CGM patch, the contrast is qualitative and structural. High-resolution hydrodynamics produces a mist of 8 pc cloudlets; low-resolution hydrodynamics produces a few artificially large, grid-sized clouds; and CGSM at low resolution reproduces the qualitative spatial distribution of the resolved run. In a cloud-in-wind problem, underresolved standard hydrodynamics makes the cloud size artificially large and therefore stretches the destruction time; the reported low-resolution hydro cloud-destruction time can be nearly a thousand times too long, while CGSim recovers the expected short timescale. When radiative cooling is included, CGSim also captures the expected subgrid accretion / growth regime, where resolved theory predicts cloud growth.
These results are interpreted cautiously. CGSim is not presented as a replacement for full-resolution hydrodynamics, but as a method that reproduces the correct qualitative behavior of unresolved cold CGM physics where standard simulations fail. It succeeds at allowing partial cold mass inside a cell, preventing the “one-cell cloud” artifact, reproducing smooth spatial cold-mass distributions, and capturing realistic destruction and growth timescales. The framework also highlights a common misconception in underresolved CGM modeling: standard low-resolution hydrodynamics can sometimes match total cold mass while still obtaining the right answer for the wrong reasons, because artificially inflated cloud sizes and lifetimes distort the underlying mechanism (Butsky et al., 2024).
The broader design is explicitly modular. If future work supports different cloud-size scalings, new turbulence models, or added physics such as magnetic fields, conduction, turbulence, or cosmic rays, the prescriptions for 9, 0, and 1 can be updated without replacing the two-fluid architecture. That modularity also helps separate CGSim from unrelated uses of similar names in other subfields. CCWSIM addresses large-scale categorical/geostatistical simulation by performing CCSIM-style pattern search in DWT approximation-coefficient space, with a runtime-oriented realism–efficiency tradeoff (Bavandsavadkoohi et al., 2024). 3DGauCIM instead targets real-time rendering of static and dynamic 3D Gaussian Splatting on edge devices through co-designed culling, sorting, tile grouping, and DCIM-friendly dataflow, achieving reported frame rates above 200 FPS at low power (Huang et al., 25 Jul 2025). Those frameworks share the broad language of simulation and acceleration, but they solve different problems and do not redefine CGSim in the astrophysical sense.