IPotential
, IPotentialMolecular
, PotentialPolarizable
PNGCPMX
public class PNGCPM extends PotentialMolecular implements PotentialPolarizable
http://dx.doi.org/10.1063/1.3519022
Modifier and Type | Class | Description |
---|---|---|
static class |
PNGCPM.Component |
|
static class |
PNGCPM.GCPMAgent |
|
class |
PNGCPM.P3GCPMAxilrodTeller |
|
class |
PNGCPM.PNGCPMCached |
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected PNGCPM.Component |
component |
|
protected double |
coreFac |
|
static boolean |
debugme |
|
protected Vector[][] |
Ep |
|
protected Vector[][] |
Eq |
|
protected Vector[][] |
mu |
|
protected int |
nAtomTypes |
|
protected Vector |
oldMu |
|
protected boolean |
oops |
|
protected MoleculePair |
pair |
|
protected PNGCPM.GCPMAgent[][] |
pairAgents |
|
protected double[][] |
pairPolarization |
|
protected Vector |
rijVector |
|
protected Vector |
shift |
|
protected java.util.Map<AtomType,PNGCPM.GCPMAgent> |
typeManager |
|
protected Vector |
work |
nBody, space
Constructor | Description |
---|---|
PNGCPM(Space space,
java.util.Map<AtomType,PNGCPM.GCPMAgent> typeManager,
int nAtomTypes) |
|
PNGCPM(Space space,
java.util.Map<AtomType,PNGCPM.GCPMAgent> typeManager,
int nAtomTypes,
int nBody) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IMoleculeList molecules) |
Returns the interaction energy between the given molecules.
|
double |
getLastPolarizationEnergy() |
Returns the polarization energy from the last call to energy(AtomSet).
|
double |
getNonPolarizationEnergy(IMoleculeList molecules) |
This returns the pairwise-additive portion of the GCPM potential for a
pair of atoms (dispersion + fixed-charge electrostatics)
|
PNGCPM.GCPMAgent |
getPairAgent(AtomType type1,
AtomType type2) |
|
double |
getPolarizationEnergy(IMoleculeList molecules) |
This returns the polarizable portion of the GCPM potential for any
number of atoms.
|
double |
getRange() |
Returns the range over which the potential applies.
|
static void |
main(java.lang.String[] args) |
|
static void |
main2(java.lang.String[] args) |
|
static void |
mainCO2(java.lang.String[] args) |
|
PNGCPM.P3GCPMAxilrodTeller |
makeAxilrodTeller() |
|
PNGCPM.PNGCPMCached |
makeCachedPairPolarization() |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setComponent(PNGCPM.Component comp) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
public static boolean debugme
protected final double[][] pairPolarization
protected final MoleculePair pair
protected final double coreFac
protected final Vector rijVector
protected final Vector work
protected final Vector shift
protected final java.util.Map<AtomType,PNGCPM.GCPMAgent> typeManager
protected final int nAtomTypes
protected final PNGCPM.GCPMAgent[][] pairAgents
protected boolean oops
protected Boundary boundary
protected Vector[][] Eq
protected Vector[][] Ep
protected Vector[][] mu
protected Vector oldMu
protected PNGCPM.Component component
public PNGCPM(Space space, java.util.Map<AtomType,PNGCPM.GCPMAgent> typeManager, int nAtomTypes)
public PNGCPM(Space space, java.util.Map<AtomType,PNGCPM.GCPMAgent> typeManager, int nAtomTypes, int nBody)
public static void main2(java.lang.String[] args)
public static void mainCO2(java.lang.String[] args)
public static void main(java.lang.String[] args)
public void setComponent(PNGCPM.Component comp)
public double energy(IMoleculeList molecules)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public PNGCPM.PNGCPMCached makeCachedPairPolarization()
public PNGCPM.GCPMAgent getPairAgent(AtomType type1, AtomType type2)
public double getNonPolarizationEnergy(IMoleculeList molecules)
public double getPolarizationEnergy(IMoleculeList molecules)
getPolarizationEnergy
in interface PotentialPolarizable
public double getLastPolarizationEnergy()
PotentialPolarizable
getLastPolarizationEnergy
in interface PotentialPolarizable
public final double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular
public void setBox(Box box)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public PNGCPM.P3GCPMAxilrodTeller makeAxilrodTeller()