ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
cell_geometry.h File Reference
#include "source_base/vector3.h"
#include <array>
#include <vector>
Include dependency graph for cell_geometry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  unitcell::OrthogonalCell
struct  unitcell::SlabCell

Namespaces

namespace  ModuleBase
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)