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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user