public class MeterPressure extends DataSourceScalar
Modifier and Type | Field and Description |
---|---|
protected IBox |
box |
protected IPotentialMaster |
potentialMaster |
protected double |
temperature |
data, dataInfo, tag
Constructor and Description |
---|
MeterPressure(ISpace space) |
Modifier and Type | Method and Description |
---|---|
double |
getDataAsScalar()
Computes total pressure in box by summing virial over all pairs, and adding
ideal-gas contribution.
|
IntegratorBox |
getIntegrator()
Returns the integrator associated with this instance.
|
boolean |
isIncludeLrc()
Indicates whether calculated energy should include
long-range correction for potential truncation (true) or not (false).
|
void |
setBox(IBox newBox) |
void |
setIncludeLrc(boolean b)
Sets flag indicating whether calculated energy should include
long-range correction for potential truncation (true) or not (false).
|
void |
setIntegrator(IntegratorBox newIntegrator)
Sets the integrator associated with this instance.
|
void |
setPotentialMaster(IPotentialMaster newPotentialMaster) |
void |
setTemperature(double newTemperature) |
getData, getDataDouble, getDataInfo, getTag
protected IPotentialMaster potentialMaster
protected double temperature
protected IBox box
public MeterPressure(ISpace space)
public void setIntegrator(IntegratorBox newIntegrator)
public void setPotentialMaster(IPotentialMaster newPotentialMaster)
public void setTemperature(double newTemperature)
public void setBox(IBox newBox)
public IntegratorBox getIntegrator()
public void setIncludeLrc(boolean b)
public boolean isIncludeLrc()
public double getDataAsScalar()
getDataAsScalar
in class DataSourceScalar