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

#include <lj_forcefield.h>

Inheritance diagram for ModuleMD::LJ:
Collaboration diagram for ModuleMD::LJ:

Public Member Functions

 LJ (const std::string &output_dir, std::ofstream &running_log)
void initialize (BaseCell &cell, const Input_para &inp) override
void compute (BaseCell &cell, double &energy, ModuleBase::matrix &force, ModuleBase::matrix &stress) override
double get_search_radius () const
 neighbour search radius derived from the largest cutoff
const ModuleBase::matrix & get_lj_rcut () const
 per-type-pair cutoff radii
const ModuleBase::matrix & get_lj_c6 () const
 per-type-pair c6 coefficients
const ModuleBase::matrix & get_lj_c12 () const
 per-type-pair c12 coefficients
const ModuleBase::matrix & get_en_shift () const
 per-type-pair energy shift at the cutoff
void rcut_search_radius_for_testing (const int &ntype, const std::vector< double > &rcut)
void set_c6_c12_for_testing (const int &ntype, const int &rule, const std::vector< double > &epsilon, const std::vector< double > &sigma)
void cal_en_shift_for_testing (const int &ntype, const bool &is_shift)
Public Member Functions inherited from ModuleMD::ForceField
virtual ~ForceField ()

Private Member Functions

double LJ_energy (const double &d, const int &i, const int &j) const
ModuleBase::Vector3< double > LJ_force (const ModuleBase::Vector3< double > &dr, const int &i, const int &j) const
void rcut_search_radius (const int &ntype, const std::vector< double > &rcut)
void set_c6_c12 (const int &ntype, const int &rule, const std::vector< double > &epsilon, const std::vector< double > &sigma)
void cal_en_shift (const int &ntype, const bool &is_shift)

Private Attributes

std::string output_dir_
std::ofstream & running_log_
double search_radius = -1.0
ModuleBase::matrix lj_rcut
ModuleBase::matrix lj_c12
ModuleBase::matrix lj_c6
ModuleBase::matrix en_shift

Constructor & Destructor Documentation

◆ LJ()

ModuleMD::LJ::LJ ( const std::string & output_dir,
std::ofstream & running_log )

Member Function Documentation

◆ cal_en_shift()

void ModuleMD::LJ::cal_en_shift ( const int & ntype,
const bool & is_shift )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_en_shift_for_testing()

void ModuleMD::LJ::cal_en_shift_for_testing ( const int & ntype,
const bool & is_shift )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute()

void ModuleMD::LJ::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:

◆ get_en_shift()

const ModuleBase::matrix & ModuleMD::LJ::get_en_shift ( ) const
inline

per-type-pair energy shift at the cutoff

Here is the caller graph for this function:

◆ get_lj_c12()

const ModuleBase::matrix & ModuleMD::LJ::get_lj_c12 ( ) const
inline

per-type-pair c12 coefficients

Here is the caller graph for this function:

◆ get_lj_c6()

const ModuleBase::matrix & ModuleMD::LJ::get_lj_c6 ( ) const
inline

per-type-pair c6 coefficients

Here is the caller graph for this function:

◆ get_lj_rcut()

const ModuleBase::matrix & ModuleMD::LJ::get_lj_rcut ( ) const
inline

per-type-pair cutoff radii

Here is the caller graph for this function:

◆ get_search_radius()

double ModuleMD::LJ::get_search_radius ( ) const
inline

neighbour search radius derived from the largest cutoff

Here is the caller graph for this function:

◆ initialize()

void ModuleMD::LJ::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:

◆ LJ_energy()

double ModuleMD::LJ::LJ_energy ( const double & d,
const int & i,
const int & j ) const
private
Here is the caller graph for this function:

◆ LJ_force()

ModuleBase::Vector3< double > ModuleMD::LJ::LJ_force ( const ModuleBase::Vector3< double > & dr,
const int & i,
const int & j ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rcut_search_radius()

void ModuleMD::LJ::rcut_search_radius ( const int & ntype,
const std::vector< double > & rcut )
private
Here is the caller graph for this function:

◆ rcut_search_radius_for_testing()

void ModuleMD::LJ::rcut_search_radius_for_testing ( const int & ntype,
const std::vector< double > & rcut )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_c6_c12()

void ModuleMD::LJ::set_c6_c12 ( const int & ntype,
const int & rule,
const std::vector< double > & epsilon,
const std::vector< double > & sigma )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_c6_c12_for_testing()

void ModuleMD::LJ::set_c6_c12_for_testing ( const int & ntype,
const int & rule,
const std::vector< double > & epsilon,
const std::vector< double > & sigma )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ en_shift

ModuleBase::matrix ModuleMD::LJ::en_shift
private

◆ lj_c12

ModuleBase::matrix ModuleMD::LJ::lj_c12
private

◆ lj_c6

ModuleBase::matrix ModuleMD::LJ::lj_c6
private

◆ lj_rcut

ModuleBase::matrix ModuleMD::LJ::lj_rcut
private

◆ output_dir_

std::string ModuleMD::LJ::output_dir_
private

◆ running_log_

std::ofstream& ModuleMD::LJ::running_log_
private

◆ search_radius

double ModuleMD::LJ::search_radius = -1.0
private

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