Applied correction to cluster formation
from karl_paper
This commit is contained in:
@@ -224,10 +224,26 @@ void addInteractions(
|
||||
std::shared_ptr<species::TrackedSpecie> product =
|
||||
findTracked(product_name, tracked_species);
|
||||
|
||||
std::string clustering_type =
|
||||
json_string(json_object_by_path(value, {"ClusteringType"}));
|
||||
|
||||
std::function<double(double)> cross_section =
|
||||
buildTotalCrossSection(json_object_by_path(value, {"CrossSection"}));
|
||||
specie->addInteraction(std::shared_ptr<interaction::Interaction>(
|
||||
new interaction::ClusterFormation(cross_section, target, product)));
|
||||
|
||||
if(clustering_type == "radiative") {
|
||||
specie->addInteraction(std::shared_ptr<interaction::Interaction>(
|
||||
new interaction::ClusterFormation(cross_section, target, product)));
|
||||
} else if (clustering_type == "tertiary") {
|
||||
SIM_INFO("Warning: tertiary clustering has been chosen. Be warned "
|
||||
"that the cross section function is scaled by the density "
|
||||
"of the target specie at the position of the interaction "
|
||||
"(cross section function assumed to have the units m^5)");
|
||||
specie->addInteraction(std::shared_ptr<interaction::Interaction>(
|
||||
new interaction::ClusterFormationTertiary(cross_section, target, product)));
|
||||
} else {
|
||||
ERROR("ClusteringType " + clustering_type +
|
||||
": not known, choose either 'radiative' or 'tertiary'.");
|
||||
}
|
||||
} else if (type == "ChargeExchange") {
|
||||
#ifdef debug_level2
|
||||
DEBUG_LEVEL_2("Adding interactions: ChargeExchange");
|
||||
|
||||
Reference in New Issue
Block a user