ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
update_cell.h File Reference

Functions for updating cell information. More...

#include "unitcell_data.h"
#include "unitcell.h"
Include dependency graph for update_cell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

void unitcell::remake_cell (Lattice &lat)
 Adjust lattice vectors for constrained vc-relaxation.
void unitcell::setup_cell_after_vc (UnitCell &ucell, std::ofstream &log, const int nspin)
 Setup cell after vc-relaxation.
void unitcell::periodic_boundary_adjustment (Atom *atoms, const ModuleBase::Matrix3 &latvec, const int ntype)
 Check the boundary of the cell.
void unitcell::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.
void unitcell::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.
void unitcell::update_pos_taud (const Lattice &lat, const ModuleBase::Vector3< double > *posd_in, const int ntype, const int nat, Atom *atoms)
 Update the position and taud of the atoms (Vector3 version).
void unitcell::update_vel (const ModuleBase::Vector3< double > *vel_in, const int ntype, const int nat, Atom *atoms)
 Update the velocity of the atoms.

Detailed Description

Functions for updating cell information.

This file contains functions for:

  1. remake_cell: for constrained vc-relaxation where type of lattice is fixed, adjust the lattice vectors
  2. setup_cell_after_vc: setup cell after vc-relaxation
  3. periodic_boundary_adjustment: adjust the boundary of the cell
  4. update_pos_tau: update the Cartesian coordinate position of the atoms