#include <sltk_grid.h>
|
| Grid () |
|
| Grid (const int &test_grid_in) |
|
virtual | ~Grid () |
|
Grid & | operator= (Grid &&)=default |
|
void | init (std::ofstream &ofs, const UnitCell &ucell, const double radius_in, const bool boundary=true) |
|
void | getBox (int &bx, int &by, int &bz, const double &x, const double &y, const double &z) |
|
void | clear_atoms () |
|
void | clear_adj_info () |
|
int | getGlayerX () const |
|
int | getGlayerY () const |
|
int | getGlayerZ () const |
|
int | getGlayerX_minus () const |
|
int | getGlayerY_minus () const |
|
int | getGlayerZ_minus () const |
|
void | initGrid (const int fftdim, const int ndata, const std::string *cell, const double *a, const torch::Device device, double *volume) |
|
|
void | setMemberVariables (std::ofstream &ofs_in, const UnitCell &ucell) |
|
void | Construct_Adjacent (const UnitCell &ucell) |
|
void | Construct_Adjacent_near_box (const FAtom &fatom) |
|
void | Construct_Adjacent_final (const FAtom &fatom1, FAtom *fatom2) |
|
void | Check_Expand_Condition (const UnitCell &ucell) |
|
void | initGrid_ (const int fftdim, const int ndata, const std::string *cell, const double *a, const torch::Device device, double *volume, std::vector< std::vector< torch::Tensor > > &grid, std::vector< torch::Tensor > &gg) |
|
void | initScRecipGrid (const int fftdim, const double a, const int index, const torch::Device device, double *volume, std::vector< std::vector< torch::Tensor > > &grid, std::vector< torch::Tensor > &gg) |
|
void | initFccRecipGrid (const int fftdim, const double a, const int index, const torch::Device device, double *volume, std::vector< std::vector< torch::Tensor > > &grid, std::vector< torch::Tensor > &gg) |
|
void | initBccRecipGrid (const int fftdim, const double a, const int index, const torch::Device device, double *volume, std::vector< std::vector< torch::Tensor > > &grid, std::vector< torch::Tensor > &gg) |
|
◆ Grid() [1/2]
◆ Grid() [2/2]
Grid::Grid |
( |
const int & |
test_grid_in | ) |
|
◆ ~Grid()
◆ Check_Expand_Condition()
void Grid::Check_Expand_Condition |
( |
const UnitCell & |
ucell | ) |
|
|
private |
◆ clear_adj_info()
void Grid::clear_adj_info |
( |
| ) |
|
|
inline |
◆ clear_atoms()
void Grid::clear_atoms |
( |
| ) |
|
|
inline |
◆ Construct_Adjacent()
void Grid::Construct_Adjacent |
( |
const UnitCell & |
ucell | ) |
|
|
private |
◆ Construct_Adjacent_final()
void Grid::Construct_Adjacent_final |
( |
const FAtom & |
fatom1, |
|
|
FAtom * |
fatom2 |
|
) |
| |
|
private |
◆ Construct_Adjacent_near_box()
void Grid::Construct_Adjacent_near_box |
( |
const FAtom & |
fatom | ) |
|
|
private |
◆ getBox()
void Grid::getBox |
( |
int & |
bx, |
|
|
int & |
by, |
|
|
int & |
bz, |
|
|
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
z |
|
) |
| |
|
inline |
◆ getGlayerX()
int Grid::getGlayerX |
( |
| ) |
const |
|
inline |
◆ getGlayerX_minus()
int Grid::getGlayerX_minus |
( |
| ) |
const |
|
inline |
◆ getGlayerY()
int Grid::getGlayerY |
( |
| ) |
const |
|
inline |
◆ getGlayerY_minus()
int Grid::getGlayerY_minus |
( |
| ) |
const |
|
inline |
◆ getGlayerZ()
int Grid::getGlayerZ |
( |
| ) |
const |
|
inline |
◆ getGlayerZ_minus()
int Grid::getGlayerZ_minus |
( |
| ) |
const |
|
inline |
◆ init()
void Grid::init |
( |
std::ofstream & |
ofs, |
|
|
const UnitCell & |
ucell, |
|
|
const double |
radius_in, |
|
|
const bool |
boundary = true |
|
) |
| |
◆ initBccRecipGrid()
void Grid::initBccRecipGrid |
( |
const int |
fftdim, |
|
|
const double |
a, |
|
|
const int |
index, |
|
|
const torch::Device |
device, |
|
|
double * |
volume, |
|
|
std::vector< std::vector< torch::Tensor > > & |
grid, |
|
|
std::vector< torch::Tensor > & |
gg |
|
) |
| |
|
private |
◆ initFccRecipGrid()
void Grid::initFccRecipGrid |
( |
const int |
fftdim, |
|
|
const double |
a, |
|
|
const int |
index, |
|
|
const torch::Device |
device, |
|
|
double * |
volume, |
|
|
std::vector< std::vector< torch::Tensor > > & |
grid, |
|
|
std::vector< torch::Tensor > & |
gg |
|
) |
| |
|
private |
◆ initGrid()
void Grid::initGrid |
( |
const int |
fftdim, |
|
|
const int |
ndata, |
|
|
const std::string * |
cell, |
|
|
const double * |
a, |
|
|
const torch::Device |
device, |
|
|
double * |
volume |
|
) |
| |
◆ initGrid_()
void Grid::initGrid_ |
( |
const int |
fftdim, |
|
|
const int |
ndata, |
|
|
const std::string * |
cell, |
|
|
const double * |
a, |
|
|
const torch::Device |
device, |
|
|
double * |
volume, |
|
|
std::vector< std::vector< torch::Tensor > > & |
grid, |
|
|
std::vector< torch::Tensor > & |
gg |
|
) |
| |
|
private |
◆ initScRecipGrid()
void Grid::initScRecipGrid |
( |
const int |
fftdim, |
|
|
const double |
a, |
|
|
const int |
index, |
|
|
const torch::Device |
device, |
|
|
double * |
volume, |
|
|
std::vector< std::vector< torch::Tensor > > & |
grid, |
|
|
std::vector< torch::Tensor > & |
gg |
|
) |
| |
|
private |
◆ operator=()
◆ setMemberVariables()
void Grid::setMemberVariables |
( |
std::ofstream & |
ofs_in, |
|
|
const UnitCell & |
ucell |
|
) |
| |
|
private |
◆ all_adj_info
std::vector<std::vector< std::vector<FAtom *> > > Grid::all_adj_info |
◆ atoms_in_box
std::vector<std::vector<std::vector<AtomMap> > > Grid::atoms_in_box |
◆ box_edge_length
double Grid::box_edge_length =0.0 |
◆ box_nx
◆ box_ny
◆ box_nz
◆ fft_gg
std::vector<torch::Tensor> Grid::fft_gg |
◆ fft_grid
std::vector<std::vector<torch::Tensor> > Grid::fft_grid |
◆ glayerX
◆ glayerX_minus
int Grid::glayerX_minus =0 |
|
private |
◆ glayerY
◆ glayerY_minus
int Grid::glayerY_minus =0 |
|
private |
◆ glayerZ
◆ glayerZ_minus
int Grid::glayerZ_minus =0 |
|
private |
◆ pbc
◆ sradius
double Grid::sradius =0.0 |
◆ sradius2
double Grid::sradius2 =0.0 |
◆ test_grid
◆ x_max
◆ x_min
◆ y_max
◆ y_min
◆ z_max
◆ z_min
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/module_neighbor/sltk_grid.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_ofdft/ml_tools/grid.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_cell/module_neighbor/sltk_grid.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/module_dm/test/test_dm_io.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/module_dm/test/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_lcao/module_operator_lcao/test/tmp_mocks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_ofdft/ml_tools/grid.cpp