1 #ifndef CASM_GrandCanonicalConditions_HH
2 #define CASM_GrandCanonicalConditions_HH
double temperature() const
void set_param_chem_pot(const Eigen::VectorXd &in_chem_pot)
double m_temperature
Temperature.
GrandCanonicalConditions operator-(const GrandCanonicalConditions &RHS) const
int operator/(const GrandCanonicalConditions &RHS_inc) const
Divide ALL parameters and return the greatest number in absolute value.
Eigen::MatrixXd m_exchange_chem_pot
Matrix(i,j) of chem_pot(i) - chem_pot(j)
const PrimClex & primclex() const
const PrimClex * m_primclex
GrandCanonicalConditions & operator+=(const GrandCanonicalConditions &RHS)
Add temperature and all chemical potentials to *this.
double m_tolerance
Tolerance for comparison operators == and !=.
Eigen::MatrixXd exchange_chem_pot() const
matrix of exchange chemical potential, M(new, curr) = chem_pot(new)
GrandCanonicalConditions operator+(const GrandCanonicalConditions &RHS) const
GrandCanonicalConditions & operator-=(const GrandCanonicalConditions &RHS)
Subtract temperature and all chemical potentials to *this.
double m_beta
Inverse temperature. Includes Boltzmann term.
bool operator!=(const GrandCanonicalConditions &RHS) const
Compare temperature and all chemical potentials to *this.
Eigen::VectorXd param_chem_pot() const
parametric chemical potential: dg/dcomp_x
Eigen::VectorXd m_param_chem_pot
bool operator==(const GrandCanonicalConditions &RHS) const
Compare temperature and all chemical potentials to *this.
Eigen::VectorXd m_chem_pot
void set_temperature(double in_temp)
Set the temperature of the current grand canonical condition.
GrandCanonicalConditions()
Default constructor.
PrimClex is the top-level data structure for a CASM project.
std::ostream & operator<<(std::ostream &sout, const CanonicalConditions &cond)
INDEX_TYPE Index
For long integer indexing: