Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth Class Reference

#include <G4INCLNuclearPotentialEnergyIsospinSmooth.hh>

Inheritance diagram for G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth:
G4INCL::NuclearPotential::NuclearPotentialIsospin G4INCL::NuclearPotential::INuclearPotential

Public Member Functions

 NuclearPotentialEnergyIsospinSmooth (const G4int A, const G4int Z, const G4bool pionPotential)
 
virtual ~NuclearPotentialEnergyIsospinSmooth ()
 
virtual G4double computePotentialEnergy (const Particle *const p) const
 
- Public Member Functions inherited from G4INCL::NuclearPotential::NuclearPotentialIsospin
 NuclearPotentialIsospin (const G4int A, const G4int Z, const G4bool pionPotential)
 
virtual ~NuclearPotentialIsospin ()
 
- Public Member Functions inherited from G4INCL::NuclearPotential::INuclearPotential
 INuclearPotential (const G4int A, const G4int Z, const G4bool pionPot)
 
virtual ~INuclearPotential ()
 
G4bool hasPionPotential () const
 Do we have a pion potential? More...
 
G4double getFermiEnergy (const Particle *const p) const
 Return the Fermi energy for a particle. More...
 
G4double getFermiEnergy (const ParticleType t) const
 Return the Fermi energy for a particle type. More...
 
G4double getSeparationEnergy (const Particle *const p) const
 Return the separation energy for a particle. More...
 
G4double getSeparationEnergy (const ParticleType t) const
 Return the separation energy for a particle type. More...
 
G4double getFermiMomentum (const Particle *const p) const
 Return the Fermi momentum for a particle. More...
 
G4double getFermiMomentum (const ParticleType t) const
 Return the Fermi momentum for a particle type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from G4INCL::NuclearPotential::INuclearPotential
G4double computePionPotentialEnergy (const Particle *const p) const
 Compute the potential energy for the given pion. More...
 
- Protected Attributes inherited from G4INCL::NuclearPotential::INuclearPotential
const G4int theA
 The mass number of the nucleus. More...
 
const G4int theZ
 The charge number of the nucleus. More...
 
std::map< ParticleType, G4doublefermiEnergy
 
std::map< ParticleType, G4doublefermiMomentum
 
std::map< ParticleType, G4doubleseparationEnergy
 

Detailed Description

Definition at line 56 of file G4INCLNuclearPotentialEnergyIsospinSmooth.hh.

Constructor & Destructor Documentation

G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth::NuclearPotentialEnergyIsospinSmooth ( const G4int  A,
const G4int  Z,
const G4bool  pionPotential 
)

Definition at line 59 of file G4INCLNuclearPotentialEnergyIsospinSmooth.cc.

60  : NuclearPotentialIsospin(A,Z,aPionPotential)
61  {}
NuclearPotentialIsospin(const G4int A, const G4int Z, const G4bool pionPotential)
G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth::~NuclearPotentialEnergyIsospinSmooth ( )
virtual

Definition at line 64 of file G4INCLNuclearPotentialEnergyIsospinSmooth.cc.

64 {}

Member Function Documentation

G4double G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth::computePotentialEnergy ( const Particle *const  p) const
virtual

Reimplemented from G4INCL::NuclearPotential::NuclearPotentialIsospin.

Definition at line 66 of file G4INCLNuclearPotentialEnergyIsospinSmooth.cc.

References G4INCL::NuclearPotential::NuclearPotentialIsospin::computePotentialEnergy(), G4INCL::NuclearPotential::INuclearPotential::getFermiEnergy(), G4INCL::Particle::getKineticEnergy(), G4INCL::Particle::isNucleon(), and test::v.

66  {
67 
69 
70  if(particle->isNucleon()) {
71  const G4double t = particle->getKineticEnergy();
72  const G4double tf = getFermiEnergy(particle);
73  // Constant potential for T<Tf
74  if(t < tf)
75  return v0;
76 
77  // Linear function for Tf<T<T0, exponential function for T>T0
78  const G4double t0 = tf + v0*(1.-alpha)/alpha - deltaE; // deltaE before the linear potential vanishes
79  G4double v;
80  if(t<t0) {
81  v = v0 - alpha*(t-tf)/(1.-alpha);
82  } else {
83  const G4double v_at_t0 = v0 - alpha*(t0-tf)/(1.-alpha);
84  const G4double kappa = alpha / (v_at_t0 * (1.-alpha));
85  v = v_at_t0 * std::exp(kappa * (t0-t));
86  }
87  return (v>0.0) ? v : 0.0;
88  } else
89  return v0;
90  }
virtual G4double computePotentialEnergy(const Particle *const p) const
G4double getFermiEnergy(const Particle *const p) const
Return the Fermi energy for a particle.
double G4double
Definition: G4Types.hh:76

The documentation for this class was generated from the following files: