35 std::cout<<
"NULL Force"<<endl;
return a_;
44 std::cout<<
"NULL Force, Potential"<<endl;
return a_;
182 V0 = V0_;
R = R_;
a = a_;
202 Double_t
V0 = 0.0536772;
Electric (Coulomb) force between the charges of two particles.
Double_t softening
softening length in fm
Double_t GetSoftening()
The softening length eps in fm.
TVector3 Evaluate(particle *p1_, particle *p2_)
Coulomb force on p1_ by p2_ (amu c^2/fm), see the class description.
Double_t Potential(particle *p1_, particle *p2_)
Coulomb potential energy of the pair (amu c^2), see the class description.
Double_t GetK()
k in amu c^2 fm / e^2.
void SetK(Double_t k_)
Set k in amu c^2 fm / e^2.
coulombForce()
Make the force with k = 0.00154629 and no softening.
Double_t coulombK
k in amu c^2 fm / e^2
void SetSoftening(Double_t eps_)
Set the softening length eps in fm (0 : none).
Base class of the pairwise forces.
virtual TVector3 Evaluate(particle *p1_, particle *p2_)
Force on the first particle by the second.
force()
Only subclasses can be made.
virtual Double_t Potential(particle *p1_, particle *p2_)
Potential energy of the pair (amu c^2).
virtual ~force()
Virtual : a force deleted through force* must run the subclass destructor.
A point body with mass, position, velocity, step count, time and an optional recorded path.
Newtonian gravity between the rest masses of two particles. Always attractive.
Double_t GetSoftening()
The softening length eps in fm.
Double_t Potential(particle *p1_, particle *p2_)
Gravitational potential energy of the pair (amu c^2).
Double_t gravityG
gravitational constant (amu^-1 c^2 fm)
universalForce()
Make the force with G = 1.2331e-39 and no softening.
Double_t softening
softening length in fm
TVector3 Evaluate(particle *p1_, particle *p2_)
Gravitational force on p1_ by p2_ (amu c^2/fm).
void SetSoftening(Double_t eps_)
Set the softening length eps in fm (0 : none).
void SetG(Double_t g_)
Set the gravitational constant G.
Double_t GetG()
The gravitational constant G.
Woods-Saxon potential (nucleus-nucleus optical potential, real part).
void SetDepth(Double_t V0_)
Set the depth V0 in amu c^2.
Double_t GetRadius()
The radius R in fm.
Double_t GetDiffuseness()
The diffuseness a in fm.
void SetDiffuseness(Double_t a_)
Set the diffuseness a in fm.
Double_t Potential(particle *p1_, particle *p2_)
Woods-Saxon potential energy of the pair (amu c^2).
Double_t V0
depth in amu c^2
void SetRadius(Double_t R_)
Set the radius R in fm.
TVector3 Evaluate(particle *p1_, particle *p2_)
Woods-Saxon force on p1_ by p2_ (amu c^2/fm).
woodsSaxonForce(Double_t V0_=0.0536772, Double_t R_=8.886, Double_t a_=0.65)
Make the force.
Double_t GetDepth()
The depth V0 in amu c^2.
Double_t a
diffuseness in fm
Yukawa (meson exchange) potential, central, independent of charge and mass.
Double_t g
coupling in amu c^2 fm
TVector3 Evaluate(particle *p1_, particle *p2_)
Yukawa force on p1_ by p2_ (amu c^2/fm).
void SetRange(Double_t a_)
Set the range a in fm.
yukawaForce(Double_t g_=0.1, Double_t a_=1.4138)
Make the force.
Double_t GetRange()
The range a in fm.
Double_t Potential(particle *p1_, particle *p2_)
Yukawa potential energy of the pair (amu c^2).
Double_t GetCoupling()
The coupling g in amu c^2 fm.
void SetCoupling(Double_t g_)
Set the coupling g in amu c^2 fm.