IDataSource
public class MeterWidomInsertionCorrection extends java.lang.Object implements IDataSource
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected DataDoubleArray |
data |
|
protected DataDoubleArray.DataInfoDoubleArray |
dataInfo |
Number of insertions attempted in each call to currentValue Default is
100
|
double |
epsFactor |
|
protected RandomPositionSource |
positionSource |
|
protected double |
pressureFast |
|
protected double |
pressureFull |
|
protected boolean |
residual |
|
protected DataTag |
tag |
|
protected double |
temperature |
|
protected double |
uFac |
|
protected double |
v0 |
|
protected IFunction |
vBias |
Constructor | Description |
---|---|
MeterWidomInsertionCorrection(Space space,
IRandom random) |
Modifier and Type | Method | Description |
---|---|---|
IData |
getData() |
Performs a Widom insertion average, doing nInsert insertion attempts
Temperature used to get exp(-uTest/kT) is that of the integrator for the
box
|
IDataInfo |
getDataInfo() |
|
int |
getNInsert() |
Accessor to number of Widom insertions attempted with each call to
currentValue
|
RandomPositionSource |
getPositionSource() |
Returns the RandomPositionSource used by this meter.
|
ISpecies |
getSpecies() |
Accessor for the species for which chemical potential is evaluated
|
DataTag |
getTag() |
|
void |
setBox(Box newBox) |
|
void |
setEnergyFac(double newEnergyFac) |
|
void |
setEnergyMeter(MeterPotentialEnergy newEnergyMeterFast,
MeterPotentialEnergy newEnergyMeterFull) |
|
void |
setNInsert(int n) |
Number of Widom insertions attempted with each call to currentValue
|
void |
setPositionSource(RandomPositionSource newPositionSource) |
Sets a new RandomPositionSource for this meter to use.
|
void |
setPressure(double newPressureFast,
double newPressureFull,
IFunction vBias) |
|
void |
setResidual(boolean newResidual) |
|
void |
setSpecies(ISpecies s) |
Sets the species, takes a prototype molecule, and gets handle to
appropriate species agent in box
|
void |
setTemperature(double newTemperature) |
protected final DataDoubleArray.DataInfoDoubleArray dataInfo
protected final DataDoubleArray data
protected final DataTag tag
protected RandomPositionSource positionSource
protected Box box
protected double temperature
protected double uFac
public double epsFactor
protected boolean residual
protected double pressureFast
protected double pressureFull
protected double v0
protected IFunction vBias
public void setSpecies(ISpecies s)
public ISpecies getSpecies()
public void setEnergyFac(double newEnergyFac)
public void setNInsert(int n)
public int getNInsert()
public void setResidual(boolean newResidual)
public void setPressure(double newPressureFast, double newPressureFull, IFunction vBias)
public IData getData()
getData
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public void setEnergyMeter(MeterPotentialEnergy newEnergyMeterFast, MeterPotentialEnergy newEnergyMeterFull)
public void setBox(Box newBox)
public void setTemperature(double newTemperature)
public void setPositionSource(RandomPositionSource newPositionSource)
public RandomPositionSource getPositionSource()