Commit 30ddfbd8 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Transient: add more tests

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

#DESC tests if non-existing trapping models selected in the configuration file are detected
[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 = 2000

# 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 = INFO
temperature = 293K
trapping_model = "nonexistent"

#PASS (FATAL) [I:TransientPropagation:mydetector] Error in the configuration:\nValue "nonexistent" of key 'trapping_model' in section 'TransientPropagation' is not valid: Model with name "nonexistent" does not exist
+37 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC tests functionality of custom trapping model
[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 = 4

# 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 = INFO
temperature = 293K
charge_per_step = 1
max_charge_groups = 0

trapping_model = "custom"
trapping_function_electrons = "[0]"
trapping_parameters_electrons = 10ns
trapping_function_holes = "[0]"
trapping_parameters_holes = 10ns

#PASS Trapped 7 charges during transport
+37 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 CERN and the Allpix Squared authors
# SPDX-License-Identifier: MIT

#DESC test the automatic scaling of charge per step when transport of a deposit would exceed the set max charge groups
[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 = 200

[DopingProfileReader]
log_level = DEBUG
model = "constant"
doping_concentration = 300000000000000

# 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 = INFO
temperature = 293K
charge_per_step = 1
max_charge_groups = 100
recombination_model = "srh_auger"

#PASS Deposited charge: 200, which exceeds the maximum number of charge groups allowed. Increasing charge_per_step to 2 for this deposit.