PotentialCalculation
public class PotentialCalculationForceSumWall extends PotentialCalculationForceSum
Modifier and Type | Field | Description |
---|---|---|
protected double |
wallForceSum |
|
protected P1WCAWall |
wallPotential |
integratorAgentManager
Constructor | Description |
---|---|
PotentialCalculationForceSumWall(P1WCAWall wallPotential) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Adds forces due to given potential acting on the atoms produced by the iterator.
|
double |
getWallForce() |
|
P1WCAWall |
getWallPotential() |
|
void |
reset() |
Re-zeros the force vectors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAgentManager
protected final P1WCAWall wallPotential
protected double wallForceSum
public PotentialCalculationForceSumWall(P1WCAWall wallPotential)
public P1WCAWall getWallPotential()
public void reset()
PotentialCalculationForceSum
reset
in class PotentialCalculationForceSum
public double getWallForce()
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculationForceSum
doCalculation
in interface PotentialCalculation
doCalculation
in class PotentialCalculationForceSum
atoms
- IAtomSet the atom sets for which the calculation is performed.potential
- The potential used to apply the action defined by this class.