|
| bool | unitcell::validate_coordinate_system (const std::string &Coordinate, std::ofstream &ofs_warning) |
| | Validate coordinate system type.
|
| void | unitcell::allocate_atom_properties (Atom &atom, int na) |
| | Allocate and initialize atom property vectors.
|
| void | unitcell::set_atom_movement_flags (Atom &atom, int ia, const ModuleBase::Vector3< int > &mv, const bool fixed_atoms) |
| | Set atom movement constraints based on fixed_atoms parameter.
|
| bool | unitcell::is_magnetization_all_zero (const UnitCell &ucell) |
| | Check whether every atom carries a zero collinear magnetic moment.
|
| void | unitcell::autoset_magnetization (UnitCell &ucell, int nspin, std::ofstream &ofs_running) |
| | Set default magnetization if not explicitly specified.
|
| void | unitcell::warn_zero_magnetization_nspin4 (const UnitCell &ucell, std::ofstream &ofs_running) |
| | Warn when a nspin=4 run starts from an all-zero magnetization vector.
|
| void | unitcell::warn_xy_magnetization_ignored (const std::string &label, int n_discarded, int na, std::ofstream &ofs_running) |
| | Report, once per atom type, that x/y magnetization was discarded.
|
| bool | unitcell::finalize_atom_positions (UnitCell &ucell, std::ofstream &ofs_running, std::ofstream &ofs_warning, const std::string &calculation, const std::string &esolver_type) |
| | Perform final validation and output.
|
| ModuleBase::Vector3< double > | unitcell::calculate_lattice_center (const ModuleBase::Matrix3 &latvec, const std::string ¢er_mode) |
| | Calculate lattice center for different centering modes.
|
| void | unitcell::transform_atom_coordinates (Atom &atom, int ia, const std::string &Coordinate, const ModuleBase::Vector3< double > &v, const ModuleBase::Matrix3 &latvec, double lat0, ModuleBase::Vector3< double > &latcenter) |
| | Convert between different coordinate systems.
|
| bool | unitcell::process_magnetization (Atom &atom, int it, int ia, int nspin, bool input_vec_mag, bool input_angle_mag, std::ofstream &ofs_running, const bool noncolin) |
| | Convert between magnetization representations and output.
|
| bool | unitcell::parse_atom_properties (std::ifstream &ifpos, Atom &atom, int ia, ModuleBase::Vector3< int > &mv, bool &input_vec_mag, bool &input_angle_mag, bool &set_element_mag_zero) |
| | Parse optional atom properties (mag, angle1, angle2, lambda, sc, m, v).
|
| bool | unitcell::read_atom_type_header (int it, UnitCell &ucell, std::ifstream &ifpos, std::ofstream &ofs_running, std::ofstream &ofs_warning, bool &set_element_mag_zero, const std::string &basis_type, const std::string &orbital_dir, const std::string &init_wfc, const double onsite_radius) |
| | Read atom type metadata (label, magnetization, orbital info, atom count).
|