Applied correction to cluster formation
from karl_paper
This commit is contained in:
@@ -10,6 +10,8 @@ class Specie;
|
||||
|
||||
namespace interaction {
|
||||
|
||||
// class for (radiative) cluster formation interactions (A + B --> AB) 7
|
||||
// or (A + BC --> AB + C)
|
||||
class ClusterFormation : public Interaction {
|
||||
public:
|
||||
ClusterFormation(std::function<double(double)> cross_section,
|
||||
@@ -18,10 +20,27 @@ class ClusterFormation : public Interaction {
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
private:
|
||||
protected:
|
||||
std::shared_ptr<species::TrackedSpecie> product_;
|
||||
};
|
||||
|
||||
// class for tertiary association (A + B + B --> AB + B)
|
||||
class ClusterFormationTertiary : public ClusterFormation {
|
||||
public:
|
||||
// Constructor: takes the function describing the cross section (dependent on the energy of the incident particle)
|
||||
// and a shared_ptr to the Species that is the target in the interaction
|
||||
// and a shared_ptr to the TrackedSpecie that is the product of the interaction
|
||||
ClusterFormationTertiary(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target,
|
||||
std::shared_ptr<species::TrackedSpecie> product);
|
||||
|
||||
// due to only the rate coefficients being available the cross section is
|
||||
// approximated as sigma = rate_coefficient * density / velocity
|
||||
// (units of the tertiary rate coefficient m^6/s)
|
||||
double microscopicCrossSection(double energy_eV, const Coordinate& position);
|
||||
};
|
||||
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* CLUSTER_FORMATION_H */
|
||||
|
||||
@@ -13,7 +13,7 @@ class FreeMovement : public Interaction {
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
double microscopicCrossSection(double energy_eV);
|
||||
double microscopicCrossSection(double energy_eV, const Coordinate& position);
|
||||
double macroscopicCrossSection(particle::Particle& particle);
|
||||
double drawCollisionTime(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
|
||||
@@ -30,7 +30,7 @@ class Interaction {
|
||||
Interaction(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target);
|
||||
|
||||
virtual double microscopicCrossSection(double energy_eV);
|
||||
virtual double microscopicCrossSection(double energy_eV, const Coordinate& position);
|
||||
virtual double macroscopicCrossSection(particle::Particle& particle);
|
||||
|
||||
// return the time the given particle can travel in the laboratory frame
|
||||
|
||||
Reference in New Issue
Block a user