IPotentialCalculationWallForce
, PotentialCalculation
, PotentialCalculationMolecular
public 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 PotentialCalculationTorqueSum
public void setMoleculeAgentManager(MoleculeAgentManager newMoleculeAgentManager)
setMoleculeAgentManager
in class PotentialCalculationTorqueSum
public void reset()
reset
in class PotentialCalculationTorqueSum
public void doCalculation(IMoleculeList atoms, IPotentialMolecular potential)
doCalculation
in interface PotentialCalculationMolecular
doCalculation
in class PotentialCalculationTorqueSum
atoms
- 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)
PotentialCalculationTorqueSum
doCalculation
in interface PotentialCalculation
doCalculation
in class PotentialCalculationTorqueSum
atoms
- 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