30 lines
1.4 KiB
C++
Executable File
30 lines
1.4 KiB
C++
Executable File
#ifndef DRIFT_VELOCITY_GENERATOR_H
|
|
#define DRIFT_VELOCITY_GENERATOR_H
|
|
|
|
#include "simulation/drift_velocity.h"
|
|
#include "simulation/jansson_additionals.h"
|
|
#include "simulation/parameter.h"
|
|
|
|
namespace generator {
|
|
|
|
// create a shared_ptr to a DriftVelocity object described by the json-object in parameter at the
|
|
// path "path_to_drift_velocity"
|
|
// has to consist of a json-object "VectorField" or "null"
|
|
// if "VectorField" is specified: has to follow the form described by "buildVectorField" (in "generators/vector_field_generator.h")
|
|
// if "null" is specified: nothing more has to be specified, simply returns a nullptr
|
|
// (examples in "simulation_config/drift_velocity_examples.json")
|
|
std::shared_ptr<DriftVelocity> buildDriftVelocity(
|
|
Parameter& parameter,
|
|
const json_path& path_to_drift_velocity);
|
|
|
|
// create a shared_ptr to a DriftVelocity object described by the json-object in parameter at the
|
|
// path "path_to_drift_velocity"
|
|
// if a json-array called "CreateSameAs" exists: has to consist of the path to the DriftVelocity
|
|
// json-object that should be used (e.g. ["Object1", "Object2", ..., "DriftVelocity"], has to start at the root)
|
|
// otherwise same specifications as "buildDriftVelocity"
|
|
std::shared_ptr<DriftVelocity> buildDriftVelocityIncludingRedirection(
|
|
Parameter& parameter, const json_path& path_to_drift_velocity);
|
|
};
|
|
|
|
#endif /* DRIFT_VELOCITY_GENERATOR_H */
|