SemiGrandCanonicalEventGenerator#

class libcasm.monte.ising_py.semigrand_canonical.SemiGrandCanonicalEventGenerator(
state: IsingState | None = None,
)[source]#

Bases: object

Propose 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

occ_event

The current proposed event

state

The current state for which events are proposed and applied