1. The Enzo Project
  2. Untitled project
  3. enzo-dev
  4. Pull requests

Pull requests

#196 Merged at 7fd301c
Repository
brittonsmith
Branch
week-of-code
Repository
enzo
Branch
week-of-code

Conduction helper machinery: part 1

Author
  1. Britton Smith
Reviewers
Description

This includes two features that can help one actually complete a cosmological simulation with conduction enabled.

  1. Dynamic Hierarchy Rebuilding: this causes the hierarchy on a given level to be rebuilt on a timescale that is calculated ignoring the conduction time. The conduction time is still used to determine the actual timestep to be used, but the hierarchy will not be rebuilt until the above time period has passed. This is reasonably valid since conduction should not considerable change the baryon fields which control the need to refine. This results in a decent speedup and also cuts down on memory fragmentation. This machinery could also be extended to include other machinery that causes short timesteps but does not necessarily change the density fields too much.

  2. Light crossing time limiter for conduction. This sets a floor for the conduction timestep of the light crossing time (dx / c). This eliminates extremely small conduction timesteps from hot, low density gas and does not significantly change the results.

Update 1: fixed Sam Skillman's catch on the mixed return values in Grid_ComputeConductionTimestep.

Comments (3)