IPotential, IPotentialAtomic, IPotentialTorque, PotentialSoftpublic class P2CO2Hellmann extends java.lang.Object implements IPotentialTorque
| Modifier and Type | Class | Description |
|---|---|---|
class |
P2CO2Hellmann.P2CO2SC |
|
static class |
P2CO2Hellmann.Parameters |
| Modifier and Type | Field | Description |
|---|---|---|
protected double[][] |
A |
|
protected static double[] |
AA |
|
protected static double[] |
AB |
|
protected double[][] |
alpha |
|
protected static double[] |
alphaA |
|
protected static double[] |
alphaB |
|
protected double[][] |
b |
|
protected static double[] |
bA |
|
protected static double[] |
bB |
|
protected double[][] |
C6 |
|
protected static double[] |
C6A |
|
protected static double[] |
C6B |
|
protected double[][] |
C8 |
|
protected static double[] |
C8A |
|
protected static double[] |
C8B |
|
protected boolean |
debug |
|
protected Vector |
drij |
|
protected Vector[][] |
gradientAndTorque |
|
protected static double |
mass |
|
protected static int |
nsites |
|
protected double[] |
pos |
|
static double[] |
posA |
|
static double[] |
posB |
|
protected double[] |
q |
|
protected static double[] |
qA |
|
protected static double[] |
qB |
|
protected Vector |
ri |
|
protected Vector |
rj |
|
protected static int[] |
siteID |
|
protected Space |
space |
|
protected Vector |
torque |
| Constructor | Description |
|---|---|
P2CO2Hellmann(Space space,
P2CO2Hellmann.Parameters param) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
double |
getPos(int idx) |
|
double |
getQ(int idx) |
|
double |
getRange() |
Returns the range over which the potential applies.
|
Vector[] |
gradient(IAtomList atoms) |
Returns the gradient of the potential as it applies to each atom in the
given AtomSet, indicating how the energy would change as the position of
the first atom is varied.
|
Vector[] |
gradient(IAtomList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
Vector[][] |
gradientAndTorque(IAtomList atoms) |
|
protected void |
ijInit(double[] x,
double[][] xx,
Unit unit) |
|
static void |
main(java.lang.String[] args) |
|
static void |
main1(java.lang.String[] args) |
|
P2CO2Hellmann.P2CO2SC |
makeSemiclassical(double temperature) |
|
int |
nBody() |
The number of atoms on which the potential depends.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
double |
virial(IAtomList atoms) |
public static final double[] posA
public static final double[] posB
protected static final double[] qA
protected static final double[] qB
protected static final int[] siteID
protected static final double[] AA
protected static final double[] AB
protected static final double[] alphaA
protected static final double[] alphaB
protected static final double[] bA
protected static final double[] bB
protected static final double[] C6A
protected static final double[] C6B
protected static final double[] C8A
protected static final double[] C8B
protected static final int nsites
protected final Vector ri
protected final Vector rj
protected final Vector drij
protected final Vector torque
protected final double[] pos
protected final double[] q
protected final double[][] A
protected final double[][] alpha
protected final double[][] b
protected final double[][] C6
protected final double[][] C8
protected final Space space
protected final Vector[][] gradientAndTorque
protected static final double mass
protected boolean debug
public P2CO2Hellmann(Space space, P2CO2Hellmann.Parameters param)
public double getPos(int idx)
public double getQ(int idx)
protected void ijInit(double[] x,
double[][] xx,
Unit unit)
public double virial(IAtomList atoms)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic Vector[][] gradientAndTorque(IAtomList atoms)
gradientAndTorque in interface IPotentialTorquepublic double energy(IAtomList atoms)
IPotentialAtomicenergy in interface IPotentialAtomicpublic double getRange()
IPotentialgetRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic int nBody()
IPotentialnBody in interface IPotentialpublic P2CO2Hellmann.P2CO2SC makeSemiclassical(double temperature)
public static void main1(java.lang.String[] args)
public static void main(java.lang.String[] args)