JuliaPhysics/SolidStateDetectors.jl

Enhance Refinement

lmh91 opened this issue · 0 comments

lmh91 commented

Currently, only one single axis tick is inserted between two ticks if the electric potential difference, ΔΦ,
is above a certain limit, ΔΦ_max, independent of how large the difference is.
Thus, a lot of refinements steps are needed to get a good grid.

We should allow that multiple, N, ticks can be inserted between two ticks in one refinement step:
N = round(ΔΦ / ΔΦ_max)

By this we will also have to change the keywords regarding the grid and refinement in functions like
simulate! and calculate_electric_potential!.