public class SimulationVirialOverlap2 extends Simulation
Modifier and Type | Field | Description |
---|---|---|
protected DataPumpListener[] |
accumulatorPumps |
|
AccumulatorRatioAverageCovarianceFull[] |
accumulators |
|
AccumulatorAverageCovariance |
blockAccumulator |
|
protected long |
blockSize |
|
BoxCluster[] |
box |
|
protected double[] |
boxLengths |
|
protected boolean |
doWiggle |
|
DataProcessorVirialOverlap[] |
dpVirialOverlap |
|
DataVirialOverlap |
dvo |
|
protected ClusterAbstract[] |
extraTargetClusters |
|
protected boolean |
initialized |
|
IntegratorOverlap |
integratorOS |
|
IntegratorMC[] |
integrators |
|
MCMoveBoxStep[] |
mcMoveRotate |
|
MCMoveBoxStep[] |
mcMoveTranslate |
|
MCMoveBoxStep[] |
mcMoveWiggle |
|
MeterVirial[] |
meters |
|
protected int[] |
nMolecules |
|
protected int |
numAlpha |
|
int |
numExtraTargetClusters |
|
double |
refPref |
|
protected ClusterWeight[] |
sampleClusters |
|
protected ISpecies[] |
species |
|
protected HistogramSimple |
targHist |
|
protected HistogramNotSoSimple |
targPiHist |
|
protected double |
temperature |
|
protected ClusterAbstract[] |
valueClusters |
eventManager, random, seeds, space
Constructor | Description |
---|---|
SimulationVirialOverlap2(Space aSpace,
ISpecies[] species,
int[] nMolecules,
double temperature,
ClusterAbstract[] aValueClusters,
ClusterAbstract[] extraTargetClusters,
ClusterWeight[] aSampleClusters,
boolean doWiggle) |
|
SimulationVirialOverlap2(Space aSpace,
ISpecies[] species,
int[] nMolecules,
double temperature,
ClusterAbstract[] aValueClusters,
ClusterWeight[] aSampleClusters,
boolean doWiggle) |
|
SimulationVirialOverlap2(Space aSpace,
ISpecies[] species,
int[] nMolecules,
double temperature,
ClusterAbstract refCluster,
ClusterAbstract targetCluster) |
This constructor will create your simulation class, but you may call
set methods before using it.
|
SimulationVirialOverlap2(Space aSpace,
ISpecies species,
double temperature,
ClusterAbstract[] aValueClusters,
ClusterWeight[] aSampleClusters,
boolean doWiggle) |
|
SimulationVirialOverlap2(Space aSpace,
ISpecies species,
double temperature,
ClusterAbstract refCluster,
ClusterAbstract targetCluster) |
|
SimulationVirialOverlap2(Space aSpace,
ISpecies species,
double temperature,
ClusterAbstract refCluster,
ClusterAbstract targetCluster,
boolean doWiggle) |
|
SimulationVirialOverlap2(Space aSpace,
ISpecies species,
int nMolecules,
double temperature,
ClusterAbstract refCluster,
ClusterAbstract targetCluster) |
This constructor will create your simulation class, but you may call
set methods before using it.
|
Modifier and Type | Method | Description |
---|---|---|
IntegratorListener |
addProgressListener(double HSB,
long interval) |
Causes a progress report (coefficient value and uncertainty) 10 times
during the course of the simulation.
|
IntegratorListener |
addProgressListener(double HSB,
long interval,
boolean full) |
Causes a progress report (coefficient value and uncertainty) 10 times
during the course of the simulation.
|
void |
equilibrate(java.lang.String fileName,
long initSteps) |
|
void |
equilibrate(java.lang.String fileName,
long initSteps,
boolean runBlocking) |
|
double[] |
findUmbrellaWeights(java.lang.String uWeightsFileName,
long uSteps) |
|
boolean |
getDoWiggle() |
|
ClusterAbstract[] |
getExtraTargetClusters() |
|
Integrator |
getIntegrator() |
|
int |
getNumAlpha() |
Returns the number of alpha values used for the production stage of the
simulation
|
ClusterWeight[] |
getSampleClusters() |
|
void |
init() |
|
protected void |
initBlockAccumulator() |
|
void |
initRefPref(java.lang.String fileName,
long initSteps) |
|
void |
initRefPref(java.lang.String fileName,
long initSteps,
boolean runBlocking) |
|
void |
printResults(double refIntegral) |
|
void |
printResults(double refIntegral,
java.lang.String[] extraNames) |
|
void |
printTargetHistogram() |
Prints out the target histogram of maximum separation distances as
set up by setupTargetHistogram().
|
protected void |
readBoxRestart(java.io.BufferedReader br,
int iBox) |
|
long |
readRestart(java.lang.String restartFilename,
boolean readRef) |
|
void |
setAccumulatorBlockSize(long newBlockSize) |
|
void |
setBoxLengths(double refLength,
double targetLength) |
|
void |
setDoWiggle(boolean newDoWiggle) |
|
void |
setExtraTargetClusters(ClusterAbstract[] extraTargetClusters) |
|
void |
setNumAlpha(int newNumAlpha) |
Sets the number of alpha values used for the production stage of the
simulation.
|
void |
setRefPref(double newRefPref) |
|
void |
setRefPref(double refPrefCenter,
double span) |
|
void |
setSampleClusters(ClusterWeight[] sampleClusters) |
|
void |
setupTargetHistogram(long interval) |
Sets up a histogram for the target system that measures how often
maximum separation distances are visited.
|
void |
setWriteRestart(java.lang.String restartFilename,
boolean writeRef) |
|
protected void |
writeBoxRestart(java.io.FileWriter fw,
int iBox) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBox, addSpecies, box, getBox, getBoxCount, getBoxes, getController, getEventManager, getRandom, getRandomSeeds, getSpace, getSpecies, getSpeciesCount, getSpeciesList, makeBox, makeBox, makeUniqueElementSymbol, removeBox, setRandom, species
public final AccumulatorRatioAverageCovarianceFull[] accumulators
public final BoxCluster[] box
public final IntegratorMC[] integrators
public final MeterVirial[] meters
public final DataProcessorVirialOverlap[] dpVirialOverlap
protected final ISpecies[] species
protected final double temperature
protected final ClusterAbstract[] valueClusters
protected final int[] nMolecules
protected final ClusterWeight[] sampleClusters
public DataVirialOverlap dvo
public AccumulatorAverageCovariance blockAccumulator
public MCMoveBoxStep[] mcMoveRotate
public MCMoveBoxStep[] mcMoveTranslate
public MCMoveBoxStep[] mcMoveWiggle
public int numExtraTargetClusters
public IntegratorOverlap integratorOS
public double refPref
protected boolean initialized
protected boolean doWiggle
protected ClusterAbstract[] extraTargetClusters
protected DataPumpListener[] accumulatorPumps
protected long blockSize
protected int numAlpha
protected HistogramSimple targHist
protected HistogramNotSoSimple targPiHist
protected double[] boxLengths
public SimulationVirialOverlap2(Space aSpace, ISpecies species, int nMolecules, double temperature, ClusterAbstract refCluster, ClusterAbstract targetCluster)
public SimulationVirialOverlap2(Space aSpace, ISpecies[] species, int[] nMolecules, double temperature, ClusterAbstract refCluster, ClusterAbstract targetCluster)
public SimulationVirialOverlap2(Space aSpace, ISpecies species, double temperature, ClusterAbstract refCluster, ClusterAbstract targetCluster)
public SimulationVirialOverlap2(Space aSpace, ISpecies species, double temperature, ClusterAbstract refCluster, ClusterAbstract targetCluster, boolean doWiggle)
public SimulationVirialOverlap2(Space aSpace, ISpecies species, double temperature, ClusterAbstract[] aValueClusters, ClusterWeight[] aSampleClusters, boolean doWiggle)
public SimulationVirialOverlap2(Space aSpace, ISpecies[] species, int[] nMolecules, double temperature, ClusterAbstract[] aValueClusters, ClusterWeight[] aSampleClusters, boolean doWiggle)
public SimulationVirialOverlap2(Space aSpace, ISpecies[] species, int[] nMolecules, double temperature, ClusterAbstract[] aValueClusters, ClusterAbstract[] extraTargetClusters, ClusterWeight[] aSampleClusters, boolean doWiggle)
public boolean getDoWiggle()
public void setDoWiggle(boolean newDoWiggle)
public ClusterAbstract[] getExtraTargetClusters()
public void setExtraTargetClusters(ClusterAbstract[] extraTargetClusters)
public ClusterWeight[] getSampleClusters()
public void setSampleClusters(ClusterWeight[] sampleClusters)
public void setBoxLengths(double refLength, double targetLength)
public void init()
public void setAccumulatorBlockSize(long newBlockSize)
public void setRefPref(double refPrefCenter, double span)
public int getNumAlpha()
public void setNumAlpha(int newNumAlpha)
protected void initBlockAccumulator()
public void setRefPref(double newRefPref)
public IntegratorListener addProgressListener(double HSB, long interval)
public IntegratorListener addProgressListener(double HSB, long interval, boolean full)
public void setupTargetHistogram(long interval)
public void printTargetHistogram()
public double[] findUmbrellaWeights(java.lang.String uWeightsFileName, long uSteps)
public void initRefPref(java.lang.String fileName, long initSteps)
public void initRefPref(java.lang.String fileName, long initSteps, boolean runBlocking)
protected void readBoxRestart(java.io.BufferedReader br, int iBox) throws java.io.IOException
java.io.IOException
public long readRestart(java.lang.String restartFilename, boolean readRef)
public void equilibrate(java.lang.String fileName, long initSteps)
public void equilibrate(java.lang.String fileName, long initSteps, boolean runBlocking)
protected void writeBoxRestart(java.io.FileWriter fw, int iBox) throws java.io.IOException
java.io.IOException
public void setWriteRestart(java.lang.String restartFilename, boolean writeRef)
public void printResults(double refIntegral)
public void printResults(double refIntegral, java.lang.String[] extraNames)
public Integrator getIntegrator()
getIntegrator
in class Simulation