Skip to content

Commit

Permalink
Set electron parallel flow equal to the ion one for Boltzmann response
Browse files Browse the repository at this point in the history
The electron parallel flow is not used when Boltzmann response is used,
but most sensible thing is probably to set zero current. This version
assumes a single ion species, and sets the electron parallel flow equal
to the parallel flow of ion species 1.
  • Loading branch information
johnomotani committed Sep 15, 2024
1 parent 46265a2 commit c35de2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moment_kinetics/src/electron_fluid_equations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ function calculate_electron_upar_from_charge_conservation!(upar_e, updated, dens
# convert from parallel particle flux to parallel particle density
upar_e[iz,ir] /= dens_e[iz,ir]
end
else
begin_r_z_region()
@loop_r_z ir iz begin
upar_e[iz,ir] = upar_i[iz,ir,1]
end
end
updated[] = true
end
Expand Down

0 comments on commit c35de2e

Please sign in to comment.