ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleMD::NEPPotential Class Reference

#include <nep_forcefield.h>

Inheritance diagram for ModuleMD::NEPPotential:
Collaboration diagram for ModuleMD::NEPPotential:

Public Member Functions

 NEPPotential (const std::string &pot_file, const std::string &output_dir, std::ofstream &running_log)
 ~NEPPotential () override
void initialize (BaseCell &cell, const Input_para &inp) override
void compute (BaseCell &cell, double &energy, ModuleBase::matrix &force, ModuleBase::matrix &stress) override
Public Member Functions inherited from ModuleMD::ForceField
virtual ~ForceField ()

Private Member Functions

void type_map (const UnitCell &cell)
void initialize_type_map_ (const std::vector< std::string > &type_labels)

Private Attributes

std::string nep_file
std::string output_dir_
std::ofstream & running_log_
std::vector< int > atype
std::vector< int > md_type_to_nep_type_
std::vector< double > _e
std::vector< double > _f
std::vector< double > _v

Constructor & Destructor Documentation

◆ NEPPotential()

NEPPotential::NEPPotential ( const std::string & pot_file,
const std::string & output_dir,
std::ofstream & running_log )

◆ ~NEPPotential()

NEPPotential::~NEPPotential ( )
overridedefault

Member Function Documentation

◆ compute()

void NEPPotential::compute ( BaseCell & cell,
double & energy,
ModuleBase::matrix & force,
ModuleBase::matrix & stress )
overridevirtual

Implements ModuleMD::ForceField.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

void NEPPotential::initialize ( BaseCell & cell,
const Input_para & inp )
overridevirtual

Implements ModuleMD::ForceField.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize_type_map_()

void ModuleMD::NEPPotential::initialize_type_map_ ( const std::vector< std::string > & type_labels)
private
Here is the caller graph for this function:

◆ type_map()

void ModuleMD::NEPPotential::type_map ( const UnitCell & cell)
private
Here is the caller graph for this function:

Member Data Documentation

◆ _e

std::vector<double> ModuleMD::NEPPotential::_e
private

◆ _f

std::vector<double> ModuleMD::NEPPotential::_f
private

◆ _v

std::vector<double> ModuleMD::NEPPotential::_v
private

◆ atype

std::vector<int> ModuleMD::NEPPotential::atype
private

◆ md_type_to_nep_type_

std::vector<int> ModuleMD::NEPPotential::md_type_to_nep_type_
private

◆ nep_file

std::string ModuleMD::NEPPotential::nep_file
private

◆ output_dir_

std::string ModuleMD::NEPPotential::output_dir_
private

◆ running_log_

std::ofstream& ModuleMD::NEPPotential::running_log_
private

The documentation for this class was generated from the following files: