CASM
AClustersApproachtoStatisticalMechanics
|
Relates to CASM project input/output.
Classes | |
struct | CASM::CompositionAxes |
Functions | |
BasicStructure< Site > | CASM::read_prim (fs::path filename) |
BasicStructure< Site > | CASM::read_prim (const jsonParser &json) |
Read prim.json. More... | |
void | CASM::write_prim (const BasicStructure< Site > &prim, fs::path filename, COORD_TYPE mode) |
Write prim.json to file. More... | |
void | CASM::write_prim (const BasicStructure< Site > &prim, jsonParser &json, COORD_TYPE mode) |
Write prim.json as JSON. More... | |
void | CASM::write_symop (const SymGroup &grp, Index i, jsonParser &j) |
void | CASM::write_symgroup (const SymGroup &grp, jsonParser &json) |
ChemicalReference | CASM::read_chemical_reference (fs::path filename, const Structure &prim, double tol) |
Read chemical reference states from JSON file. More... | |
ChemicalReference | CASM::read_chemical_reference (const jsonParser &json, const Structure &prim, double tol) |
Read chemical reference states from JSON. More... | |
void | CASM::write_chemical_reference (const ChemicalReference &chem_ref, fs::path filename) |
void | CASM::write_chemical_reference (const ChemicalReference &chem_ref, jsonParser &json) |
template<typename OutputIterator > | |
OutputIterator | CASM::read_composition_axes (OutputIterator result, const jsonParser &json) |
Read standard axes from JSON, and output to std::map<std::string, CompositionConverter> More... | |
void | CASM::write_basis (const SiteOrbitree &tree, const Structure &prim, jsonParser &json, double tol) |
Write summary of basis functions. More... | |
jsonParser & | CASM::to_json (const ChemicalReferenceState &ref_state, jsonParser &json) |
Write ChemicalReferenceState to: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'. More... | |
template<> | |
ChemicalReferenceState | CASM::from_json< ChemicalReferenceState > (const jsonParser &json) |
Read ChemicalReferenceState from: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'. More... | |
void | CASM::from_json (ChemicalReferenceState &ref_state, const jsonParser &json) |
Read ChemicalReferenceState from: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'. More... | |
jsonParser & | CASM::to_json (const HyperPlaneReference &ref, jsonParser &json) |
void | CASM::from_json (HyperPlaneReference &ref, const jsonParser &json, HyperPlaneReference::InputFunction f) |
jsonParser & | CASM::to_json (const ChemicalReference &ref, jsonParser &json) |
Write chemical reference. More... | |
std::pair< Eigen::VectorXd, std::vector < ChemicalReferenceState > > | CASM::one_chemical_reference_from_json (const Structure &prim, const jsonParser &json) |
Read chemical reference from one of 3 alternative forms. More... | |
void | CASM::from_json (ChemicalReference &ref, const jsonParser &json, const Structure &prim, double tol=1e-14) |
Read chemical reference from JSON. More... | |
void CASM::from_json | ( | ChemicalReferenceState & | ref_state, |
const jsonParser & | json | ||
) |
Read ChemicalReferenceState from: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'.
void CASM::from_json | ( | HyperPlaneReference & | ref, |
const jsonParser & | json, | ||
HyperPlaneReference::InputFunction | f | ||
) |
void CASM::from_json | ( | ChemicalReference & | ref, |
const jsonParser & | json, | ||
const Structure & | prim, | ||
double | tol = 1e-14 |
||
) |
ChemicalReferenceState CASM::from_json< ChemicalReferenceState > | ( | const jsonParser & | json | ) |
Read ChemicalReferenceState from: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'.
std::pair< Eigen::VectorXd, std::vector< ChemicalReferenceState > > CASM::one_chemical_reference_from_json | ( | const Structure & | prim, |
const jsonParser & | json | ||
) |
Read chemical reference from one of 3 alternative forms.
This function returns a pair with only one element initialized. If alternative 1, then the vector is set. If alternative 2 or 3, then the Eigen::VectorXd is set.
Expected input form: 1)
2) Expects all species in prim, except vacancy:
3) Expects one element for each species in prim, including 0.0 for vacancy:
ChemicalReference CASM::read_chemical_reference | ( | fs::path | filename, |
const Structure & | prim, | ||
double | tol | ||
) |
ChemicalReference CASM::read_chemical_reference | ( | const jsonParser & | json, |
const Structure & | prim, | ||
double | tol | ||
) |
Read chemical reference states from JSON.
Example expected form:
See one_chemical_reference_from_json for documentation of the
expected form.
OutputIterator CASM::read_composition_axes | ( | OutputIterator | result, |
const jsonParser & | json | ||
) |
Read standard axes from JSON, and output to std::map<std::string, CompositionConverter>
BasicStructure< Site > CASM::read_prim | ( | fs::path | filename | ) |
BasicStructure< Site > CASM::read_prim | ( | const jsonParser & | json | ) |
jsonParser & CASM::to_json | ( | const ChemicalReferenceState & | ref_state, |
jsonParser & | json | ||
) |
Write ChemicalReferenceState to: '{"A" : X, "B" : X, ..., "energy_per_species" : X }'.
jsonParser & CASM::to_json | ( | const HyperPlaneReference & | ref, |
jsonParser & | json | ||
) |
jsonParser & CASM::to_json | ( | const ChemicalReference & | ref, |
jsonParser & | json | ||
) |
Write chemical reference.
Write ChemicalReference.
Example form:
Each individual reference is a vector,
giving the hyperplane of the reference (each element is the reference value for pure Configurations of a given Molecule).
void CASM::write_basis | ( | const SiteOrbitree & | tree, |
const Structure & | prim, | ||
jsonParser & | json, | ||
double | tol | ||
) |
Write summary of basis functions.
Format:
void CASM::write_chemical_reference | ( | const ChemicalReference & | chem_ref, |
fs::path | filename | ||
) |
void CASM::write_chemical_reference | ( | const ChemicalReference & | chem_ref, |
jsonParser & | json | ||
) |
void CASM::write_prim | ( | const BasicStructure< Site > & | prim, |
fs::path | filename, | ||
COORD_TYPE | mode | ||
) |
void CASM::write_prim | ( | const BasicStructure< Site > & | prim, |
jsonParser & | json, | ||
COORD_TYPE | mode | ||
) |
void CASM::write_symgroup | ( | const SymGroup & | grp, |
jsonParser & | json | ||
) |