2025-11-25 14:08:58 -05:00
|
|
|
"""
|
|
|
|
|
GridFire utility method bindings
|
|
|
|
|
"""
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
import fourdst._phys.composition
|
|
|
|
|
import gridfire._gridfire.engine
|
2025-12-20 16:02:52 -05:00
|
|
|
import gridfire._gridfire.engine.scratchpads
|
2025-11-25 14:08:58 -05:00
|
|
|
import typing
|
|
|
|
|
from . import hashing
|
|
|
|
|
__all__: list[str] = ['formatNuclearTimescaleLogString', 'hash_atomic', 'hash_reaction', 'hashing']
|
2025-12-20 16:02:52 -05:00
|
|
|
def formatNuclearTimescaleLogString(ctx: gridfire._gridfire.engine.scratchpads.StateBlob, engine: gridfire._gridfire.engine.DynamicEngine, Y: fourdst._phys.composition.Composition, T9: typing.SupportsFloat, rho: typing.SupportsFloat) -> str:
|
2025-11-25 14:08:58 -05:00
|
|
|
"""
|
|
|
|
|
Format a string for logging nuclear timescales based on temperature, density, and energy generation rate.
|
|
|
|
|
"""
|
|
|
|
|
def hash_atomic(a: typing.SupportsInt, z: typing.SupportsInt) -> int:
|
|
|
|
|
...
|
|
|
|
|
def hash_reaction(reaction: ...) -> int:
|
|
|
|
|
...
|