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
+25
View File
@@ -0,0 +1,25 @@
#include "generators/terminator_generator.h"
#include "generators/geometry_generator.h"
namespace generator {
std::shared_ptr<Terminator> buildTerminator(
Parameter& parameter,
const json_path& path_to_terminator) {
DEBUG_LEVEL_2("Creating terminator.");
long int max_interactions = static_cast<long int>(parameter.doubleValue(
json_path_append(path_to_terminator, {"MaximumInteractions"})));
double max_time_alive = parameter.doubleValue(
json_path_append(path_to_terminator, {"MaxTimeAlive", "value"}));
DEBUG_LEVEL_3("with max interactions: " + std::to_string(max_interactions));
DEBUG_LEVEL_3("with max time alive: " + std::to_string(max_time_alive));
std::shared_ptr<Geometry> geometry = buildGeometry(
parameter, json_path_append(path_to_terminator, {"BoundaryGeometry"}));
return std::shared_ptr<Terminator>(
new Terminator(max_interactions, max_time_alive, geometry));
}
}; // namespace generator