JDFTx  1.7.0
SpringConstant Class Reference

Public Member Functions

 SpringConstant (Everything &e)
 
double computeMatrixElement (std::shared_ptr< AtomPerturbation > modeA, std::shared_ptr< AtomPerturbation > modeB)
 Compute individual matrix element.
 
double dsqEpair (std::shared_ptr< AtomPerturbation > modeA, std::shared_ptr< AtomPerturbation > modeB)
 Second derivative of pair potentials (Ewald and VDW)
 
double dsqEnl (std::shared_ptr< AtomPerturbation > modeA, std::shared_ptr< AtomPerturbation > modeB)
 Second derivative of nonlocal energy.
 
double dsqEloc (std::shared_ptr< AtomPerturbation > modeA, std::shared_ptr< AtomPerturbation > modeB)
 Second derivative of local energy.
 
void getPerturbedEnergy (Energies &ener, std::shared_ptr< AtomPerturbation > modeA, std::shared_ptr< AtomPerturbation > modeB, double deltaA, double deltaB)
 Perturb atoms by amounts deltaA and deltaB in the directions determined by modeA and modeB respectively, then compute energy.
 
IonicGradient getPhononMatrixColumn (std::shared_ptr< AtomPerturbation > mode, double dr=0.0)
 Compute part of OmegaSq corresponding to single atom perturbation, used by phonon package.
 

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