NAMD
|
#include <LjPmeMgr.h>
Public Member Functions | |
LjPmeMgr () | |
~LjPmeMgr () | |
void | initialize (const SimParameters *simParams, const int nAtoms) |
void | computeLongRange (const double *ljPmeCoord, const Lattice &lattice, const double &alphaLJ, double *force, double &energy, double virial[][3], bool doEnergy) |
void | optimizeFFT () |
void | setScaledCoordinates (const double *refPos, const Lattice &lattice) |
void | gridCalculation (const double &alpha, const Lattice &lattice) |
double | selfCompute (const double &alphaLJ) |
Definition at line 48 of file LjPmeMgr.h.
|
inline |
Definition at line 50 of file LjPmeMgr.h.
LjPmeMgr::~LjPmeMgr | ( | ) |
Definition at line 73 of file LjPmeMgr.C.
void LjPmeMgr::computeLongRange | ( | const double * | ljPmeCoord, |
const Lattice & | lattice, | ||
const double & | alphaLJ, | ||
double * | force, | ||
double & | energy, | ||
double | virial[][3], | ||
bool | doEnergy | ||
) |
Definition at line 158 of file LjPmeMgr.C.
References LjPmeRealSpace::compute_scaledForces(), LjPmeGrid::dim3, LjPmeRealSpace::fill_charges(), gridCalculation(), selfCompute(), and setScaledCoordinates().
Referenced by LjPmeCompute::computeLJpotential().
void LjPmeMgr::gridCalculation | ( | const double & | alpha, |
const Lattice & | lattice | ||
) |
Calculates and return the self-energy term for LJ-PME
Definition at line 251 of file LjPmeMgr.C.
References LjPmeKSpace::compute_energy(), LjPmeGrid::dim2, LjPmeGrid::dim3, LjPmeGrid::K1, and LjPmeGrid::K2.
Referenced by computeLongRange().
void LjPmeMgr::initialize | ( | const SimParameters * | simParams, |
const int | nAtoms | ||
) |
Calculate and add force and energy for reciprocal LJ-PME
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 14 of file LjPmeMgr.C.
References LjPmeGrid::block1, LjPmeGrid::block2, LjPmeGrid::dim2, LjPmeGrid::dim3, LjPmeGrid::K1, LjPmeGrid::K2, LjPmeGrid::K3, NAMD_die(), optimizeFFT(), LjPmeGrid::order, and simParams.
Referenced by LjPmeCompute::initialize().
void LjPmeMgr::optimizeFFT | ( | ) |
Store the charge and scaled coordinates into dataArr buffer
Definition at line 91 of file LjPmeMgr.C.
References LjPmeGrid::dim2, LjPmeGrid::dim3, endi(), iINFO(), iout, LjPmeGrid::K1, LjPmeGrid::K2, LjPmeGrid::K3, and NAMD_die().
Referenced by initialize().
double LjPmeMgr::selfCompute | ( | const double & | alphaLJ | ) |
Definition at line 321 of file LjPmeMgr.C.
Referenced by computeLongRange().
void LjPmeMgr::setScaledCoordinates | ( | const double * | refPos, |
const Lattice & | lattice | ||
) |
Definition at line 202 of file LjPmeMgr.C.
References Lattice::a_r(), Lattice::b_r(), Lattice::c_r(), LjPmeGrid::K1, LjPmeGrid::K2, LjPmeGrid::K3, LjPmeGrid::order, Lattice::origin(), Vector::x, Vector::y, and Vector::z.
Referenced by computeLongRange().