Version 2, position dependent E/B, kinetic ions, boris mover, terminator

This commit is contained in:
Jonas Kellerer
2022-10-21 10:09:19 +02:00
parent acc55cf003
commit 83fd2e5d7e
869 changed files with 1033204 additions and 3634436 deletions
+49
View File
@@ -0,0 +1,49 @@
#ifndef INTERACTION_GENERATOR_H
#define INTERACTION_GENERATOR_H
#include <functional>
#include <map>
#include <memory>
#include <string>
#include "simulation/jansson_additionals.h"
#include "simulation/parameter.h"
#include "simulation/scattering_angle_distribution.h"
#include "simulation/species.h"
namespace generator {
void addInteractions(
std::shared_ptr<species::TrackedSpecie> specie,
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>&
tracked_species,
std::map<std::string, std::shared_ptr<species::BackgroundSpecie>>&
background_species,
Parameter& parameter,
json_path& path_to_interactions);
std::function<double(double)> buildTotalCrossSection(json_t* object);
std::function<double(double, double)> build2DCrossSection(json_t* object);
std::shared_ptr<ScatteringAngleDistribution> buildScatteringAngleDistribution(
json_t* object);
double buildExcitationEnergy(std::string excitation_state);
std::function<double(double)> buildExcitationCrossSection(
std::string excitation_state);
std::shared_ptr<species::Specie> findTarget(
std::string& target_name,
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>&
tracked_species,
std::map<std::string, std::shared_ptr<species::BackgroundSpecie>>&
background_species);
std::shared_ptr<species::TrackedSpecie> findTracked(
std::string& target_name,
std::map<std::string, std::shared_ptr<species::TrackedSpecie>>&
tracked_species);
}; // namespace generator
#endif /* INTERACTION_GENERATOR_H */