Adsorption
, AshtonWildingLJ
, AshtonWildingOsmoticVirial
, AshtonWildingVirial
, Catalysis
, CH4NVT
, ChainEquilibriumSim
, ChainHSMD3D
, ClathrateHarmonicFE
, ColloidSim
, DCVGCMD
, DCVGCMD
, DHS_NVT
, DHS_NVT
, DimerApproach
, DipoleBox
, DipoleBoxMatrix
, DLJ_NVT_1site
, DLJ_NVT_1site
, Droplet
, DropletAtomic
, EFSTungsten
, FindBetaN2AngleFromParameter
, FreeRadicalPolymerizationSim
, GCRestrictedGibbsHS
, GCWidomInsertHS
, GEMCWithRotation
, HarmonicAlphaNitrogenModel
, HarmonicAlphaNitrogenModelDecomposed
, HarmonicAlphaNitrogenModelLatticeSum
, HarmonicAlphaNitrogenModelPairMolecule
, HarmonicAlphaNitrogenModelPairMoleculeSequential
, HarmonicAlphaNitrogenModelPairMoleculeSequentialHalf2
, HarmonicAlphaNitrogenModelPairMoleculeSequentialHalf2LS
, HarmonicAlphaNitrogenModelPairMoleculeSequentialLS
, HarmonicBetaNitrogenModel
, HarmonicBetaNitrogenModelDecomposed
, HarmonicBetaNitrogenModelLatticeSum
, HarmonicBetaNitrogenModelPairMoleculeSequential
, HarmonicBetaNitrogenModelPairMoleculeSequential5dofLS
, HarmonicBetaNitrogenModelPairMoleculeSequentialHalf2
, HarmonicBetaNitrogenModelPairMoleculeSequentialHalf2LS
, HarmonicBetaNitrogenModelPairMoleculeSequentialLS
, HarmonicDisorderedAlphaNitrogenModelPairMoleculeSequentialHalf2LS
, HarmonicDisorderedAlphaNitrogenModelPairMoleculeSequentialLS
, Heisenberg
, Heisenberg3Pair
, HeisenbergPair
, HessianDB
, HSDimerNPT
, HSMC2D
, HSMD2D
, HSMD2D_noNbr
, HSMD3D
, HSMD3DNoNbr
, HSMDCavity
, HSMDWidom
, HSNPT
, HSNPT2DSim
, HTTPSoftSphereSim
, Insertion
, InterfacialSW
, Ising
, LJMC
, LJMC
, LJMC
, LjMC3D
, LJMC3D
, LJMC3DDimer
, Ljmd
, LJMD
, LJMD2D
, LjMd3D
, LJMD3D
, LJMD3DNbr
, LJmuVT
, LJNPT
, LJNVT
, LJVacancyMin
, MappedU
, MappedVirialLJ
, MappedVirialLJVGr
, MaterialFracture
, MinimizationBetaNitrogenModel
, MinimizationBetaNitrogenModelLS
, MinimizationTIP4P
, MinimizeBetaNitrogenLatticeParameter
, MinimizeBetaNitrogenLatticeParameterFromFile
, MinimizeBetaNitrogenLatticeParameterLSFromFile
, MinimizeBetaNitrogenTranslationDOF
, MinimizeGammaNitrogenLatticeParameter
, MinimizeHCP
, Mu
, Multiharmonic
, MultiharmonicMC
, MultiharmonicMC
, MultiharmonicMC
, MultiharmonicMC
, NormalModeAnalysisDisplay1D
, NormalModeAnalysisDisplay2D
, NormalModeAnalysisDisplay3D
, NVTWidomInsertLJ
, OsmosisSim
, PistonCylinder
, PolydisperseHS
, ProtonDisorderGenerator
, ReactionEquilibrium
, ReverseOsmosis
, ReverseOsmosisWater
, Sam
, SelfAssemblySim
, SimBennet
, SimCalcJ
, SimCalcS
, SimCalcSLJ
, SimCalcSMorse
, SimCalcSSoftSphere2D
, SimCalcSSoftSphereFCC
, SimCalcSSoftSphereFCCSuperBox
, SimDimerLJadatom
, SimDirectBetaN2RP
, SimDirectBetaN2RPAngleToNoAngle
, SimDirectBetaN2RPInitPert
, SimDirectDisorderedAlphaN2RPInitPert
, SimEinStep1
, SimEinStep1HCP
, SimEinStep2
, SimEinStep2HCP
, SimFe
, SimFluidSoftSphere
, SimGCPMWaterMCNPT
, SimGCPMWaterMCNVT
, SimGlass
, SimHarmonic
, SimHarmonicUmbrella
, SimHSMDVacancy
, SimIdealGas
, SimKMCLJadatom
, SimLattice
, SimLJ
, SimLJHTTISuper
, SimLJHTTISuperHCP
, SimLJHTTISuperHCP2
, SimLJHTTISuperSFMD
, SimLJVacancy
, SimMappedRdf
, SimModesJ
, SimOverlap
, SimOverlapAlphaN2TP
, SimOverlapBetaN2RP
, SimOverlapBetaN2RPScaling
, SimOverlapBetaN2TP
, SimOverlapDisorderedAlphaN2RPScaling
, SimOverlapDisorderedAlphaN2TP
, SimOverlapLJ
, SimOverlapNitrogenModel
, SimOverlapSoftSphere
, SimOverlapSoftSphereDP
, SimOverlapSoftSphereEin
, SimOverlapSoftSphereEinHarm
, SimOverlapSoftSphereHCP
, SimOverlapSoftSphereReweighting
, SimOverlapSoftSphereSoftness
, SimOverlapSoftSphereSuperBox
, SimOverlapSoftSphereTP
, SimOverlapSoftSphereTPHCP
, SimOverlapSoftSphereTPSlantedBox
, SimOverlapSSnxy
, SimTarget
, SimTargetUmbrella
, SimulationAlphaNitrogenModel
, SimulationBetaNitrogenModel
, SimulationBetaNitrogenModelTest
, SimulationGammaNitrogenModel
, SimulationRheology
, SimulationVirial
, SimulationVirialOverlap2
, SimUmbrella
, SimUmbrellaSoftSphere
, SoftSphere3d
, StarPolymerMC
, StarPolymerMD
, Swmd
, SWMD2D
, SWMD3D
, SWVLESim
, TestAceticAcidMC3D_NPT
, TestEwaldTIP4PWater
, TestHSMD3D
, TestIGAssociationMC3D_NPT_DoubleSites
, TestLammpsLJ
, TestLJAssociationMC3D_NPT
, TestLJAssociationMC3D_NPT
, TestLJAssociationMC3D_NPT_DoubleSites
, TestLJAssociationMC3D_NVTOld
, TestLJGCMC3D
, TestLJMC3D
, TestLJMD3D
, TestSWChain
, TIP4P_NVT
, VLESim
, VLESim
, ZeoliteSimulation
public class Simulation
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected SimulationEventManager |
eventManager |
|
protected IRandom |
random |
|
protected int[] |
seeds |
|
protected Space |
space |
Constructor | Description |
---|---|
Simulation(Space space) |
Creates a new simulation using the given space
|
Modifier and Type | Method | Description |
---|---|---|
Box |
addBox(Box newBox) |
Adds a Box to the simulation.
|
void |
addSpecies(ISpecies species) |
Adds species to the list of all ISpecies in the simulation, and
notifies all Boxes of the addition.
|
Box |
box() |
Convenience method to retrieve the first (and typically only) Box in the simulation.
|
Box |
getBox(int index) |
Returns one of the simulation Boxes.
|
int |
getBoxCount() |
|
java.util.List<Box> |
getBoxes() |
Get all boxes in the simulation.
|
Controller |
getController() |
|
SimulationEventManager |
getEventManager() |
|
Integrator |
getIntegrator() |
|
IRandom |
getRandom() |
|
int[] |
getRandomSeeds() |
|
Space |
getSpace() |
|
ISpecies |
getSpecies(int index) |
Returns one of the simulation ISpecies.
|
int |
getSpeciesCount() |
|
java.util.List<ISpecies> |
getSpeciesList() |
|
Box |
makeBox() |
Creates a new Box with the default Boundary and adds it to the Simulation.
|
Box |
makeBox(Boundary boundary) |
Creates a new Box and adds it to the Simulation.
|
java.lang.String |
makeUniqueElementSymbol(java.lang.String symbolBase) |
Method to allow generation of unique string to identify Elements in the Simulation.
|
void |
removeBox(Box oldBox) |
Removes a Box to the simulation.
|
void |
setRandom(IRandom newRandom) |
Set the simulation's random number generator to the given one.
|
ISpecies |
species() |
Convenience method to return the first (and often only) ISpecies
in the simulation.
|
protected final Space space
protected final SimulationEventManager eventManager
protected int[] seeds
protected IRandom random
public Simulation(Space space)
space
- the space used to construct Vectors etc.public int[] getRandomSeeds()
public final java.util.List<Box> getBoxes()
Attempts to add or remove boxes from this list will throw UnsupportedOperationException, you must use the addBox and removeBox methods on Simulation.
public final Box box()
public final Box addBox(Box newBox)
newBox
- the Box being added.java.lang.IllegalArgumentException
- if newBox was already added to the simulation.public Box makeBox()
public Box makeBox(Boundary boundary)
boundary
- the boundary to use when constructing the Box.public final void removeBox(Box oldBox)
oldBox
- the Box being removed.java.lang.IllegalArgumentException
- if oldBox was not previously added to the simulation.public final Box getBox(int index)
index
- specifies the Box to be returned.public final int getBoxCount()
public final Controller getController()
public final Space getSpace()
public final IRandom getRandom()
public void setRandom(IRandom newRandom)
newRandom
- the new random number generator.public final SimulationEventManager getEventManager()
public final void addSpecies(ISpecies species)
species
- the Species being added.java.lang.IllegalArgumentException
- if species was already added.java.lang.IllegalStateException
- if a Box has already been added to the simulation.public final int getSpeciesCount()
public final ISpecies getSpecies(int index)
index
- specifies the ISpecies to be returned.public final java.util.List<ISpecies> getSpeciesList()
public final ISpecies species()
public java.lang.String makeUniqueElementSymbol(java.lang.String symbolBase)
symbolBase
- the base string.public Integrator getIntegrator()