-
Notifications
You must be signed in to change notification settings - Fork 50
Description
I was simulating the Capacitance vs Voltage curve for a HPGe detector with depletion_handling = true for calculate_electric_potential! and observed a strange behavior of the plot: it is being basically constant before depletion and starting to increase after the depletion voltage, while keeping the variation very small.
The problem is probably due to the ϵ_r for the undepleted region not being set to the scaling_factor_for_permittivity_in_undepleted_region but the same as the depleted ϵ_r (which is 16 for HPGe I believe)
the ϵ_r is not changing with the depletion:
0V:


Fully depleted:
So that above the depletion voltage the depleted region goes into the contact, turning the ϵ_r from 1.0 to 16.0, thus increasing the value of the capacitance in the calculation:


