1 #ifndef CASM_Monte_OccLocation_HH
2 #define CASM_Monte_OccLocation_HH
20 class OccCandidateList;
80 size_type
size()
const;
124 std::vector<std::vector<Index> >
m_loc;
void initialize(const Configuration &config)
Fill tables with occupation info.
const OccCandidateList & m_cand
std::vector< Mol > m_mol
Holds Mol objects, one for each mutating site in the configuration.
Index species_index
Species type index (must be consistent with config.occ(l))
std::vector< double > m_tsum
Data used by propose_canonical.
std::vector< SpecieTraj > species_traj
OccEvent & propose_grand_canonical(OccEvent &e, const OccSwap &swap, MTRand &mtrand) const
Propose grand canonical OccEvent.
Index l_to_mol_id(Index l) const
Convert from config index to variable site index.
Index l
Location in config.
UnitCellCoord bijk_begin
Saves initial position.
Index asym
Asym unit index (must be consistent with l)
Index mol_id(Index cand_index, Index loc) const
Mol.id of a particular OccCandidate type.
std::vector< OccTransform > occ_transform
const Conversions & m_convert
std::vector< Index > component
Location of component Specie in OccLocation.m_species.
size_type cand_size(Index cand_index) const
Total number of mutating sites, of OccCandidate type, specified by index.
void swap(ConfigDoF &A, ConfigDoF &B)
std::vector< Species > m_species
Holds Monte::Species objects.
Index id
Location in OccLocation.m_species.
std::vector< std::vector< Index > > m_loc
EigenIndex Index
For long integer indexing:
Store swap type, mutating sites, and info for keeping OccLocation up-to-date.
A container class for the different degrees of freedom a Configuration might have.
Represents the occupant on a site.
void apply(const OccEvent &e, ConfigDoF &configdof)
Update configdof and this to reflect that event 'e' occurred.
Index id
Location in OccLocation.m_mol.
Represents an indivisible molecule component.
Index mol_comp
Location in mol.components.
OccEvent & _propose(OccEvent &e, const OccSwap &swap, MTRand &mtrand, Index cand_a, Index cand_b, Index size_a, Index size_b) const
Canonical propose.
List of asym / species_index pairs indicating allowed variable occupation dof.
Index loc
Location in OccLocation.m_loc.
OccEvent & propose_canonical(OccEvent &e, const std::vector< OccSwap > &canonical_swap, MTRand &mtrand) const
Propose canonical OccEvent.
Index l
Config occupant that is being transformed.
Index mol_id
Location in OccLocation.m_mol.
bool m_kmc
If true, update Species location during apply.
Index mol_comp_begin
Saves initial Mol.component index.
size_type size() const
Total number of mutating sites.
std::vector< Mol > m_tmol
Data structure used store temporaries during apply.
Stores data to enable efficient proposal and update of occupation mutation.
Index species_index
Species type index.
A Configuration represents the values of all degrees of freedom in a Supercell.
OccLocation(const Conversions &_convert, const OccCandidateList &_cand)
std::vector< Index > m_l_to_mol
l_to_mol[l] -> Mol.id, m_mol.size() otherwise