SemiGrandCanonicalEventGenerator#
- class libcasm.monte.ising_py.semigrand_canonical.SemiGrandCanonicalEventGenerator(
- state: IsingState | None = None,
Bases:
objectPropose and apply semi-grand canonical Ising model events
Constructor
- Parameters:
state (Optional[IsingState] = None) – The current state for which events are proposed and applied
Methods
apply(…)Update the occupation of the current state
propose(…)Propose a Monte Carlo occupation event
set_state(…)Set the state for which events are proposed and applied
Attributes