-
Hi Felix, I added But the charge actually doesn‘t’ reach the electrode (x-direction): the simulation code:
The waveform shows incomplete charge collection on the ac_collect electrode (because weighting potential of the end position is less than 1), while neighboring electrodes collect partial : Further check of function
I found pt_in and pt_out, their x-coordinates don't reach the electrode edge: For the issue described above, could you give me some suggestions to fix the termination checks and let the charge end at the electrode edge? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
How did you calculate the electric potential, field and weighting potential? |
Beta Was this translation helpful? Give feedback.
-
This issue could result from the tolerance that we apply to intersections, see L. 346 here: SolidStateDetectors.jl/src/ChargeDrift/ChargeDrift.jl Lines 319 to 368 in 5f3a5cb Here, we chose a multiplication factor of Also, it thinks it is in the electrode because we check for the In your case with your simulation settings: filter(t -> 0 < t < 0.5, (sim.point_types.grid.x.ticks)*1000)
The center between grid points can be calculated with using StatsBase
filter(t -> 0 < t < 0.5, StatsBase.midpoints((sim.point_types.grid.x.ticks)*1000))
which in your case means that everything with x > 0.21875mm will be flagged as "ELECTRODE" in our charge drift code. In your case, this is not optimal.. So if you come up with an elegant solution that does not break any of the current tests, we'd be happy to incorporate that in the software :) |
Beta Was this translation helpful? Give feedback.
This issue could result from the tolerance that we apply to intersections, see L. 346 here:
SolidStateDetectors.jl/src/ChargeDrift/ChargeDrift.jl
Lines 319 to 368 in 5f3a5cb