Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
@@ -8,6 +8,21 @@
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);