Commit a89cc49f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Adding first tests for TransientPropagation

parent 1bf8c52c
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC uses the Runge-Kutta-Fehlberg integration of the equations of motion implemented in the drift-diffusion model to propagate the charge carriers to the implants. The total induced charge is monitored.
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

[DepositionPointCharge]
model = "fixed"
source_type = "point"
position = 445um 220um 0um
number_of_charges = 20

# We use a custom field here to not trigger the warning about linear fields being inappropriate
[ElectricFieldReader]
model = "custom"
field_function = "[0]*z + [1]"
field_parameters = -3750V/cm/cm, -1000V/cm

[WeightingPotentialReader]
model = pad

[TransientPropagation]
log_level = TRACE
temperature = 293K

#PASS Propagated 10 to (447.214um,205.871um,200um) in 12.69ns time, induced 12e, final state: halted
+28 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC checks that an error is printed if the module is sued with a linear electric field.
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

[DepositionPointCharge]
model = "fixed"
source_type = "point"
position = 445um 220um 0um
number_of_charges = 20

[ElectricFieldReader]
model = "linear"
bias_voltage = 100V
depletion_voltage = 150V

[WeightingPotentialReader]
model = pad

[TransientPropagation]
log_level = INFO
temperature = 293K

#PASS (ERROR) [I:TransientPropagation:mydetector] This module will likely produce unphysical results when applying linear electric fields.
+27 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC uses the Runge-Kutta-Fehlberg integration of the equations of motion implemented in the drift-diffusion model to propagate the charge carriers to the implants. The monitored output comprises the total number of charges moved, the number of integration steps taken and the simulated propagation time.
[Allpix]
detectors_file = "detector.conf"
number_of_events = 1
random_seed = 0

[DepositionPointCharge]
model = "fixed"
source_type = "point"
position = 445um 220um 0um
number_of_charges = 20

# We use a custom field here to not trigger the warning about linear fields being inappropriate
[ElectricFieldReader]
model = "custom"
field_function = "[0]*z + [1]"
field_parameters = -3750V/cm/cm, -1000V/cm

[TransientPropagation]
log_level = INFO
temperature = 293K

#PASS (FATAL) [I:TransientPropagation:mydetector] Error during execution of run:\nThis module requires a weighting potential.
                                                             
 No newline at end of file