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
+20
View File
@@ -0,0 +1,20 @@
#include "generators/scalar_field_generator.h"
#include "functions/functions.h"
#include "generators/function_generator.h"
#include "simulation/errors.h"
#include "simulation/jansson_additionals.h"
namespace generator {
std::shared_ptr<ScalarField> buildScalarField(json_t* object) {
if (json_object_by_path(object, {"ScalarFieldFunctionInZ"})) {
std::function<double(double, double, double)> z_function = function3D(
json_object_by_path(object, {"ScalarFieldFunctionInZ", "zFunction"}));
return std::shared_ptr<ScalarField>(new ScalarFieldFunctionInZ(z_function));
} else {
ERROR("This scalar field is not implemented");
return nullptr;
}
return nullptr;
}
}; // namespace generator