public class PotentialMasterListMolecular extends PotentialMasterNbrMolecular
Modifier and Type | Class | Description |
---|---|---|
static class |
PotentialMasterListMolecular.NeighborListAgentSourceMolecular |
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinker
Modifier and Type | Field | Description |
---|---|---|
protected NeighborCriterionMolecular[] |
allCriteria |
|
protected MoleculePair |
moleculePair |
|
protected MoleculeSetSinglet |
moleculeSetSinglet |
|
protected BoxAgentManager<NeighborListManagerMolecular> |
neighborListAgentManager |
|
protected PotentialMasterListMolecular.NeighborListAgentSourceMolecular |
neighborListAgentSource |
|
protected double |
range |
|
protected Space |
space |
enabled, isPotentialHard, iteratorFactory, lrcMaster, potentialList
allPotentials, boxAgentManager, boxAgentSource, rangedAgentManager, simulation, speciesAgentManager
Constructor | Description |
---|---|
PotentialMasterListMolecular(Simulation sim,
double range,
IMoleculePositionDefinition positionDefinition,
Space _space) |
Constructs class using given position definition for all atom cell
assignments.
|
PotentialMasterListMolecular(Simulation sim,
double range,
BoxAgentSourceCellManagerListMolecular boxAgentSource,
BoxAgentManager<? extends BoxCellManager> agentManager,
PotentialMasterListMolecular.NeighborListAgentSourceMolecular neighborListAgentSource,
Space _space) |
|
PotentialMasterListMolecular(Simulation sim,
double range,
BoxAgentSourceCellManagerListMolecular boxAgentSource,
BoxAgentManager<? extends BoxCellManager> agentManager,
Space _space) |
|
PotentialMasterListMolecular(Simulation sim,
double range,
BoxAgentSourceCellManagerListMolecular boxAgentSource,
Space _space) |
|
PotentialMasterListMolecular(Simulation sim,
double range,
Space _space) |
Constructor specifying space and range for neighbor listing; uses null AtomPositionDefinition.
|
PotentialMasterListMolecular(Simulation sim,
Space _space) |
Default constructor uses range of 1.0.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
addRangedPotentialForSpecies(IPotentialMolecular potential,
ISpecies[] species) |
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.
|
protected void |
calculate(IMolecule molecule,
IteratorDirective.Direction direction,
PotentialCalculation pc,
NeighborListManagerMolecular neighborManager) |
|
protected void |
doNBodyStuff(IMolecule molecule,
PotentialCalculation pc,
int potentialIndex,
IPotentialMolecular potential,
NeighborListManagerMolecular neighborManager) |
Invokes the PotentialCalculationMolecular for the given Molecule with its up and down
neighbors as a single MoleculeSet.
|
int |
getCellRange() |
|
NeighborCriterionMolecular |
getCriterion(IPotentialMolecular 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
|
NeighborCellManagerMolecular |
getNbrCellManager(Box box) |
|
NeighborCriterionMolecular[] |
getNeighborCriteria() |
|
NeighborListManagerMolecular |
getNeighborManager(Box 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(IPotentialMolecular 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(IPotentialMolecular potential,
NeighborCriterionMolecular 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPotential, addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, potentialAddedNotify, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHard
addPotential, addRangedPotential, getCellAgentManager, getIntraPotentials, getRangedPotentials, getSimulation, makePotentialGroup
protected final Space space
protected final MoleculeSetSinglet moleculeSetSinglet
protected final MoleculePair moleculePair
protected final PotentialMasterListMolecular.NeighborListAgentSourceMolecular neighborListAgentSource
protected final BoxAgentManager<NeighborListManagerMolecular> neighborListAgentManager
protected double range
protected NeighborCriterionMolecular[] allCriteria
public PotentialMasterListMolecular(Simulation sim, Space _space)
public PotentialMasterListMolecular(Simulation sim, double range, Space _space)
public PotentialMasterListMolecular(Simulation sim, double range, IMoleculePositionDefinition positionDefinition, Space _space)
positionDefinition
- if null, specifies use of atom type's position definitionpublic PotentialMasterListMolecular(Simulation sim, double range, BoxAgentSourceCellManagerListMolecular boxAgentSource, Space _space)
public PotentialMasterListMolecular(Simulation sim, double range, BoxAgentSourceCellManagerListMolecular boxAgentSource, BoxAgentManager<? extends BoxCellManager> agentManager, Space _space)
public PotentialMasterListMolecular(Simulation sim, double range, BoxAgentSourceCellManagerListMolecular boxAgentSource, BoxAgentManager<? extends BoxCellManager> agentManager, PotentialMasterListMolecular.NeighborListAgentSourceMolecular neighborListAgentSource, Space _space)
public void setRange(double newRange)
public double getRange()
public double getMaxPotentialRange()
public void setSafetyFactor(double newSafetyFactor)
public double getSafetyFactor()
protected void addRangedPotentialForSpecies(IPotentialMolecular potential, ISpecies[] species)
addRangedPotentialForSpecies
in class PotentialMasterNbrMolecular
public void reset()
public void recomputeCriteriaRanges()
public NeighborCriterionMolecular getCriterion(IPotentialMolecular potential)
public void setCriterion(IPotentialMolecular potential, NeighborCriterionMolecular criterion)
public void removePotential(IPotentialMolecular potential)
PotentialMaster
removePotential
in class PotentialMasterNbrMolecular
public NeighborCriterionMolecular[] getNeighborCriteria()
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
calculate
in class PotentialMaster
protected void calculate(IMolecule molecule, IteratorDirective.Direction direction, PotentialCalculation pc, NeighborListManagerMolecular neighborManager)
protected void doNBodyStuff(IMolecule molecule, PotentialCalculation pc, int potentialIndex, IPotentialMolecular potential, NeighborListManagerMolecular neighborManager)
public NeighborListManagerMolecular getNeighborManager(Box box)
public NeighborCellManagerMolecular getNbrCellManager(Box box)
public void setCellRange(int newCellRange)
public int getCellRange()