IPotentialCalculationWallForce, PotentialCalculation, PotentialCalculationMolecularpublic class PotentialCalculationTorqueSumWallForce extends PotentialCalculationTorqueSum implements IPotentialCalculationWallForce
| Modifier and Type | Field | Description |
|---|---|---|
protected IPotential |
potentialTether |
|
protected double |
wallForce |
leafAgentManager, moleculeAgentManager| Constructor | Description |
|---|---|
PotentialCalculationTorqueSumWallForce(IPotential potentialTether) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Adds forces and torques due to given potential acting on the atoms produced by the iterator.
|
void |
doCalculation(IMoleculeList atoms,
IPotentialMolecular potential) |
Adds forces and torques due to given potential acting on the atoms produced by the iterator.
|
double |
getWallForce() |
|
void |
reset() |
Re-zeros the force vectors.
|
void |
setAgentManager(AtomLeafAgentManager agentManager) |
|
void |
setMoleculeAgentManager(MoleculeAgentManager newMoleculeAgentManager) |
protected final IPotential potentialTether
protected double wallForce
public PotentialCalculationTorqueSumWallForce(IPotential potentialTether)
public void setAgentManager(AtomLeafAgentManager agentManager)
setAgentManager in class PotentialCalculationTorqueSumpublic void setMoleculeAgentManager(MoleculeAgentManager newMoleculeAgentManager)
setMoleculeAgentManager in class PotentialCalculationTorqueSumpublic void reset()
reset in class PotentialCalculationTorqueSumpublic void doCalculation(IMoleculeList atoms, IPotentialMolecular potential)
doCalculation in interface PotentialCalculationMoleculardoCalculation in class PotentialCalculationTorqueSumatoms - IAtomSet the atom sets for which the calculation is performed.potential - The potential used to apply the action defined by this class.public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculationTorqueSumdoCalculation in interface PotentialCalculationdoCalculation in class PotentialCalculationTorqueSumatoms - IAtomSet the atom sets for which the calculation is performed.potential - The potential used to apply the action defined by this class.public double getWallForce()
getWallForce in interface IPotentialCalculationWallForce