1 #ifndef CASM_GrandCanonicalEvent_HH
2 #define CASM_GrandCanonicalEvent_HH
6 #include "casm/external/Eigen/Dense"
126 m_dN(species_type_index) = dNi;
132 return m_dN(species_type_index);
Data structure for storing information regarding a proposed grand canonical Monte Carlo event.
Eigen::VectorXd & dCorr()
Access the changes in (extensive) correlations associated with this event.
double dEf() const
Return change in (extensive) formation energy associated with this event.
void set_dEpot(double dpot_nrg)
Set change in (extensive) potential energy, dEpot = dEf - sum_i(Nunit * param_chem_pot_i * dcomp_x_i)
void set_dN(size_type species_type_index, long int dn)
Set the change in number of species in supercell. Order as in CompositionConverter::components().
void set_dEf(double dE)
Set the change in (extensive) formation energy associated with this event.
double m_dEpot
Change in (extensive) potential energy, dEpot = dEf - sum_i(Nunit * param_chem_pot_i * dcomp_x_i)
Eigen::VectorXl & dN()
Access change in number of species per supercell. Order as in CompositionConverter::components().
OccMod & occupational_change()
Access the occupational modification for this event.
Eigen::VectorXl m_dN
Change in number of each species in supercell due to this event. The order is determined by primclex....
Eigen::VectorXd m_dCorr
Change in (extensive) correlations due to this event.
OccMod m_occ_mod
The ConfigDoF modification performed by this event.
double dEpot() const
Return change in (extensive) potential energy, dEpot = dEf - sum_i(Nunit * param_chem_pot_i * dcomp_x...
double m_dEf
Change in (extensive) formation energy due to this event.
GrandCanonicalEvent()
Default constructor.
INDEX_TYPE Index
For long integer indexing:
Matrix< long int, Dynamic, 1 > VectorXl