13 json[
"origin"] = f.
origin();
25 std::vector<std::string> components;
28 int independent_compositions;
30 from_json(components, json[
"components"]);
33 from_json(independent_compositions, json[
"independent_compositions"]);
36 for (
int i = 0; i < independent_compositions; i++) {
Convert between number of species per unit cell and parametric composition.
Eigen::VectorXd end_member(size_type i) const
The mol composition of the parameteric composition axes end members.
std::string param_formula() const
Return formula for n->x.
static std::string comp_var(size_type i)
Composition variable names: "a", "b", ...
Eigen::VectorXd origin() const
The mol composition of the parameteric composition axes origin.
size_type independent_compositions() const
The dimensionality of the composition space.
std::string mol_formula() const
Return formula for x->n.
std::vector< std::string > components() const
The order of components in mol composition vectors.
static jsonParser object()
Returns an empty json object.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void from_json(ClexDescription &desc, const jsonParser &json)
Eigen::MatrixXd end_members(const ParamComposition::AllowedOccupants &_allowed_occs)
Serialize CompositionConverter to JSON.