IPotential
, IPotentialAtomic
, PotentialSoft
public class P2SoftSphericalTruncatedSwitched extends Potential2 implements PotentialSoft
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected Vector[] |
gradient |
|
protected Potential2SoftSpherical |
potential |
|
protected double |
r2Cutoff |
|
protected double |
r2Switch |
|
protected double |
rCutoff |
|
protected double |
switchFac |
|
protected int |
taperOrder |
Constructor | Description |
---|---|
P2SoftSphericalTruncatedSwitched(Space _space,
Potential2SoftSpherical potential,
double truncationRadius) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
protected double |
getdFdr(double r) |
|
protected double |
getF(double r) |
|
double |
getRange() |
Returns the truncation radius.
|
double |
getSwitchFac() |
|
double |
getTruncationRadius() |
Accessor method for the radial cutoff distance.
|
Dimension |
getTruncationRadiusDimension() |
Returns the dimension (length) of the radial cutoff distance.
|
PotentialSoft |
getWrappedPotential() |
Returns the wrapped potential.
|
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.
|
static void |
main(java.lang.String[] args) |
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
void |
setSwitchFac(double newSwitchFac) |
|
void |
setTruncationRadius(double rCut) |
Mutator method for the radial cutoff distance.
|
double |
virial(IAtomList atoms) |
nBody
protected double rCutoff
protected double r2Cutoff
protected final Potential2SoftSpherical potential
protected final Vector dr
protected Boundary boundary
protected final Vector[] gradient
protected int taperOrder
protected double switchFac
protected double r2Switch
public P2SoftSphericalTruncatedSwitched(Space _space, Potential2SoftSpherical potential, double truncationRadius)
public PotentialSoft getWrappedPotential()
public void setTruncationRadius(double rCut)
public double getTruncationRadius()
public double getSwitchFac()
public void setSwitchFac(double newSwitchFac)
public double getRange()
getRange
in interface IPotential
getRange
in class Potential
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
protected double getF(double r)
protected double getdFdr(double r)
public static void main(java.lang.String[] args)
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public double energy(IAtomList atoms)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Dimension getTruncationRadiusDimension()
public void setBox(Box newBox)
Potential
setBox
in interface IPotential
setBox
in class Potential