Skip to content

Conversation

@akshat3410
Copy link

Add min_temperature config option to stop simulation when temperatures fall below a user-defined threshold. This is useful for avoiding numerical issues during radiative collapse scenarios.

Changes:

  • Add min_temperature field to Numerics config (default: 0.0 = disabled)
  • Add temperature_below_minimum() method to CoreProfiles
  • Add BELOW_MIN_TEMPERATURE error type to SimError enum
  • Integrate check into SimState.check_for_errors()
  • Pass min_temperature from step_function to error checker

Fixes #1607

…d#1607)

Add min_temperature config option to stop simulation when temperatures
fall below a user-defined threshold. This is useful for avoiding
numerical issues during radiative collapse scenarios.

Changes:
- Add min_temperature field to Numerics config (default: 0.0 = disabled)
- Add temperature_below_minimum() method to CoreProfiles
- Add BELOW_MIN_TEMPERATURE error type to SimError enum
- Integrate check into SimState.check_for_errors()
- Pass min_temperature from step_function to error checker

Fixes google-deepmind#1607
@jcitrin
Copy link
Collaborator

jcitrin commented Jan 4, 2026

Closing. Duplicate of #1769

@jcitrin jcitrin closed this Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

implement minimum allowed temperature

2 participants