IPotential
, IPotentialAtomic
, IPotentialTorque
, PotentialSoft
public class P2CO2H2OWheatley extends java.lang.Object implements IPotentialTorque
Modifier and Type | Class | Description |
---|---|---|
class |
P2CO2H2OWheatley.P2CO2H2OSC |
|
class |
P2CO2H2OWheatley.P2CO2H2OSCTI |
Modifier and Type | Field | Description |
---|---|---|
protected Vector[] |
allOr0 |
|
protected Vector[] |
allOr1 |
|
protected static double |
checkCore |
|
protected static double |
checkCoreCO |
|
protected double |
CO |
|
protected static double |
core |
|
protected static double |
coreCO |
|
protected boolean |
debugging |
|
protected Vector |
drij |
|
protected static double[] |
fparams |
|
protected Vector[][] |
gradientAndTorque |
|
protected static int[][] |
iparams |
|
protected double |
mass1 |
|
protected double |
minR |
|
protected Vector |
or01 |
|
protected Vector |
or02 |
|
protected Vector |
orH2O3 |
|
protected Tensor |
rot0 |
|
protected Tensor |
rot1 |
|
protected Vector[][] |
sitePos |
|
protected static double |
sitesCO2L |
|
protected static double |
sitesHH |
|
protected static double |
sitesOH |
|
protected Space |
space |
|
protected Vector |
torque |
Constructor | Description |
---|---|
P2CO2H2OWheatley(Space space) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
protected void |
getPerp(Vector or,
Vector perp1,
Vector perp2) |
|
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) |
|
static void |
main(java.lang.String[] args) |
Randomly moves molcules all over, computing and checking 2nd derivative
|
static void |
main2(java.lang.String[] args) |
|
static void |
main2DGrid(java.lang.String[] args) |
Writes x-y grid of energies
|
static void |
mainQ(java.lang.String[] args) |
Check charges (all sums should be 0 for neutral molecules)
|
static void |
mainTestU(java.lang.String[] args) |
Reads geometry.txt file and computes energy for each configuration
|
P2CO2H2OWheatley.P2CO2H2OSC |
makeSemiclassical(double temperature) |
Creates a Feynman-Hibbs implementation of a semi-classical potential based on this model for the given temperature.
|
P2CO2H2OWheatley.P2CO2H2OSCTI |
makeSemiclassicalTI(double temperature) |
Creates a Takahashi-Imada implementation of a semi-classical potential based on this model for the given 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) |
protected static final int[][] iparams
protected static final double[] fparams
protected static final double sitesCO2L
protected static final double sitesOH
protected static final double sitesHH
protected final Vector[][] sitePos
protected final Space space
protected final Tensor rot0
protected final Tensor rot1
protected final Vector or01
protected final Vector or02
protected final Vector orH2O3
protected final Vector[] allOr0
protected final Vector[] allOr1
protected final Vector[][] gradientAndTorque
protected final Vector drij
protected final Vector torque
protected final double mass1
protected double minR
protected double CO
protected static final double core
protected static final double coreCO
protected static final double checkCore
protected static final double checkCoreCO
protected boolean debugging
public P2CO2H2OWheatley(Space space)
public double energy(IAtomList atoms)
IPotentialAtomic
energy
in interface IPotentialAtomic
public double getRange()
IPotential
getRange
in interface IPotential
public void setBox(Box box)
IPotential
setBox
in interface IPotential
public int nBody()
IPotential
nBody
in interface IPotential
public Vector[][] gradientAndTorque(IAtomList atoms)
gradientAndTorque
in interface IPotentialTorque
public P2CO2H2OWheatley.P2CO2H2OSC makeSemiclassical(double temperature)
public P2CO2H2OWheatley.P2CO2H2OSCTI makeSemiclassicalTI(double temperature)
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public static void mainTestU(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static void mainQ(java.lang.String[] args)
public static void main(java.lang.String[] args)
public static void main2(java.lang.String[] args)
public static void main2DGrid(java.lang.String[] args) throws java.io.IOException
java.io.IOException