DataSourceIndependent
, IDataSource
, IntegratorHard.CollisionListener
public class DataSourceTensorVirialHardProfile extends DataSourceTensorVirialHard implements DataSourceIndependent
Modifier and Type | Class | Description |
---|---|---|
static class |
DataSourceTensorVirialHardProfile.DataSourceVirialProfile |
Modifier and Type | Field | Description |
---|---|---|
protected double |
binSize |
|
protected double |
halfL |
|
protected double |
L |
|
protected double |
lastProfileTime |
|
protected double |
Li |
|
protected int |
nBins |
|
protected DataGroup |
profileData |
|
protected DataGroup.DataInfoGroup |
profileDataInfo |
|
protected double[][] |
virialProfile |
|
protected double[][] |
virialProfileWork |
|
protected DataDoubleArray |
xData |
|
protected DataDoubleArray.DataInfoDoubleArray |
xDataInfo |
|
protected DataTag |
xTag |
data, dataInfo, integratorHard, lastTime, tag, work
Constructor | Description |
---|---|
DataSourceTensorVirialHardProfile(Space space) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addTensor(int iBin,
Tensor virialTensor) |
Adds the given contribution to the virial sum for bin iBin.
|
void |
collisionAction(IntegratorHard.Agent agent) |
Sums contribution to virial for each collision.
|
double |
getBinSize() |
|
int |
getIndependentArrayDimension() |
Returns the number of independent data dimensions
|
DataDoubleArray |
getIndependentData(int i) |
Returns the X data for the given dimension
|
DataDoubleArray.DataInfoDoubleArray |
getIndependentDataInfo(int i) |
Returns the DataInfo for the given dimension
|
DataTag |
getIndependentTag() |
Returns the tag associated with this DataSource.
|
DataGroup.DataInfoGroup |
getProfileDataInfo() |
|
DataGroup |
getVirialProfile() |
Current value of the meter, obtained by dividing sum of collision virial contributions by time elapsed since last call.
|
void |
setBinSize(double newBinSize) |
|
void |
setIntegrator(IntegratorHard newIntegrator) |
Informs meter of the integrator for its box, and zeros elapsed-time counter
|
protected void |
setupProfileData() |
collisionValue, getData, getDataInfo, getIntegrator, getTag
protected double lastProfileTime
protected DataGroup profileData
protected double[][] virialProfile
protected double[][] virialProfileWork
protected DataGroup.DataInfoGroup profileDataInfo
protected DataDoubleArray xData
protected DataDoubleArray.DataInfoDoubleArray xDataInfo
protected final DataTag xTag
protected double binSize
protected double L
protected double Li
protected double halfL
protected int nBins
public DataSourceTensorVirialHardProfile(Space space)
public DataGroup getVirialProfile()
public DataGroup.DataInfoGroup getProfileDataInfo()
public void collisionAction(IntegratorHard.Agent agent)
collisionAction
in interface IntegratorHard.CollisionListener
collisionAction
in class DataSourceTensorVirialHard
protected void addTensor(int iBin, Tensor virialTensor)
public void setBinSize(double newBinSize)
public double getBinSize()
public void setIntegrator(IntegratorHard newIntegrator)
DataSourceTensorVirialHard
setIntegrator
in class DataSourceTensorVirialHard
protected void setupProfileData()
public int getIndependentArrayDimension()
DataSourceIndependent
getIndependentArrayDimension
in interface DataSourceIndependent
public DataDoubleArray getIndependentData(int i)
DataSourceIndependent
getIndependentData
in interface DataSourceIndependent
public DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependent
getIndependentDataInfo
in interface DataSourceIndependent
public DataTag getIndependentTag()
DataSourceIndependent
getIndependentTag
in interface DataSourceIndependent