CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::Monte::CanonicalEvent Class Reference

#include <CanonicalEvent.hh>

Detailed Description

Data structure for storing information regarding a proposed grand canonical Monte Carlo event.

Definition at line 12 of file CanonicalEvent.hh.

Public Types

typedef Index size_type
 

Public Member Functions

 CanonicalEvent ()
 Default constructor. More...
 
 CanonicalEvent (size_type Nspecies, size_type Ncorr)
 Constructor. More...
 
void set_dEf (double dE)
 Set the change in (extensive) formation energy associated with this event. More...
 
double dEf () const
 Return change in (extensive) formation energy associated with this event. More...
 
const Eigen::VectorXldN () const
 const Access change in number of species per supercell. Zeros, size of CompositionConverter::components(). More...
 
long int dN (size_type species_type_index) const
 Return change in number of species in supercell. Zeros, size of CompositionConverter::components(). More...
 
double dEpot () const
 Return change in (extensive) potential energy, dEpot = dEf. More...
 
Eigen::VectorXd & dCorr ()
 Access the changes in (extensive) correlations associated with this event. More...
 
const Eigen::VectorXd & dCorr () const
 const Access the changes in (extensive) correlations associated with this event More...
 
OccEventocc_event ()
 Access the data describing this event. More...
 
const OccEventocc_event () const
 const Access the data describing this event More...
 

Private Attributes

Eigen::VectorXd m_dCorr
 Change in (extensive) correlations due to this event. More...
 
double m_dEf
 Change in (extensive) formation energy due to this event. More...
 
Eigen::VectorXl m_dN
 Change in (extensive) potential energy, dEpot = dEf - sum_i(Nunit * param_chem_pot_i * dcomp_x_i) More...
 
OccEvent m_occ_event
 The modifications performed by this event. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

CASM::Monte::CanonicalEvent::CanonicalEvent ( )
inline

Default constructor.

Definition at line 19 of file CanonicalEvent.hh.

CASM::Monte::CanonicalEvent::CanonicalEvent ( size_type  Nspecies,
size_type  Ncorr 
)

Constructor.

Parameters
NspeciesThe number of different molecular species in this calculation (use CompositionConverter::components().size())
NcorrThe total number of correlations that could be calculated (use Clexulator::corr_size)

Definition at line 11 of file CanonicalEvent.cc.

Member Function Documentation

Eigen::VectorXd & CASM::Monte::CanonicalEvent::dCorr ( )

Access the changes in (extensive) correlations associated with this event.

Access the changes in correlations associated with this event.

Definition at line 44 of file CanonicalEvent.cc.

const Eigen::VectorXd & CASM::Monte::CanonicalEvent::dCorr ( ) const

const Access the changes in (extensive) correlations associated with this event

const Access the changes in correlations associated with this event

Definition at line 49 of file CanonicalEvent.cc.

double CASM::Monte::CanonicalEvent::dEf ( ) const

Return change in (extensive) formation energy associated with this event.

Return change in total (formation) energy associated with this event.

Definition at line 22 of file CanonicalEvent.cc.

double CASM::Monte::CanonicalEvent::dEpot ( ) const

Return change in (extensive) potential energy, dEpot = dEf.

Return change in potential energy: dEpot = dEf.

Definition at line 39 of file CanonicalEvent.cc.

const Eigen::VectorXl & CASM::Monte::CanonicalEvent::dN ( ) const

const Access change in number of species per supercell. Zeros, size of CompositionConverter::components().

const Access change in number of all species (extensive). Order as in CompositionConverter::components().

Definition at line 28 of file CanonicalEvent.cc.

long int CASM::Monte::CanonicalEvent::dN ( size_type  species_type_index) const

Return change in number of species in supercell. Zeros, size of CompositionConverter::components().

Return change in number of species (extensive) described by size_type. Order as in CompositionConverter::components().

Definition at line 33 of file CanonicalEvent.cc.

OccEvent & CASM::Monte::CanonicalEvent::occ_event ( )

Access the data describing this event.

Definition at line 54 of file CanonicalEvent.cc.

const OccEvent & CASM::Monte::CanonicalEvent::occ_event ( ) const

const Access the data describing this event

Definition at line 59 of file CanonicalEvent.cc.

void CASM::Monte::CanonicalEvent::set_dEf ( double  dE)

Set the change in (extensive) formation energy associated with this event.

Set the change in total (formation) energy associated with this event.

Definition at line 17 of file CanonicalEvent.cc.

Member Data Documentation

Eigen::VectorXd CASM::Monte::CanonicalEvent::m_dCorr
private

Change in (extensive) correlations due to this event.

Definition at line 63 of file CanonicalEvent.hh.

double CASM::Monte::CanonicalEvent::m_dEf
private

Change in (extensive) formation energy due to this event.

Definition at line 66 of file CanonicalEvent.hh.

Eigen::VectorXl CASM::Monte::CanonicalEvent::m_dN
private

Change in (extensive) potential energy, dEpot = dEf - sum_i(Nunit * param_chem_pot_i * dcomp_x_i)

Change in number of each species in supercell due to this event. Zeros, size of primclex.get_param_comp().get_components()

Definition at line 73 of file CanonicalEvent.hh.

OccEvent CASM::Monte::CanonicalEvent::m_occ_event
private

The modifications performed by this event.

Definition at line 76 of file CanonicalEvent.hh.


The documentation for this class was generated from the following files: