IPotential
, IPotentialMolecular
public class PotentialEmulCached extends PotentialEmul
Modifier and Type | Field | Description |
---|---|---|
protected int[] |
ids |
|
protected int |
lastCPairID |
|
protected double[] |
lastEnergies |
|
protected int |
maxNumAtoms |
boundary, emulEnergyUnit, execPath, r12Vec, r2Core, templateName
nBody, space
Constructor | Description |
---|---|
PotentialEmulCached(Space space,
java.lang.String templateName,
double rCore,
int maxNumAtoms) |
|
PotentialEmulCached(Space space,
java.lang.String templateName,
int maxNumAtoms) |
|
PotentialEmulCached(Space space,
java.lang.String templateName,
int nBody,
double rCore,
int maxNumAtoms) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IMoleculeList molecules) |
Returns the interaction energy between the given molecules.
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMolecules, getRange, main, makeInputFile, readOutputFile, runEmul
nBody
protected int lastCPairID
protected final int maxNumAtoms
protected final double[] lastEnergies
protected final int[] ids
public PotentialEmulCached(Space space, java.lang.String templateName, int maxNumAtoms)
public PotentialEmulCached(Space space, java.lang.String templateName, double rCore, int maxNumAtoms)
public PotentialEmulCached(Space space, java.lang.String templateName, int nBody, double rCore, int maxNumAtoms)
public double energy(IMoleculeList molecules)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialEmul
public void setBox(Box newBox)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialEmul