|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.potential.PotentialMaster
etomica.nbr.PotentialMasterNbr
etomica.nbr.list.PotentialMasterList
public class PotentialMasterList
PotentialMaster used to implement neighbor listing. Instance of this class is given as an argument to the Simulation constructor.
| Nested Class Summary | |
|---|---|
protected static class |
PotentialMasterList.NeighborListAgentSource
|
| Nested classes/interfaces inherited from class etomica.potential.PotentialMaster |
|---|
PotentialMaster.AtomIterator0, PotentialMaster.PotentialLinker |
| Field Summary | |
|---|---|
protected NeighborCriterion[] |
allCriteria
|
protected AtomPair |
atomPair
|
protected AtomSetSinglet |
atomSetSinglet
|
protected BoxAgentManager |
neighborListAgentManager
|
protected PotentialMasterList.NeighborListAgentSource |
neighborListAgentSource
|
protected double |
range
|
protected ISpace |
space
|
| Fields inherited from class etomica.nbr.PotentialMasterNbr |
|---|
allPotentials, boxAgentManager, boxAgentSource, intraAgentManager, intraPotentialIterator, rangedAgentManager, rangedPotentialIterator, simulation |
| Fields inherited from class etomica.potential.PotentialMaster |
|---|
enabled, first, iteratorFactory, last, lrcMaster |
| Constructor Summary | |
|---|---|
PotentialMasterList(ISimulation sim,
double range,
BoxAgentSourceCellManagerList boxAgentSource,
BoxAgentManager agentManager,
ISpace _space)
|
|
PotentialMasterList(ISimulation sim,
double range,
BoxAgentSourceCellManagerList boxAgentSource,
BoxAgentManager agentManager,
PotentialMasterList.NeighborListAgentSource neighborListAgentSource,
ISpace _space)
|
|
PotentialMasterList(ISimulation sim,
double range,
BoxAgentSourceCellManagerList boxAgentSource,
ISpace _space)
|
|
PotentialMasterList(ISimulation sim,
double range,
IAtomPositionDefinition positionDefinition,
ISpace _space)
Constructs class using given position definition for all atom cell assignments. |
|
PotentialMasterList(ISimulation sim,
double range,
ISpace _space)
Constructor specifying space and range for neighbor listing; uses null AtomPositionDefinition. |
|
PotentialMasterList(ISimulation sim,
ISpace _space)
Default constructor uses range of 1.0. |
|
| Method Summary | |
|---|---|
protected void |
addRangedPotentialForTypes(IPotentialAtomic potential,
IAtomType[] atomType)
Adds the potential as a ranged potential that applies to the given AtomTypes. |
protected void |
calculate(IAtom atom,
IteratorDirective.Direction direction,
PotentialCalculation pc,
NeighborListManager neighborManager)
|
void |
calculate(IBox box,
IteratorDirective id,
PotentialCalculation pc)
Overrides superclass method to enable direct neighbor-list iteration instead of iteration via species/potential hierarchy. |
protected void |
calculate(IMolecule molecule,
IteratorDirective.Direction direction,
PotentialCalculation pc,
NeighborListManager neighborManager)
Performs given PotentialCalculation using potentials/neighbors associated with the given atom (if any). |
protected void |
doNBodyStuff(IAtom atom,
PotentialCalculation pc,
int potentialIndex,
IPotentialAtomic potential,
NeighborListManager neighborManager)
Invokes the PotentialCalculation for the given Atom with its up and down neighbors as a single AtomSet. |
int |
getCellRange()
|
NeighborCriterion |
getCriterion(IPotentialAtomic potential)
Returns the criterion used by to determine what atoms interact with the given potential. |
double |
getMaxPotentialRange()
Returns the maximum range of any potential held by this potential master |
NeighborCellManager |
getNbrCellManager(IBox box)
|
NeighborCriterion[] |
getNeighborCriteria()
|
NeighborListManager |
getNeighborManager(IBox box)
|
double |
getRange()
Returns the range that determines how far to look for neighbors. |
double |
getSafetyFactor()
Returns the safety factor. |
void |
recomputeCriteriaRanges()
Recomputes the range for all criterion based on our own range. |
void |
removePotential(IPotentialAtomic potential)
Removes given potential from the group. |
void |
reset()
Recomputes the maximum potential range (which might change without this class receiving notification) and readjust cell lists |
void |
setCellRange(int newCellRange)
|
void |
setCriterion(IPotentialAtomic potential,
NeighborCriterion criterion)
Sets the criterion associated with the given potential, overriding the default provided by the PotentialMasterList. |
void |
setRange(double newRange)
Sets the range that determines how far to look for neighbors. |
void |
setSafetyFactor(double newSafetyFactor)
Sets the safety factor. |
| Methods inherited from class etomica.nbr.PotentialMasterNbr |
|---|
addPotential, addRangedPotential, getCellAgentManager, getIntraPotentials, getRangedPotentials, getSimulation, getSpeciesAgentClass, makeAgent, makeAgent, makePotentialGroup, potentialAddedNotify, releaseAgent, releaseAgent |
| Methods inherited from class etomica.potential.PotentialMaster |
|---|
addModel, addPotential, addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ISpace space
protected final AtomSetSinglet atomSetSinglet
protected final AtomPair atomPair
protected final PotentialMasterList.NeighborListAgentSource neighborListAgentSource
protected final BoxAgentManager neighborListAgentManager
protected double range
protected NeighborCriterion[] allCriteria
| Constructor Detail |
|---|
public PotentialMasterList(ISimulation sim,
ISpace _space)
public PotentialMasterList(ISimulation sim,
double range,
ISpace _space)
public PotentialMasterList(ISimulation sim,
double range,
IAtomPositionDefinition positionDefinition,
ISpace _space)
positionDefinition - if null, specifies use of atom type's position definition
public PotentialMasterList(ISimulation sim,
double range,
BoxAgentSourceCellManagerList boxAgentSource,
ISpace _space)
public PotentialMasterList(ISimulation sim,
double range,
BoxAgentSourceCellManagerList boxAgentSource,
BoxAgentManager agentManager,
ISpace _space)
public PotentialMasterList(ISimulation sim,
double range,
BoxAgentSourceCellManagerList boxAgentSource,
BoxAgentManager agentManager,
PotentialMasterList.NeighborListAgentSource neighborListAgentSource,
ISpace _space)
| Method Detail |
|---|
public void setRange(double newRange)
public double getRange()
public double getMaxPotentialRange()
public void setSafetyFactor(double newSafetyFactor)
public double getSafetyFactor()
protected void addRangedPotentialForTypes(IPotentialAtomic potential,
IAtomType[] atomType)
addRangedPotentialForTypes in class PotentialMasterNbrpublic void reset()
public void recomputeCriteriaRanges()
public NeighborCriterion getCriterion(IPotentialAtomic potential)
public void setCriterion(IPotentialAtomic potential,
NeighborCriterion criterion)
public void removePotential(IPotentialAtomic potential)
IPotentialMaster
removePotential in interface IPotentialMasterremovePotential in class PotentialMasterNbrpublic NeighborCriterion[] getNeighborCriteria()
public void calculate(IBox box,
IteratorDirective id,
PotentialCalculation pc)
calculate in interface IPotentialMastercalculate in class PotentialMaster
protected void calculate(IMolecule molecule,
IteratorDirective.Direction direction,
PotentialCalculation pc,
NeighborListManager neighborManager)
protected void calculate(IAtom atom,
IteratorDirective.Direction direction,
PotentialCalculation pc,
NeighborListManager neighborManager)
protected void doNBodyStuff(IAtom atom,
PotentialCalculation pc,
int potentialIndex,
IPotentialAtomic potential,
NeighborListManager neighborManager)
public NeighborListManager getNeighborManager(IBox box)
public NeighborCellManager getNbrCellManager(IBox box)
public void setCellRange(int newCellRange)
public int getCellRange()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||