ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
cell_geometry.cpp File Reference
#include "cell_geometry.h"
#include "source_base/matrix3.h"
#include <cmath>
Include dependency graph for cell_geometry.cpp:

Namespaces

namespace  unitcell
 Free functions for extracting atom/orbital info from Atom array.

Functions

bool unitcell::make_orthogonal_cell (const ModuleBase::Matrix3 &lattice, const double lattice_scale, const double relative_tolerance, OrthogonalCell &cell)
ModuleBase::Vector3< double > unitcell::relative_position (const ModuleBase::Vector3< double > &position, const OrthogonalCell &cell)
ModuleBase::Vector3< double > unitcell::weighted_center (const std::vector< ModuleBase::Vector3< double > > &positions, const std::vector< double > &weights, const OrthogonalCell &cell)
bool unitcell::make_slab_cell (const ModuleBase::Matrix3 &lattice, const double lattice_scale, const int open_axis, const double relative_tolerance, SlabCell &cell)
double unitcell::relative_coordinate (const ModuleBase::Vector3< double > &position, const SlabCell &cell)
 Normal displacement in [-L/2, L/2); requires a validated cell and position.
double unitcell::weighted_center (const std::vector< ModuleBase::Vector3< double > > &positions, const std::vector< double > &weights, const SlabCell &cell)