make_semigrand_canonical_swaps#

libcasm.monte.events.make_semigrand_canonical_swaps(
convert: Conversions,
occ_candidate_list: OccCandidateList,
) list[OccSwap]#

Make all allowed OccSwap for semi-grand canonical Monte Carlo events

Parameters:
  • convert (Conversions) – Provides index conversions

  • occ_candidate_list (OccCandidateList) – The allowed candidate occupants

Returns:

semigrand_canonical_swaps – A list of allowed OccSwap for semi-grand canonical Monte Carlo events. This does include both forward and reverse swaps.

Return type:

List[OccSwap]