Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keyword argument Δt to electric field line plotting #443

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

fhagemann
Copy link
Collaborator

When plotting electric fieldlines with plot_electric_fieldlines, charges are spawned at the surfaces and drifted using the ElectricFieldChargeDriftModel which assumes a constant mobility of $1\text{cm}^2\text{/Vs}$ with a default time step Δt of $1\text{ns}$. In small-scale detectors, this can lead to steps that are wider than the detector dimensions.

In this PR, the parameter Δt becomes a keyword argument of plot_electric_fieldlines, such that it can be tuned by the user. I also added a line to the documentation.

@fhagemann fhagemann added the convenience Improve user-friendliness label Dec 17, 2024
@fhagemann fhagemann merged commit 095f761 into main Dec 17, 2024
10 checks passed
@fhagemann fhagemann deleted the efieldlines branch December 17, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
convenience Improve user-friendliness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant