37 lines
1.2 KiB
C++
Executable File
37 lines
1.2 KiB
C++
Executable File
#ifndef VELOCITY_DISTRIBUTION_GENERATOR_H
|
|
#define VELOCITY_DISTRIBUTION_GENERATOR_H
|
|
|
|
#include <memory>
|
|
#include "simulation/jansson_additionals.h"
|
|
#include "simulation/parameter.h"
|
|
#include "simulation/velocity_distribution.h"
|
|
|
|
namespace generator {
|
|
|
|
// return a shared_ptr to a VelocityDistribution object described by the json-object
|
|
// at the path "path_to_distribution" (from root object) in the Parameter object
|
|
// consisting of a json-object either called "VelocityDistributionFromFunction" or "null"
|
|
// if "VelocityDistributionFromFunction" is specified:
|
|
// - has to consist of a json-object "VelocityDistributionFunction", as defined in "generators/velocity_distribution_function_generator.h"
|
|
//
|
|
// if "null" is specified:
|
|
// - no further information has to be specified
|
|
//
|
|
// example:
|
|
// "path_to_distribution" : {
|
|
// "VelocityDistributionFromFunction": {
|
|
// "VelocityDistributionFunction" : { ... }
|
|
// }
|
|
// }
|
|
// or
|
|
// "path_to_distribution" : {
|
|
// "null": {}
|
|
// }
|
|
std::shared_ptr<VelocityDistribution> buildVelocityDistribution(
|
|
Parameter& parameter,
|
|
const json_path& path_to_distribution);
|
|
|
|
}; // namespace generator
|
|
|
|
#endif /* VELOCITY_DISTRIBUTION_GENERATOR_H */
|