PotentialCalculation
public class PotentialCalculationMappedEnergy extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected IteratorDirective |
allAtoms |
|
protected double |
beta |
|
protected Box |
box |
|
protected double |
c1 |
|
protected double[] |
cumint |
|
protected Vector |
dr |
|
protected AtomLeafAgentManager<Vector> |
forceManager |
|
protected int |
nbins |
|
protected AtomPair |
pair |
|
protected double |
q |
|
protected double |
qp |
|
protected double |
qp_q |
|
protected Space |
space |
|
protected double |
sum |
|
protected double[] |
sum_separate |
|
protected double |
vCut |
|
protected double |
vol |
|
protected double |
vShift |
|
protected double |
x0 |
Constructor | Description |
---|---|
PotentialCalculationMappedEnergy(Space space,
Box box,
int nbins,
AtomLeafAgentManager<Vector> forceManager) |
Modifier and Type | Method | Description |
---|---|---|
protected double |
calcV(double r,
double u) |
|
protected double |
calcXs(double r,
double u) |
|
protected double |
cumint(double r) |
|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
double |
getEnergy() |
|
double |
getqp() |
|
double |
getQP_Q() |
|
double |
getX0() |
|
static void |
main(java.lang.String[] args) |
|
void |
reset() |
|
void |
setTemperature(double T,
Potential2SoftSpherical p2) |
|
void |
setVCut(double newVCut) |
|
void |
setVolume(double newVol) |
Sets volume to an arbitrary value (instead of the box volume).
|
protected final Box box
protected final IteratorDirective allAtoms
protected final AtomLeafAgentManager<Vector> forceManager
protected final Space space
protected double beta
protected final Vector dr
protected double c1
protected final double[] cumint
protected final AtomPair pair
protected double vol
protected double q
protected double qp
protected double qp_q
protected final int nbins
protected double sum
protected double[] sum_separate
protected double x0
protected double vCut
protected double vShift
public PotentialCalculationMappedEnergy(Space space, Box box, int nbins, AtomLeafAgentManager<Vector> forceManager)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public double getX0()
public void setVCut(double newVCut)
public void setVolume(double newVol)
public void setTemperature(double T, Potential2SoftSpherical p2)
protected double calcXs(double r, double u)
protected double calcV(double r, double u)
protected double cumint(double r)
public double getQP_Q()
public double getqp()
public void reset()
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculation
doCalculation
in interface PotentialCalculation
atoms
- IAtomSet the atom sets for which the calculation is performed.potential
- The potential used to apply the action defined by this class.public double getEnergy()