33 lines
1.6 KiB
C++
Executable File
33 lines
1.6 KiB
C++
Executable File
#ifndef VELOCITY_DISTRIBUTION_FUNCTION_GENERATOR_H
|
|
#define VELOCITY_DISTRIBUTION_FUNCTION_GENERATOR_H
|
|
|
|
#include <memory>
|
|
#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-array of size 3, defining the direction in cartesian coordinates (x,y,z)
|
|
// - returns a DirectedDistribution object (see simulation/energy_distribtion.h)
|
|
//
|
|
// (example in "simulation_config/velocity_distribution_function_examples.json")
|
|
std::shared_ptr<VelocityDistributionFunction> buildVelocityDistributionFunction(
|
|
Parameter& parameter,
|
|
const json_path& path_to_distribution);
|
|
|
|
};
|
|
|
|
#endif /* VELOCITY_DISTRIBUTION_FUNCTION_GENERATOR_H */
|