Added class for tertiary association process,
(i.e. class for density dependent cross section), corrected some comments
This commit is contained in:
@@ -55,6 +55,9 @@ namespace generator {
|
||||
// of either a TrackedSpecie or a BackgroundSpecie)
|
||||
// - a json-string "Product" (being a name of a tracked specie as defined in the json parameter file)
|
||||
// - a json-object "CrossSection" (as described in the "buildTotalCrossSection" function)
|
||||
// - a json-string "ClusteringType" specifying if the clustering is either a tertiary or radiative process
|
||||
// (if tertiary is chosen the specifed cross section function is only the rate coefficient diveded by the velocity (units: m^6/s / (m/s)))
|
||||
// otherwise it is handled as a "normal" cross section (m^2)
|
||||
//
|
||||
// if the Type is "ChargeExchange" (right now only if the species for which it's defined is the target with a charge of +1):
|
||||
// - a json-string "Target", containing the interaction partner (has to be the name given in the json file
|
||||
|
||||
@@ -11,7 +11,7 @@ class Specie;
|
||||
|
||||
namespace interaction {
|
||||
|
||||
// class for cluster formation interactions (A + B --> AB)
|
||||
// class for cluster formation interactions (A + B --> AB) or (A + BC --> AB + C)
|
||||
class ClusterFormation : public Interaction {
|
||||
public:
|
||||
// Constructor: takes the function describing the cross section (dependent on the energy of the incident particle)
|
||||
@@ -24,10 +24,26 @@ 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 */
|
||||
|
||||
@@ -52,8 +52,11 @@ std::function<double(double)> eT2_ionization_janev_diss_first();
|
||||
// return a function describing the cross section for radiative clustering of T⁺ and T₂:
|
||||
// T⁺ + T₂ --> T₃⁺ + h\nu
|
||||
std::function<double(double)> TpT2_clustering_radiative_ascendion_pasil();
|
||||
// return a function describing the cross section for tertiary clustering of T⁺ and T₂:
|
||||
// return a function describing the cross section up to the density of the T₂ at
|
||||
// the position of the interaction for tertiary clustering of T⁺ and T₂:
|
||||
// T⁺ + 2T₂ --> T₃⁺ + T₂
|
||||
// cross section = k_tertiary / velocity * density_target
|
||||
// return only a function calculating k_tertiary / velocity (k_tertiary: tertiary rate coefficient)
|
||||
std::function<double(double)> TpT2_clustering_tertiary_ascendion_pasil();
|
||||
// return a function describing the cross section for clustering of T₂⁺ and T₂:
|
||||
// T₂⁺ + T₂ --> T₃⁺ + T
|
||||
|
||||
@@ -17,7 +17,7 @@ class FreeMovement : public Interaction {
|
||||
RandomNumbers* generator);
|
||||
|
||||
// return the value of the cross section at the given energy (eV) (units: m^2)
|
||||
double microscopicCrossSection(double energy_eV);
|
||||
double microscopicCrossSection(double energy_eV, const Coordinate& position);
|
||||
// return the density scaled cross section value for the energy of the
|
||||
// Particle (units m^{-1})
|
||||
double macroscopicCrossSection(particle::Particle& particle);
|
||||
|
||||
@@ -44,7 +44,9 @@ class Interaction {
|
||||
std::shared_ptr<species::Specie> target);
|
||||
|
||||
// return the value of the cross section at the energy (in eV) energy_eV in m^2
|
||||
virtual double microscopicCrossSection(double energy_eV);
|
||||
// Coordinate position necessary for three body processes in which the
|
||||
// cross section depends on the density at the position (see "interactions/cluster_formation.h")
|
||||
virtual double microscopicCrossSection(double energy_eV, const Coordinate& position);
|
||||
// calculate the density scaled cross section for the Particle particle
|
||||
// interacting with the defined target Specie (returns cross section * target density) (units: m^-1)
|
||||
// assumes that v_particle >> v_target
|
||||
|
||||
Reference in New Issue
Block a user