jaxdem.simulation_status#
Optional checked orchestration for simulation steps.
Functions
|
Single-snapshot implementation; checks stay on device. |
|
Check particle state, contact history, pending loads, and domain geometry. |
Classes
|
JIT-safe status bits; both failure bits may be present. |
|
Last accepted state, accepted step count, and persistent failure status. |
- class jaxdem.simulation_status.SimulationStatus(*values)[source]#
Bases:
IntFlagJIT-safe status bits; both failure bits may be present.
- SUCCESS = 0#
- SEARCH_OVERFLOW = 1#
- NONFINITE = 2#
- class jaxdem.simulation_status.StepResult(state: State, system: System, steps: jax.Array, status: jax.Array)#
Bases:
objectLast accepted state, accepted step count, and persistent failure status.
- steps: jax.Array#
- status: jax.Array#
- jaxdem.simulation_status.simulation_status(state: State, system: System) jax.Array[source]#
Check particle state, contact history, pending loads, and domain geometry.
Model parameters can intentionally contain infinity (e.g. disabled plastic relaxation). Their physical validity belongs to setup validation; this function detects nonfinite particle state, not every invalid parameter.
- jaxdem.simulation_status.checked_steps(state: State, system: System, n: int) StepResult[source]#
Single-snapshot implementation; checks stay on device.