Skip to content
Discussion options

You must be logged in to vote

The way we do it in the charge drift is using an interpolated electric field.

function interpolated_vectorfield(ef::ElectricField)
interpolated_vectorfield(ef.data, ef.grid)
end

step_vectors[n] += get_velocity_vector(electric_field, _convert_point(current_pos[n], S))

So, I’m not on my computer right now, but something along the lines

ef = SolidStateDetectors.interpolated_vectorfield(sim.electric_field)
result = SolidStateDetectors.get_velocity_vector(ef, CartesianPoint(pt)) # or Cylindr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rajxabc
Comment options

Answer selected by rajxabc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants