Electric field fixes
This MR is supposed to fix #73 (closed) .
The following changes have been implemented:
- We always deplete from the implant side
- The electric field vector orientation depends in the sign if the bias voltage:
-
bias_voltage < 0
-> field vector to backplane -> electron collection @ implant -
bias_voltage > 0
-> field vector to implants -> hole collection @ implant
-
- Calculation of effectively depleted region is correct for both cases.