Skip to content

Commit

Permalink
Make width of 'notch' in wall-bc initial condition proportional to vth
Browse files Browse the repository at this point in the history
Otherwise, if the initial temperature was decreased, the notch could be
about as wide as the distribution function, which would make things
weird.
  • Loading branch information
johnomotani committed Sep 13, 2023
1 parent ffe95b2 commit ecfff8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/initial_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ function init_charged_pdf_over_density!(pdf, spec, composition, vpa, vperp, z,
#
# Implemented by multiplying by a smooth 'notch' function
# notch(v,u0,width) = 1 - exp(-(v-u0)^2/width)
width = 0.1
width = 0.1 * vth[iz]
inverse_width = 1.0 / width

@. pdf[:,ivperp,iz] *= 1.0 - exp(-vpa.grid^2*inverse_width)
Expand Down

0 comments on commit ecfff8d

Please sign in to comment.