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

#include <dp_forcefield.h>

Inheritance diagram for ModuleMD::DP:
Collaboration diagram for ModuleMD::DP:

Public Member Functions

 DP (const std::string &pot_file, const std::string &output_dir, std::ofstream &running_log)
 ~DP () 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 initialize_type_map_ (const std::vector< std::string > &type_labels)
void compute_mdcell_ (MDCell &cell, double &energy, ModuleBase::matrix &stress)

Private Attributes

std::string dp_file
std::string output_dir_
std::ofstream & running_log_
std::vector< int > md_type_to_dp_type_
std::vector< double > fparam
std::vector< double > aparam
std::unique_ptr< MDCell > distributed_cell_
std::unique_ptr< DomainDecomposition > decomposition_
bool aparam_nall_ = false
double rescaling = 1.0

Constructor & Destructor Documentation

◆ DP()

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

◆ ~DP()

DP::~DP ( )
overridedefault

Member Function Documentation

◆ compute()

void DP::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:

◆ compute_mdcell_()

void ModuleMD::DP::compute_mdcell_ ( MDCell & cell,
double & energy,
ModuleBase::matrix & stress )
private
Here is the caller graph for this function:

◆ initialize()

void DP::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::DP::initialize_type_map_ ( const std::vector< std::string > & type_labels)
private
Here is the caller graph for this function:

Member Data Documentation

◆ aparam

std::vector<double> ModuleMD::DP::aparam
private

◆ aparam_nall_

bool ModuleMD::DP::aparam_nall_ = false
private

◆ decomposition_

std::unique_ptr<DomainDecomposition> ModuleMD::DP::decomposition_
private

◆ distributed_cell_

std::unique_ptr<MDCell> ModuleMD::DP::distributed_cell_
private

◆ dp_file

std::string ModuleMD::DP::dp_file
private

◆ fparam

std::vector<double> ModuleMD::DP::fparam
private

◆ md_type_to_dp_type_

std::vector<int> ModuleMD::DP::md_type_to_dp_type_
private

◆ output_dir_

std::string ModuleMD::DP::output_dir_
private

◆ rescaling

double ModuleMD::DP::rescaling = 1.0
private

◆ running_log_

std::ofstream& ModuleMD::DP::running_log_
private

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