IDataSource
, IntegratorHard.CollisionListener
DataSourceWallPressure
, MeterOsmoticPressure
public class MeterPressureHard extends DataSourceScalar implements IntegratorHard.CollisionListener
Modifier and Type | Field | Description |
---|---|---|
protected int |
dim |
|
protected IntegratorHard |
integratorHard |
|
protected double |
lastTime |
|
protected double |
virialSum |
data, dataInfo, tag
Constructor | Description |
---|---|
MeterPressureHard(IntegratorHard integrator) |
Modifier and Type | Method | Description |
---|---|---|
void |
collisionAction(IntegratorHard.Agent agent) |
Implementation of CollisionListener interface
Adds collision virial (from potential) to accumulator
|
double |
collisionValue(IntegratorHard.Agent agent) |
Implementation of Meter.MeterCollisional interface.
|
double |
getDataAsScalar() |
Returns P = (NT - (virial sum)/((elapsed time)*T*(space dimension)))/V
Virial sum and elapsed time apply to period since last call to this method.
|
IntegratorHard |
getIntegrator() |
|
void |
reset() |
getData, getDataDouble, getDataInfo, getTag
protected final int dim
protected double virialSum
protected final IntegratorHard integratorHard
protected double lastTime
public MeterPressureHard(IntegratorHard integrator)
public void reset()
public double getDataAsScalar()
getDataAsScalar
in class DataSourceScalar
public void collisionAction(IntegratorHard.Agent agent)
collisionAction
in interface IntegratorHard.CollisionListener
public double collisionValue(IntegratorHard.Agent agent)
public IntegratorHard getIntegrator()