Electric field only used at the position at the beginning of the timestep,

the magnetic field is not changed since its value does not depend on the
particles;
Added a reflector for both ends of the cylinder
This commit is contained in:
2026-01-27 14:19:44 +01:00
parent 32521298d4
commit 0a843f0a4c
8 changed files with 88 additions and 3 deletions
+6
View File
@@ -16,6 +16,12 @@ std::shared_ptr<Reflector> buildReflector(Parameter& parameter,
path_to_reflector, {"ReflectorDPS", "position_z"})),
"m");
return std::shared_ptr<Reflector>(new ReflectorDPS(position_z));
} else if (parameter.jsonObjectFromBase(
json_path_append(path_to_reflector, {"LongitudinalReflector"}))) {
double height = json_read_length(
parameter.jsonObjectFromBase(
json_path_append(path_to_reflector, {"LongitudinalReflector", "height"})), "m");
return std::shared_ptr<Reflector>(new LongitudinalReflector(height));
} else if (parameter.jsonObjectFromBase(
json_path_append(path_to_reflector, {"NoReflector"}))) {
#ifdef debug_level2