1 #ifndef CASM_MagSpinDoFTraits
2 #define CASM_MagSpinDoFTraits
61 DoF_impl::MagSpinDoFTraits
magspin(std::string
const &flavor_name);
71 Index max_poly_order);
Specifies traits of (possibly) anisotropic crystal properties.
void parse_dof_specs(InputParser< BasisFunctionSpecs > &parser, Structure const &prim) const override
DoFType::Traits * _clone() const override
std::vector< BasisSet > construct_site_bases(Structure const &_prim, std::vector< Orbit< PrimPeriodicSymCompare< IntegralCluster > > > &_asym_unit, BasisFunctionSpecs const &_basis_function_specs) const override
Construct the site basis (if DOF_MODE is LOCAL) for a DoF, given its site.
MagSpinDoFTraits(std::string const &flavor_name)
void dof_specs_to_json(BasisFunctionSpecs const &basis_function_specs, jsonParser &json, Structure const &prim) const override
Output DoF-specific basis function specs to json. Default does nothing.
Collection of all the traits specific to a DoF type.
Traits(AnisoValTraits const &_val_traits, bool _requires_site_basis=false)
Structure specifies the lattice and atomic basis of a crystal.
std::unique_ptr< DoFSpecs > magspin_specs(std::string const &flavor_name, Index max_poly_order)
DoF_impl::MagSpinDoFTraits magspin(std::string const &flavor_name)
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
INDEX_TYPE Index
For long integer indexing:
void parse(InputParser< ConfigEnumOptions > &parser, std::string method_name, PrimClex const &primclex, DataFormatterDictionary< Configuration > const &dict)
Specify how to construct basis functions.
std::string _name() const override
std::string m_flavor_name
MagSpinDoFSpecs(std::string _flavor_name, Index _max_poly_order=-1)
Constructor for any SITE_BASIS_FUNCTION_TYPE.