public class PotentialMasterList extends PotentialMasterNbr
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinker
enabled, isPotentialHard, iteratorFactory, lrcMaster, potentialList
criteria, 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, wait
addPotential, addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHard
addPotential, getCriteria, getCriteria1Body, getCriterion, getIntraPotentials, getRangedPotentials, getRangedPotentials, getRangedPotentials1Body, makePotentialGroup, potentialAddedNotify, setBoxForCriteria, setBoxForPotentials, setCriterion, setCriterion1Body
public 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 PotentialMasterNbr
public void removePotential(IPotentialAtomic potential)
PotentialMaster
removePotential
in class PotentialMasterNbr
public BoxCellManager getBoxCellManager(Box box)
getBoxCellManager
in class PotentialMasterNbr
public void reset()
public void calculate(Box box, PotentialCalculation pc, boolean includeLrc)
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
calculate
in class PotentialMaster