public class PotentialMasterList extends PotentialMasterNbr
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinkerenabled, isPotentialHard, iteratorFactory, lrcMaster, potentialListcriteria, criteria1Body, potentials0body, rangedPotentials, rangedPotentials1Body, simulation| Constructor | Description |
|---|---|
PotentialMasterList(Simulation sim,
double range,
NeighborListAgentSource neighborListAgentSource,
Space _space) |
|
PotentialMasterList(Simulation sim,
double range,
Space _space) |
|
PotentialMasterList(Simulation sim,
Space _space) |
Default constructor uses range of 1.0.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPotentialNbrList(IPotentialAtomic potential,
AtomType[] atomTypes,
NeighborCriterion criterion) |
Add the given potential to be used for the given atom types and the
given criterion.
|
protected void |
addRangedPotentialForTypes(IPotentialAtomic potential,
AtomType[] atomType) |
Adds the potential as a ranged potential that applies to the given
AtomTypes.
|
void |
calculate(Box box,
IteratorDirective id,
PotentialCalculation pc) |
Overrides superclass method to enable direct neighbor-list iteration
instead of iteration via species/potential hierarchy.
|
void |
calculate(Box box,
PotentialCalculation pc,
boolean includeLrc) |
|
BoxCellManager |
getBoxCellManager(Box box) |
|
int |
getCellRange() |
|
double |
getMaxPotentialRange() |
Returns the maximum range of any potential held by this potential master
|
NeighborCellManager |
getNbrCellManager(Box box) |
|
NeighborListManager |
getNeighborManager(Box box) |
|
double |
getRange() |
Returns the range that determines how far to look for neighbors.
|
double |
getSafetyFactor() |
Returns the safety factor.
|
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 |
setRange(double newRange) |
Sets the range that determines how far to look for neighbors.
|
void |
setSafetyFactor(double newSafetyFactor) |
Sets the safety factor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPotential, addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHardaddPotential, getCriteria, getCriteria1Body, getCriterion, getIntraPotentials, getRangedPotentials, getRangedPotentials, getRangedPotentials1Body, makePotentialGroup, potentialAddedNotify, setBoxForCriteria, setBoxForPotentials, setCriterion, setCriterion1Bodypublic PotentialMasterList(Simulation sim, Space _space)
public PotentialMasterList(Simulation sim, double range, Space _space)
public PotentialMasterList(Simulation sim, double range, NeighborListAgentSource neighborListAgentSource, Space _space)
public double getRange()
public void setRange(double newRange)
public double getMaxPotentialRange()
public double getSafetyFactor()
public void setSafetyFactor(double newSafetyFactor)
High values of the safetyFactor make it more probable that an Atom will move too far between checks and interact without the PotentialMaster knowing. Smaller values make it less probable, but slow down the simulation due to more frequent neighbor list constructing.
public int getCellRange()
public void setCellRange(int newCellRange)
public NeighborListManager getNeighborManager(Box box)
public NeighborCellManager getNbrCellManager(Box box)
public void addPotentialNbrList(IPotentialAtomic potential, AtomType[] atomTypes, NeighborCriterion criterion)
The given potential will not be held by a PotentialGroup.
protected void addRangedPotentialForTypes(IPotentialAtomic potential, AtomType[] atomType)
addRangedPotentialForTypes in class PotentialMasterNbrpublic void removePotential(IPotentialAtomic potential)
PotentialMasterremovePotential in class PotentialMasterNbrpublic BoxCellManager getBoxCellManager(Box box)
getBoxCellManager in class PotentialMasterNbrpublic void reset()
public void calculate(Box box, PotentialCalculation pc, boolean includeLrc)
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
calculate in class PotentialMaster