ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
update_cell.h
Go to the documentation of this file.
1
12#ifndef UPDATE_CELL_H
13#define UPDATE_CELL_H
14
15#include "unitcell_data.h"
16#include "unitcell.h"
17
18namespace unitcell
19{
28 void remake_cell(Lattice& lat);
29
37 void setup_cell_after_vc(UnitCell& ucell, std::ofstream& log, const int nspin);
38
48 void periodic_boundary_adjustment(Atom* atoms,
49 const ModuleBase::Matrix3& latvec,
50 const int ntype);
51
61 void update_pos_tau(const Lattice& lat,
62 const double* pos,
63 const int ntype,
64 const int nat,
65 Atom* atoms);
66
76 void update_pos_taud(const Lattice& lat,
77 const double* posd_in,
78 const int ntype,
79 const int nat,
80 Atom* atoms);
81
91 void update_pos_taud(const Lattice& lat,
92 const ModuleBase::Vector3<double>* posd_in,
93 const int ntype,
94 const int nat,
95 Atom* atoms);
96
105 void update_vel(const ModuleBase::Vector3<double>* vel_in,
106 const int ntype,
107 const int nat,
108 Atom* atoms);
109}
110
111#endif // UPDATE_CELL_H
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
void update_vel(const ModuleBase::Vector3< double > *vel_in, const int ntype, const int nat, Atom *atoms)
Update the velocity of the atoms.
Definition update_cell.cpp:459
void remake_cell(Lattice &lat)
Adjust lattice vectors for constrained vc-relaxation.
Definition update_cell.cpp:13
void update_pos_tau(const Lattice &lat, const double *pos, const int ntype, const int nat, Atom *atoms)
Update the position and tau of the atoms.
Definition update_cell.cpp:377
void update_pos_taud(const Lattice &lat, const double *posd_in, const int ntype, const int nat, Atom *atoms)
Update the position and taud of the atoms.
Definition update_cell.cpp:408
void periodic_boundary_adjustment(Atom *atoms, const ModuleBase::Matrix3 &latvec, const int ntype)
Check the boundary of the cell.
Definition update_cell.cpp:477
void setup_cell_after_vc(UnitCell &ucell, std::ofstream &log, const int nspin)
Setup cell after vc-relaxation.
Definition update_cell.cpp:312
Data structures for unit cell information.