DataSourceIndependent, IDataSource, IntegratorHard.CollisionListenerpublic 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, getTagprotected 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.CollisionListenercollisionAction in class DataSourceTensorVirialHardprotected void addTensor(int iBin,
Tensor virialTensor)
public void setBinSize(double newBinSize)
public double getBinSize()
public void setIntegrator(IntegratorHard newIntegrator)
DataSourceTensorVirialHardsetIntegrator in class DataSourceTensorVirialHardprotected void setupProfileData()
public int getIndependentArrayDimension()
DataSourceIndependentgetIndependentArrayDimension in interface DataSourceIndependentpublic DataDoubleArray getIndependentData(int i)
DataSourceIndependentgetIndependentData in interface DataSourceIndependentpublic DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependentgetIndependentDataInfo in interface DataSourceIndependentpublic DataTag getIndependentTag()
DataSourceIndependentgetIndependentTag in interface DataSourceIndependent