Ion-electron collisions in Boltzmann model & option to run with fixed fraction#974
Open
Ion-electron collisions in Boltzmann model & option to run with fixed fraction#974
Conversation
…aling a charged species to enforce a fixed fraction impurity.
…electron species in boltzmann elc input files to enable ion-elc collisions. This new option sets the electron density to n_e=n_e,sheath * exp(e*(phi-phi_sheath)/Te). Not yet tested.
…rations in the Boltzmann field solver. Fix bug in indexing in gk_species_scaling. Boltzmann elc mirror sim runs with ion-elc collisions now, but it's probably updating the electrons.
…control collision updates. Remove nested if statements for readability.
…o is set the rhs_func pointer to the empty method. Do the same for BGK.
Ion-elc collisions in Boltzmann elc sims
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(see issue #967 for more discussion and future plans)
In this work we add ion-electron collisions to the Boltzmann electron model. In order to support spatially and time-dependent collision frequency$\nu_{ie}=\nu_{ie}(x,t)$ we:
which simply sets, every time step, the electron density as
assuming quasineutrality at the sheath entrance.
do_not_add_to_dfdtso that electrons are not updated by electron-ion collisions. That is, electron table in the input file would look like:New fixed fraction
We upgraded the previously existing
.recycle_react_scalingoperation that we implemented for scaling neutrals to simply.scaling, and so we can scale the electrons as mentioned before. In the process we also added an option to scale any species to a fixed fraction of another species. For example, we may want to run with a fixed fraction carbon species likeso that every time step it sets the carbon density to be 5% of the main
iondensity.Tests
@Maxwell-Rosen ran mirror simulations with and w/o ion-elc collisions, and below we can see that they have the intended effect:
We also ran all the GK regression tests with the new runregression tool @JunoRavin implemented. They all pass, except for
rt_gk_multib_sheath_1x2v_p1, but that should be unaffected by this work and I think there's an issue in the way that test is constructed.