CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
PrimClex is the top-level data structure for a CASM project.
Classes | |
class | CASM::DB::ValDatabase< ValueType > |
Generic interface for database of a particular CASM type. More... | |
class | CASM::DB::Database< T > |
class | CASM::PrimClex |
PrimClex is the top-level data structure for a CASM project. More... | |
Typedefs | |
typedef Structure | CASM::PrimClex::PrimType |
Functions | |
CASM::PrimClex::PrimClex (ProjectSettings const &_project_settings, std::shared_ptr< PrimType const > _shared_prim) | |
Initial construction of a PrimClex, from ProjectSettings and shared prim. More... | |
CASM::PrimClex::PrimClex (const fs::path &_root) | |
CASM::PrimClex::PrimClex (const PrimClex &)=delete | |
CASM::PrimClex::~PrimClex () | |
Necessary for "pointer to implementation". More... | |
void | CASM::PrimClex::refresh (bool read_settings=false, bool read_composition=false, bool read_chem_ref=false, bool read_configs=false, bool clear_clex=false) |
Reload PrimClex data from settings. More... | |
ProjectSettings & | CASM::PrimClex::settings () |
const ProjectSettings & | CASM::PrimClex::settings () const |
bool | CASM::PrimClex::has_dir () const |
Check if DirectoryStructure exists. More... | |
const DirectoryStructure & | CASM::PrimClex::dir () const |
Access DirectoryStructure object. Throw if not set. More... | |
double | CASM::PrimClex::crystallography_tol () const |
Get the crystallography_tol. More... | |
bool | CASM::PrimClex::has_composition_axes () const |
check if CompositionConverter object initialized More... | |
const CompositionConverter & | CASM::PrimClex::composition_axes () const |
const Access CompositionConverter object More... | |
bool | CASM::PrimClex::has_chemical_reference () const |
check if ChemicalReference object initialized More... | |
const ChemicalReference & | CASM::PrimClex::chemical_reference () const |
const Access ChemicalReference object More... | |
const PrimType & | CASM::PrimClex::prim () const |
const Access to primitive Structure More... | |
std::shared_ptr< PrimType const > const & | CASM::PrimClex::shared_prim () const |
Access to the primitive Structure as a shared resource. More... | |
Index | CASM::PrimClex::n_basis () const |
const Access to number of basis atoms More... | |
std::shared_ptr< PrimNeighborList > const & | CASM::PrimClex::shared_nlist () const |
Access to the primitive neighbor list as a shared resource. More... | |
PrimNeighborList & | CASM::PrimClex::nlist () const |
Access to the primitive neighbor list. More... | |
bool | CASM::PrimClex::vacancy_allowed () const |
returns true if vacancy are an allowed species More... | |
Index | CASM::PrimClex::vacancy_index () const |
returns the index of vacancies in composition vectors More... | |
template<typename T > | |
DB::ValDatabase< T > & | CASM::PrimClex::generic_db () const |
template<typename T > | |
const DB::ValDatabase< T > & | CASM::PrimClex::const_generic_db () const |
template<typename T > | |
DB::Database< T > & | CASM::PrimClex::db () const |
template<typename T > | |
const DB::Database< T > & | CASM::PrimClex::const_db () const |
template<typename T > | |
DB::PropertiesDatabase & | CASM::PrimClex::db_props (std::string calc_type) const |
template<typename T > | |
const DB::PropertiesDatabase & | CASM::PrimClex::const_db_props (std::string calc_type) const |
DB::DatabaseHandler & | CASM::PrimClex::db_handler () const |
const DB::DatabaseHandler & | CASM::PrimClex::const_db_handler () const |
bool | CASM::PrimClex::has_basis_set_specs (std::string const &basis_set_name) const |
ClexBasisSpecs const & | CASM::PrimClex::basis_set_specs (std::string const &basis_set_name) const |
Clexulator | CASM::PrimClex::clexulator (std::string const &basis_set_name) const |
bool | CASM::PrimClex::has_eci (const ClexDescription &key) const |
ECIContainer const & | CASM::PrimClex::eci (const ClexDescription &key) const |
void | CASM::PrimClex::_init () |
Initialization routines. More... | |
void | CASM::write_basis_set_data (std::shared_ptr< Structure const > shared_prim, ProjectSettings const &settings, std::string const &basis_set_name, ClexBasisSpecs const &basis_set_specs, PrimNeighborList &prim_neighbor_list) |
Clexulator | CASM::make_clexulator (ProjectSettings const &settings, std::string const &basis_set_name, PrimNeighborList &prim_neighbor_list) |
Variables | |
std::unique_ptr< PrimClexData > | CASM::PrimClex::m_data |
typedef Structure CASM::PrimClex::PrimType |
Definition at line 57 of file PrimClex.hh.
|
private |
Initialization routines.
Initialization routines
Definition at line 121 of file PrimClex.cc.
ClexBasisSpecs const & CASM::PrimClex::basis_set_specs | ( | std::string const & | basis_set_name | ) | const |
Definition at line 344 of file PrimClex.cc.
const ChemicalReference & CASM::PrimClex::chemical_reference | ( | ) | const |
const Access ChemicalReference object
Definition at line 255 of file PrimClex.cc.
Clexulator CASM::PrimClex::clexulator | ( | std::string const & | basis_set_name | ) | const |
Definition at line 366 of file PrimClex.cc.
const CompositionConverter & CASM::PrimClex::composition_axes | ( | ) | const |
const Access CompositionConverter object
Definition at line 243 of file PrimClex.cc.
const DB::Database< T > & CASM::PrimClex::const_db |
Definition at line 307 of file PrimClex.cc.
const DB::DatabaseHandler & CASM::PrimClex::const_db_handler | ( | ) | const |
Definition at line 329 of file PrimClex.cc.
const DB::PropertiesDatabase & CASM::PrimClex::const_db_props | ( | std::string | calc_type | ) | const |
Definition at line 317 of file PrimClex.cc.
const DB::ValDatabase< T > & CASM::PrimClex::const_generic_db |
Definition at line 297 of file PrimClex.cc.
double CASM::PrimClex::crystallography_tol | ( | ) | const |
Get the crystallography_tol.
Definition at line 233 of file PrimClex.cc.
DB::Database< T > & CASM::PrimClex::db |
Definition at line 302 of file PrimClex.cc.
DB::DatabaseHandler & CASM::PrimClex::db_handler | ( | ) | const |
Definition at line 322 of file PrimClex.cc.
DB::PropertiesDatabase & CASM::PrimClex::db_props | ( | std::string | calc_type | ) | const |
Definition at line 312 of file PrimClex.cc.
const DirectoryStructure & CASM::PrimClex::dir | ( | ) | const |
Access DirectoryStructure object. Throw if not set.
Definition at line 230 of file PrimClex.cc.
const ECIContainer & CASM::PrimClex::eci | ( | const ClexDescription & | key | ) | const |
Definition at line 406 of file PrimClex.cc.
DB::ValDatabase< T > & CASM::PrimClex::generic_db |
Definition at line 292 of file PrimClex.cc.
bool CASM::PrimClex::has_basis_set_specs | ( | std::string const & | basis_set_name | ) | const |
Definition at line 336 of file PrimClex.cc.
bool CASM::PrimClex::has_chemical_reference | ( | ) | const |
check if ChemicalReference object initialized
Definition at line 250 of file PrimClex.cc.
bool CASM::PrimClex::has_composition_axes | ( | ) | const |
check if CompositionConverter object initialized
const Access CompositionConverter object
Definition at line 238 of file PrimClex.cc.
bool CASM::PrimClex::has_dir | ( | ) | const |
Check if DirectoryStructure exists.
Definition at line 228 of file PrimClex.cc.
bool CASM::PrimClex::has_eci | ( | const ClexDescription & | key | ) | const |
Definition at line 397 of file PrimClex.cc.
Clexulator CASM::make_clexulator | ( | ProjectSettings const & | settings, |
std::string const & | basis_set_name, | ||
PrimNeighborList & | prim_neighbor_list | ||
) |
Make Clexulator from existing source code
Notes:
write_basis_set_data
to write Clexulator source code prior to calling this function.Definition at line 524 of file PrimClex.cc.
Index CASM::PrimClex::n_basis | ( | ) | const |
const Access to number of basis atoms
Definition at line 268 of file PrimClex.cc.
PrimNeighborList & CASM::PrimClex::nlist | ( | ) | const |
Access to the primitive neighbor list.
Definition at line 283 of file PrimClex.cc.
const PrimClex::PrimType & CASM::PrimClex::prim | ( | ) | const |
const Access to primitive Structure
Definition at line 262 of file PrimClex.cc.
|
explicit |
Construct PrimClex from existing CASM project directory
Definition at line 111 of file PrimClex.cc.
|
delete |
|
explicit |
Initial construction of a PrimClex, from ProjectSettings and shared prim.
Initial construction of a PrimClex, from a primitive Structure.
Definition at line 98 of file PrimClex.cc.
void CASM::PrimClex::refresh | ( | bool | read_settings = false , |
bool | read_composition = false , |
||
bool | read_chem_ref = false , |
||
bool | read_configs = false , |
||
bool | clear_clex = false |
||
) |
Reload PrimClex data from settings.
read_settings | Read project_settings.json and plugins |
read_composition | Read composition_axes.json |
read_chem_ref | Read chemical_reference.json |
read_configs | Read SCEL and config_list.json |
clear_clex | Clear stored orbitrees, clexulators, and eci |
Definition at line 156 of file PrimClex.cc.
ProjectSettings & CASM::PrimClex::settings | ( | ) |
Definition at line 224 of file PrimClex.cc.
const ProjectSettings & CASM::PrimClex::settings | ( | ) | const |
Definition at line 226 of file PrimClex.cc.
std::shared_ptr< PrimNeighborList > const & CASM::PrimClex::shared_nlist | ( | ) | const |
Access to the primitive neighbor list as a shared resource.
Definition at line 270 of file PrimClex.cc.
std::shared_ptr< PrimClex::PrimType const > const & CASM::PrimClex::shared_prim | ( | ) | const |
Access to the primitive Structure as a shared resource.
Definition at line 264 of file PrimClex.cc.
bool CASM::PrimClex::vacancy_allowed | ( | ) | const |
returns true if vacancy are an allowed species
Definition at line 286 of file PrimClex.cc.
Index CASM::PrimClex::vacancy_index | ( | ) | const |
returns the index of vacancies in composition vectors
Definition at line 289 of file PrimClex.cc.
void CASM::write_basis_set_data | ( | std::shared_ptr< Structure const > | shared_prim, |
ProjectSettings const & | settings, | ||
std::string const & | basis_set_name, | ||
ClexBasisSpecs const & | basis_set_specs, | ||
PrimNeighborList & | prim_neighbor_list | ||
) |
Write clust.json, basis.json, and clexulator source code, by constructing orbits and ClexBasis
Notes:
Write clexulator, clust.json, basis.json by constructing orbits and ClexBasis
Definition at line 504 of file PrimClex.cc.
CASM::PrimClex::~PrimClex | ( | ) |
Necessary for "pointer to implementation".
Definition at line 116 of file PrimClex.cc.
|
private |
Definition at line 175 of file PrimClex.hh.