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

Go to the source code of this file.

Namespaces

namespace  Lattice_Change_Basic
 Basic utilities and shared state for lattice relaxation algorithms.

Functions

void Lattice_Change_Basic::setup_gradient (const UnitCell &ucell, double *lat, double *grad, ModuleBase::matrix &stress)
 Setup gradient from stress tensor.
void Lattice_Change_Basic::change_lattice (UnitCell &ucell, double *move, double *lat, const bool fixed_ibrav)
 Update lattice vectors according to displacement.
bool Lattice_Change_Basic::check_converged (const UnitCell &ucell, ModuleBase::matrix &stress, double *grad, std::ofstream &ofs, const double &stress_thr)
 Check convergence based on stress threshold.
void Lattice_Change_Basic::terminate (const bool converged, std::ofstream &ofs)
 Terminate lattice optimization and output results.
void Lattice_Change_Basic::setup_etot (const double &energy_in, std::vector< double > &etot_info)
 Update energy values and compute energy difference.

Variables

int Lattice_Change_Basic::update_iter = 0
 Number of successfully updated iterations.
int Lattice_Change_Basic::stress_step = 0
 Index of stress optimization step.
double Lattice_Change_Basic::lattice_change_ini = 0.01
 Initial trust radius for lattice change (default: 0.01).
std::string Lattice_Change_Basic::fixed_axes = "None"
 Fixed axes constraint ("None", "shape", "volume", or specific axes).