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

[WIP] Add secondary electron emission #5715

Draft
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

budjensen
Copy link
Contributor

Adding a simple model of secondary electron emission, as per my message in #5708. More work is still be done.

All recommendations and any feedback is appreciated!

@budjensen
Copy link
Contributor Author

I closed my initial discussion on SEE, but copied my original comment below:

I would like to add secondary electron emission to WarpX. Could you point me in the best way to get started on this?

I would like to build the feature so that in the future that we can incorporate both energy and angular dependence to the secondary emission coefficient, but for speed I'd prefer to implement a basic version which accepts a coefficient, $\gamma_\mathrm{SEE}$, for each species.

SEE emission would be determined by drawing a random number $R\in[0,1]$ and adding a secondary electron if $R>\gamma_\mathrm{SEE}$ (If $\gamma_\mathrm{SEE} > 1$, floor($\gamma_\mathrm{SEE})$ particles would be added before comparing R and $\gamma_\mathrm{SEE}$). All SEE electrons would have a pre-specified energy and be isotropically scattered in velocity.

So far, I have added a flag do_SEE_flag to the function WarpXParticleContainer::ApplyBoundaryConditions which initiates the function do_SEE when a particle crosses a boundary with absorbing boundary conditions. do_SEE calculates the number of electrons to emit, and then draws their ejection angle(s) from an isotropic distribution.

I've now realized that I need to inject electrons, which seems simple enough when inside the electron particle container instance. Is there a way to do this from a pc for a different species?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant