IDataSource
public class MeterWidomInsertion extends DataSourceScalar
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected RandomPositionSource |
positionSource |
|
protected double |
pressure |
|
protected double |
temperature |
data, dataInfo, tag
Constructor | Description |
---|---|
MeterWidomInsertion(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
|
boolean |
isResidual() |
Accessor for flag specifying if full or residual chemical potential is
computed
|
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 |
setResidual(boolean b) |
Sets flag specifying if full or residual chemical potential is computed
Default is
true (only residual is computed) |
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 void setResidual(boolean b)
true
(only residual is computed)public boolean isResidual()
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()