|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectenergy.FDPoissonBoltzmann
| Field Summary | |
(package private) Particles |
atoms
|
(package private) boolean |
debug
|
protected double[] |
epsCgrid
epsCgrid[GPX*GPY*GPZ] stores the sum of the permittivities at the six faces plus @f$\varepsilon _{Solvent} \kappa ^2 h^2 @f$ times the number of solvent faces divided by six. |
protected double[] |
epsIgrid
epsIgrid[GPX*GPY*GPZ] stores the permittivity surrounding each face of a gridpoint[I][J][K] shifted in direction I |
protected double[] |
epsJgrid
epsJgrid[GPX*GPY*GPZ] stores the permittivity surrounding each face of a gridpoint[I][J][K] shifted in direction J |
protected double[] |
epsKgrid
epsKgrid[GPX*GPY*GPZ] stores the permittivity surrounding each face of a gridpoint[I][J][K] shifted in direction K |
protected static double |
epssolute
solute permittivity |
protected static double |
epssolvent
solvent permittivity |
(package private) static int |
GPX
number of grid points along X. |
(package private) int |
GPXGPY
|
(package private) int |
GPXGPYGPZ
|
(package private) static int |
GPY
number of grid points along Y. |
(package private) static int |
GPZ
number of grid points along Z. |
protected static double |
gridspacing
gridspacing @f$ h @f$ |
protected static double[] |
gridstart
grid origin |
(package private) boolean |
havephi
|
(package private) FDPoissonBoltzmann_ICCG |
iccg
|
protected static double |
kappa
|
(package private) FDPoissonBoltzmann_Boundary |
PBboundary
|
(package private) FDPoissonBoltzmann_ChargeGrid |
PBcrgGrid
|
(package private) FDPoissonBoltzmann_EpsGrid |
PBeps
|
protected double[] |
phigrid
phigrid[GPX*GPY*GPZ] will become the solution vector when solving for the electrostatic potential |
protected double[] |
rhogrid
rhogrid[GPX*GPY*GPZ] stores the charges assigned to each grid point divided by the gridspacing @f$ h @f$ |
(package private) SimSystem |
sys
|
| Constructor Summary | |
FDPoissonBoltzmann()
The PoissonBoltzmann default class constructor. |
|
FDPoissonBoltzmann(FDPoissonBoltzmann_Parameters parameters,
boolean debug)
|
|
FDPoissonBoltzmann(Particles atoms,
SimSystem sys,
boolean debug)
|
|
FDPoissonBoltzmann(Particles atoms,
SimSystem sys,
FDPoissonBoltzmann_Parameters parameters,
boolean debug)
The PoissonBoltzmann class constructor. |
|
| Method Summary | |
void |
addParticles(Particles atoms,
SimSystem sys)
|
double[] |
dGelec(boolean green)
public boolean dGelec calculates the electrostatic free energy [G] for the system from the electrostatic potential (phigrid) calculated above. |
private double |
getdG()
|
double[] |
getgridstart()
|
double[] |
getpotential()
|
(package private) void |
gridcheck()
static final void gridcheck checks whether any atom exceeds the grid |
(package private) int |
index(int x,
int y,
int z)
static final int index converts 3D to 1D array index. |
void |
setpermittivity(double solute,
double solvent)
static setpermittivity. |
void |
setupGrid(FDPoissonBoltzmann_Parameters parameters,
boolean newphi)
public void method setupGrid sets up a grid around the solute particles using the center of geometry as the grid center, along with the given gridspacing, ionic strength, solute/solven permittivities and the number of gridpoints along X,Y and Z. |
boolean |
solveforpotential(int maxits,
double acceptance)
public boolean solveforpotential solves the linearized Poisson-Boltzmann equation for the electrostatic potential phigrid using the incomplete cholesky conjugate gradient algorithm |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
Particles atoms
SimSystem sys
static int GPX
static int GPY
static int GPZ
final int GPXGPY
final int GPXGPYGPZ
protected double[] rhogrid
protected double[] epsIgrid
protected double[] epsJgrid
protected double[] epsKgrid
protected double[] epsCgrid
protected double[] phigrid
protected static double gridspacing
protected static double epssolute
protected static double epssolvent
protected static double[] gridstart
protected static double kappa
FDPoissonBoltzmann_Boundary PBboundary
FDPoissonBoltzmann_ChargeGrid PBcrgGrid
FDPoissonBoltzmann_EpsGrid PBeps
FDPoissonBoltzmann_ICCG iccg
final boolean debug
boolean havephi
| Constructor Detail |
public FDPoissonBoltzmann()
public FDPoissonBoltzmann(Particles atoms,
SimSystem sys,
boolean debug)
public FDPoissonBoltzmann(FDPoissonBoltzmann_Parameters parameters,
boolean debug)
public FDPoissonBoltzmann(Particles atoms,
SimSystem sys,
FDPoissonBoltzmann_Parameters parameters,
boolean debug)
atoms - Particles in the systemsys - the SimSystem to be used| Method Detail |
public void addParticles(Particles atoms,
SimSystem sys)
public void setupGrid(FDPoissonBoltzmann_Parameters parameters,
boolean newphi)
PositionUtils,
FDPoissonBoltzmann_Boundary,
FDPoissonBoltzmann_ChargeGrid,
FDPoissonBoltzmann_EpsGrid
public boolean solveforpotential(int maxits,
double acceptance)
maxits - maximum number of iterationsacceptance - acceptance criterion for the norm of the residualjpb_solver_Mathpublic double[] dGelec(boolean green)
green - boolean to determine whether Green functions correction is applied or not.FDPoissonBoltzmann_GreenFunctionprivate final double getdG()
final void gridcheck()
final int index(int x,
int y,
int z)
x - index along xy - index along yz - index along z
public void setpermittivity(double solute,
double solvent)
solute - solute permittivitysolvent - solvent permittivitypublic double[] getpotential()
public double[] getgridstart()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||