IDataSource
protected static class SimEinStep2.MeterPotentialEnergyComposite extends MeterPotentialEnergy
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
hasTarget |
|
protected double |
lambda |
|
protected double |
latticeEnergy |
|
protected MeterPotentialEnergy |
meterPE1 |
|
protected MeterPotentialEnergy |
meterPE2 |
|
protected int |
nMolecules |
data, dataInfo, tag
box, energy, iteratorDirective, potential
Modifier | Constructor | Description |
---|---|---|
protected |
MeterPotentialEnergyComposite(PotentialMaster potentialMaster1,
PotentialMaster potentialMaster2,
double latticeEnergy,
int nMolecules) |
Modifier and Type | Method | Description |
---|---|---|
Box |
getBox() |
|
double |
getDataAsScalar() |
Computes total potential energy for box.
|
double |
getLambda() |
|
boolean |
isIncludeLrc() |
Indicates whether calculated energy should include
long-range correction for potential truncation (true) or not (false).
|
void |
setBox(Box box) |
|
void |
setIncludeLrc(boolean b) |
Sets flag indicating whether calculated energy should include
long-range correction for potential truncation (true) or not (false).
|
void |
setLambda(double newFrac) |
|
void |
setTarget(IAtom atom) |
|
void |
setTarget(IMolecule mole) |
getData, getDataDouble, getDataInfo, getTag
setPotentialCalculation
protected final MeterPotentialEnergy meterPE1
protected final MeterPotentialEnergy meterPE2
protected final int nMolecules
protected double lambda
protected double latticeEnergy
protected boolean hasTarget
protected MeterPotentialEnergyComposite(PotentialMaster potentialMaster1, PotentialMaster potentialMaster2, double latticeEnergy, int nMolecules)
public double getLambda()
public void setLambda(double newFrac)
public Box getBox()
getBox
in class MeterPotentialEnergy
public void setBox(Box box)
setBox
in class MeterPotentialEnergy
box
- The box to set.public boolean isIncludeLrc()
MeterPotentialEnergy
isIncludeLrc
in class MeterPotentialEnergy
public void setIncludeLrc(boolean b)
MeterPotentialEnergy
setIncludeLrc
in class MeterPotentialEnergy
public void setTarget(IAtom atom)
setTarget
in class MeterPotentialEnergy
public void setTarget(IMolecule mole)
setTarget
in class MeterPotentialEnergy
public double getDataAsScalar()
MeterPotentialEnergy
getDataAsScalar
in class MeterPotentialEnergy