| 1 |
/** |
| 2 |
*** Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by |
| 3 |
*** The Board of Trustees of the University of Illinois. |
| 4 |
*** All rights reserved. |
| 5 |
**/ |
| 6 |
|
| 7 |
/** |
| 8 |
* |
| 9 |
* @file GlobalMasterAPBS.h |
| 10 |
* @author Justin Gullingsrud and Robert Konecny |
| 11 |
* @brief NAMD/APBS module header file |
| 12 |
* |
| 13 |
* |
| 14 |
*/ |
| 15 |
|
| 16 |
|
| 17 |
#ifdef NAMD_APBS |
| 18 |
|
| 19 |
#ifndef GLOBALMASTERAPBS_H |
| 20 |
#define GLOBALMASTERAPBS_H |
| 21 |
|
| 22 |
#include "GlobalMaster.h" |
| 23 |
class SubmitReduction; |
| 24 |
|
| 25 |
class APBSParameters; |
| 26 |
|
| 27 |
class GlobalMasterAPBS : public GlobalMaster { |
| 28 |
public: |
| 29 |
/* initializes this according to the simulation parameters */ |
| 30 |
GlobalMasterAPBS(); |
| 31 |
~GlobalMasterAPBS(); |
| 32 |
|
| 33 |
protected: |
| 34 |
virtual void calculate(); |
| 35 |
|
| 36 |
private: |
| 37 |
APBSParameters *params; |
| 38 |
SubmitReduction *reduction; |
| 39 |
int outputFreq; |
| 40 |
int step; |
| 41 |
int numAtoms; |
| 42 |
double *radii; |
| 43 |
double *charges; |
| 44 |
double *positionx, *positiony, *positionz; |
| 45 |
// returned force and energy components |
| 46 |
double solvent_elec_energy; |
| 47 |
double solvent_np_energy; |
| 48 |
double vacuum_elec_energy; |
| 49 |
double *solvent_forces[3]; |
| 50 |
double *vacuum_forces[3]; |
| 51 |
// space for other force components that we ignore |
| 52 |
double *qfForce[3]; |
| 53 |
double *ibForce[3]; |
| 54 |
double *dbForce[3]; |
| 55 |
double *npForce[3]; |
| 56 |
// in-memory grid data, ignored now |
| 57 |
double apbsgrid_meta[13]; |
| 58 |
double *apbsgrid[0]; |
| 59 |
|
| 60 |
// perform the actual APBS call. If in_vacuum is true, ion concentrations |
| 61 |
// will be set to zero, and solvent dielectric will be set to the value of |
| 62 |
// the solute (protein) dielectric. |
| 63 |
void call_apbs(int in_vacuum); |
| 64 |
}; |
| 65 |
|
| 66 |
#endif |
| 67 |
|
| 68 |
#endif NAMD_APBS |