kups.application.observables.stress
¶
State-binding constructors for virial stress observables.
These adapters extract particles, groups, and systems from a concrete simulation state and delegate to the state-agnostic virial-theorem functions in kups.observables.stress.
IsMolecularVirialState
¶
Bases: IsState[IsMolecularVirialParticles, IsVirialSystems], Protocol
State with groups for molecular virial stress.
Source code in src/kups/application/observables/stress.py
molecular_virial_stress_from_state(key, state)
¶
Compute molecular virial stress from a state.
Source code in src/kups/application/observables/stress.py
virial_stress_from_state(key, state)
¶
Compute atomic virial stress from a state.