PotentialCalculation
public class PotentialCalculationMappedVirialV extends java.lang.Object implements PotentialCalculation
Modifier and Type | Class | Description |
---|---|---|
static class |
PotentialCalculationMappedVirialV.UShift |
|
static class |
PotentialCalculationMappedVirialV.USine |
|
static interface |
PotentialCalculationMappedVirialV.VFunc |
Modifier and Type | Field | Description |
---|---|---|
protected IteratorDirective |
allAtoms |
|
protected double |
beta |
|
protected Box |
box |
|
protected double |
c1 |
|
protected double[] |
cumint |
|
protected boolean |
customVF |
|
protected Vector |
dr |
|
protected AtomLeafAgentManager<Vector> |
forceManager |
|
protected int |
nbins |
|
protected AtomPair |
pair |
|
protected double |
q |
|
protected double |
qu |
|
protected Space |
space |
|
protected double |
sum |
|
protected double |
vCut |
|
protected PotentialCalculationMappedVirialV.VFunc |
vf |
|
protected double |
vol |
|
protected double |
vShift |
|
protected double |
x0 |
Constructor | Description |
---|---|
PotentialCalculationMappedVirialV(Space space,
Box box,
int nbins,
AtomLeafAgentManager<Vector> forceManager) |
Modifier and Type | Method | Description |
---|---|---|
protected double |
calcXs(double r) |
|
protected double |
cumint(double r) |
|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
double |
getPressure() |
|
double |
getQ() |
|
double |
getQU() |
|
double |
getX0() |
|
static void |
main(java.lang.String[] args) |
|
static void |
main2(java.lang.String[] args) |
|
void |
reset() |
|
void |
setTemperature(double T,
P2SoftSphericalTruncated p2) |
|
void |
setVCut(double newVCut) |
|
void |
setVFunc(PotentialCalculationMappedVirialV.VFunc newVF) |
|
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 qu
protected double vShift
protected final int nbins
protected double sum
protected double x0
protected double vCut
protected PotentialCalculationMappedVirialV.VFunc vf
protected boolean customVF
public PotentialCalculationMappedVirialV(Space space, Box box, int nbins, AtomLeafAgentManager<Vector> forceManager)
public static void main2(java.lang.String[] args)
public static void main(java.lang.String[] args)
public double getX0()
public void setVCut(double newVCut)
public void setVFunc(PotentialCalculationMappedVirialV.VFunc newVF)
public void setVolume(double newVol)
public void setTemperature(double T, P2SoftSphericalTruncated p2)
protected double calcXs(double r)
protected double cumint(double r)
public double getQ()
public double getQU()
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 getPressure()