Added examples for config files

This commit is contained in:
Jonas Kellerer
2022-11-30 20:11:05 +01:00
parent e9748291dc
commit 6198327f6b
13 changed files with 390 additions and 387 deletions
+64 -94
View File
@@ -1,104 +1,74 @@
{
"Functions": {
"1Dto1D examples": {
"f1": {
"PiecewiseLinear": {
"xValues": [
0,
1.43,
3,
8,
13,
14.57,
16
],
"yValues": [
5E-4,
0.002,
0.02,
1,
0.02,
0.002,
5E-4
],
"prefactor": 1
}
},
"f2": {
"Constant": {
"constant": 1
}
},
"f3": {
"Product": [
{
"Constant": {
"constant": 2
"Functions": {
"1Dto1D examples": {
"f1": {
"PiecewiseLinear": {
"xValues": [0, 1.43, 3],
"yValues": [5E-4, 0.002, 0.02],
"prefactor": 1
}
},
"f2": {
"Constant": {
"constant": 1
}
},
"f3": {
"Product": [
{
"Constant": {
"constant": 2
}
},
{
"Constant": {
"constant": 3
}
}
},
{
"Constant": {
"constant": 3
}
]
},
"f4": {
"PiecewiseLinearFromFile": {
"PathToH5": {
"Type": "RelativeToHomebase",
"RelativePath": "path/relative",
"Filename": "data.h5"
},
"xValuesKey": "/xvalues",
"yValuesKey": "/yvalues",
"prefactor": 1
}
},
"f5": {
"PiecewiseLinearFromFile": {
"PathToH5": {
"Type": "AbsolutPath",
"RelativePath": "/some/absolut/path",
"Filename": "data.h5"
},
"xValuesKey": "/xvalues",
"yValuesKey": "/yvalues",
"prefactor": 1
}
]
},
"f4": {
"PiecewiseLinearFromFile": {
"PathToH5": {
"Type": "RelativeToHomebase",
"RelativePath": "data/velocityDistributions/T2_vz/KuckertPaper",
"Filename": "T2_vz_vs_z_kuckert_approximated.h5"
},
"xValuesKey": "/z_position(m)",
"yValuesKey": "/vz(ms)",
"prefactor": 1
}
}
},
"3dto1D examples": {
"f1": {
"Constant3D": {
"constant": 2
}
},
"f2": {
"Product": {
"fi": {
"Constant": {
"constant": 2
}
},
"fj": {
"Constant": {
"constant": 2
}
},
"fk": {
"PiecewiseLinear": {
"xValues": [
0,
1.43,
3,
8,
13,
14.57,
16
],
"yValues": [
5E-4,
0.002,
0.02,
1,
0.02,
0.002,
5E-4
],
"prefactor": 1
"3dto1D examples": {
"f1": {
"Constant3D": {
"constant": 2
}
},
"f2": {
"Product": {
"fi": { "Constant": {"constant": 2 }},
"fj": { "Constant": {"constant": 2 }},
"fk": { "PiecewiseLinear": {
"xValues": [0, 1.43, 3],
"yValues": [5E-4, 0.002, 0.02],
"prefactor": 1 }
}
}
}
}
}
}
}
}