step/stepcore
StepCore::CoulombForce Class Reference
[Physical forces]
#include <coulombforce.h>
Inheritance diagram for StepCore::CoulombForce:

Detailed Description
Coulomb electrostatic force.The force acts between pairs of charged bodies (currently only ChargedParticle) and equals:
where:
is CoulombForce::coulombConst
and
is ChargedParticle::charge of the first and second body
is difference of Particle::position of the first and second body
- Todo:
- Add interface for charged bodies, support bodies with distributed charge
Definition at line 82 of file coulombforce.h.
Public Member Functions | |
| void | calcForce (bool calcVariances) |
| double | coulombConst () const |
| CoulombForce (double coulombConst=Constants::Coulomb) | |
| CoulombForceErrors * | coulombForceErrors () |
| void | setCoulombConst (double coulombConst) |
Protected Member Functions | |
| ObjectErrors * | createObjectErrors () |
Protected Attributes | |
| double | _coulombConst |
Constructor & Destructor Documentation
| StepCore::CoulombForce::CoulombForce | ( | double | coulombConst = Constants::Coulomb |
) |
Member Function Documentation
| void StepCore::CoulombForce::calcForce | ( | bool | calcVariances | ) | [virtual] |
Calculate force.
Bodies can be accessed through this->world()->bodies()
Implements StepCore::Force.
Definition at line 48 of file coulombforce.cc.
| double StepCore::CoulombForce::coulombConst | ( | ) | const [inline] |
| CoulombForceErrors* StepCore::CoulombForce::coulombForceErrors | ( | ) | [inline] |
| ObjectErrors* StepCore::CoulombForce::createObjectErrors | ( | ) | [inline, protected, virtual] |
| void StepCore::CoulombForce::setCoulombConst | ( | double | coulombConst | ) | [inline] |
Member Data Documentation
double StepCore::CoulombForce::_coulombConst [protected] |
Definition at line 104 of file coulombforce.h.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference