#ifndef VELOCITY_DISTRIBUTION_FUNCTION_GENERATOR_H #define VELOCITY_DISTRIBUTION_FUNCTION_GENERATOR_H #include #include "simulation/jansson_additionals.h" #include "simulation/parameter.h" #include "simulation/velocity_distribution_function.h" namespace generator { // return a shared_ptr to a VelocityDistributionFunction object described by the json-object // at the given json_path in the Parameter object // has to contain a json-object called either "IsotropicDistribution" or "DirectedDistribution" // if "IsotropicDistribution" is specified: // - has to include a json-object "EnergyDistributionFunction" as defined in "generators/energy_distribtion_function_generator.h" // - has to include a json-object "Mass" as defined in "generators/mass_generator.h" // - returns a IsotropicDistribution object (see simulation/energy_distribtion.h) // // if "DirectedDistribution" is specified: // - has to include a json-object "EnergyDistributionFunction" as defined in "generators/energy_distribtion_function_generator.h" // - has to include a json-object "Mass" as defined in "generators/mass_generator.h" // - has to include a json-object "Direction", including a json-array "vector" containing the direction in cartesian coordinates // - returns a DirectedDistribution object (see simulation/energy_distribtion.h) // // (example in "simulation_config/velocity_distribution_function_examples.json") std::shared_ptr buildVelocityDistributionFunction( Parameter& parameter, const json_path& path_to_distribution); }; #endif /* VELOCITY_DISTRIBUTION_FUNCTION_GENERATOR_H */