IDataSource
public class MeterWidomInsertionP extends DataSourceScalar
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected BoxInflate |
boxInflate |
|
double |
epsFactor |
|
protected RandomPositionSource |
positionSource |
|
protected double |
pressure |
|
protected double |
temperature |
data, dataInfo, tag
Constructor | Description |
---|---|
MeterWidomInsertionP(Space space,
IRandom random) |
Modifier and Type | Method | Description |
---|---|---|
double |
getDataAsScalar() |
Performs a Widom insertion average, doing nInsert insertion attempts
Temperature used to get exp(-uTest/kT) is that of the integrator for the
box
|
IntegratorBox |
getIntegrator() |
Returns the integrator associated with this class.
|
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
|
void |
setBox(Box newBox) |
|
void |
setEnergyMeter(MeterPotentialEnergy newEnergyMeter) |
|
void |
setIntegrator(IntegratorBox newIntegrator) |
Sets the integrator associated with this class.
|
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 newPressure) |
|
void |
setSpecies(ISpecies s) |
Sets the species, takes a prototype molecule, and gets handle to
appropriate species agent in box
|
void |
setTemperature(double newTemperature) |
getData, getDataDouble, getDataInfo, getTag
protected RandomPositionSource positionSource
protected Box box
protected double temperature
protected double pressure
public double epsFactor
protected BoxInflate boxInflate
public void setSpecies(ISpecies s)
public ISpecies getSpecies()
public void setNInsert(int n)
public int getNInsert()
public void setPressure(double newPressure)
public double getDataAsScalar()
getDataAsScalar
in class DataSourceScalar
residual
is falsepublic IntegratorBox getIntegrator()
public void setIntegrator(IntegratorBox newIntegrator)
public void setEnergyMeter(MeterPotentialEnergy newEnergyMeter)
public void setBox(Box newBox)
public void setTemperature(double newTemperature)
public void setPositionSource(RandomPositionSource newPositionSource)
public RandomPositionSource getPositionSource()