22 lines
805 B
C++
Executable File
22 lines
805 B
C++
Executable File
#ifndef MAGNETIC_FIELD_GENERATOR_H
|
|
#define MAGNETIC_FIELD_GENERATOR_H
|
|
|
|
#include "simulation/electromagnetic_field.h"
|
|
#include "simulation/parameter.h"
|
|
|
|
namespace generator {
|
|
|
|
// create an MagneticField object from a json_t pointer to an json object
|
|
// defining the magnetic field
|
|
// has to consist of a json-objects called "VectorField"
|
|
// as described in "generators/vector_field_generator.h" (function: "buildVectorField")
|
|
std::shared_ptr<MagneticField> magneticField(json_t* object);
|
|
|
|
// create an MagneticField object from the given Parameter object
|
|
// json file has to have a json object called "MagneticField" directly in the root object
|
|
// of the parameter file
|
|
std::shared_ptr<MagneticField> magneticField(Parameter& parameter);
|
|
}; // namespace generator
|
|
|
|
#endif /* MAGNETIC_FIELD_GENERATOR_H */
|