32 lines
1.3 KiB
C++
Executable File
32 lines
1.3 KiB
C++
Executable File
#ifndef MOVER_GENERATOR_H
|
|
#define MOVER_GENERATOR_H
|
|
|
|
#include "simulation/jansson_additionals.h"
|
|
#include "simulation/mover.h"
|
|
#include "simulation/parameter.h"
|
|
|
|
namespace generator {
|
|
|
|
// return a shared_ptr to a Mover object described at the given path in the Parameter file
|
|
// the json-object at path_to_mover has to consist of a json-object called either "Boris", "Drift" or "Euler"
|
|
// if "Boris" exists:
|
|
// - has to contain a json-object "MaximalTimestepLength", which has to contain
|
|
// a json-double called "value" giving the maximum allowed timestep for the BorisMover
|
|
// in seconds
|
|
//
|
|
// if "Drift" is specified:
|
|
// - has to contain a json-object "MaximalMovedDistance" which has to follow the form
|
|
// described in json_read_length ("simulation/jansson_additionals.h")
|
|
// specifies the maximal distance a particle is allowed to move in one timestep
|
|
//
|
|
// if "Euler" is specified:
|
|
// - has to contain a json-object "MaximalMovedDistance" which has to follow the form
|
|
// described in json_read_length ("simulation/jansson_additionals.h")
|
|
// specifies the maximal distance a particle is allowed to move in one timestep
|
|
std::shared_ptr<Mover> buildMover(Parameter& parameter,
|
|
const json_path& path_to_mover);
|
|
|
|
};
|
|
|
|
#endif /* MOVER_GENERATOR_H */
|