34 lines
1.4 KiB
C++
Executable File
34 lines
1.4 KiB
C++
Executable File
#ifndef ENERGY_DISTRIBUTION_FUNCTION_GENERATOR_H
|
|
#define ENERGY_DISTRIBUTION_FUNCTION_GENERATOR_H
|
|
|
|
#include <memory>
|
|
|
|
#include "simulation/energy_distribution.h"
|
|
#include "simulation/jansson_additionals.h"
|
|
#include "simulation/parameter.h"
|
|
|
|
namespace generator {
|
|
|
|
// return a shared_ptr to an EnergyDistributionFunction object at the json-object
|
|
// with path "path_to_function" (from root) in the Parameter object
|
|
// has to consist of a json-object called either "TritiumBetaDecay", "MaxwellBoltzmann" or "Constant"
|
|
// if "TritiumBetaDecay" is specified:
|
|
// - does not have to contain anything (returns a TritiumBetaDecay object)
|
|
//
|
|
// if "MaxwellBoltzmann" is specified:
|
|
// - has to contain a json-object "Temperature", which has to contain a json-double "value"
|
|
// that specified the temperature (in K) for the Maxwell-Boltzmann distribution (returns a MaxwellBoltzmann object)
|
|
//
|
|
// if "Constant" is specified:
|
|
// - has to contain a json-object "constant", which has to contain a json-double "value", which
|
|
// specifies the constant energy in eV (returns a Constant object)
|
|
//
|
|
// (examples in "simulation_config_energy_distribution_function_examples.json"; definition of the
|
|
// objects in "simulatoin/energy_distribution.h")
|
|
std::shared_ptr<EnergyDistributionFunction> buildEnergyDistributionFunction(
|
|
Parameter& parameter,
|
|
const json_path& path_to_function);
|
|
};
|
|
|
|
#endif /* ENERGY_DISTRIBUTION_FUNCTION_GENERATOR_H */
|