Skip to content

Commit

Permalink
bgk: fix v_phi mean
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Jul 3, 2024
1 parent 0129470 commit 6f44d81
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/psc_bgk.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,12 @@ struct pdist_case4
y{y},
z{z},
rho{rho},
v_phi_dist{8.0 * g.k * sqr(rho) * (0.5 * g.Hx * rho) /
(1.0 + 8.0 * g.k * sqr(rho)),
g.beta / sqrt(1.0 + 8.0 * g.k * sqr(rho))},
v_phi_dist{g.beta * 8.0 * g.k * sqr(rho / g.beta) *
(0.5 * g.Hx * rho / g.beta) /
(1.0 + 8.0 * g.k * sqr(rho / g.beta)),
g.beta / sqrt(1.0 + 8.0 * g.k * sqr(rho / g.beta))},
v_rho_dist{0, g.beta},
v_x_dist{2.0 * g.xi * g.A_x0 / (1.0 + 2.0 * g.xi),
v_x_dist{g.beta * 2.0 * g.xi * g.A_x0 / (1.0 + 2.0 * g.xi),
g.beta / sqrt(1.0 + 2.0 * g.xi)},
simple_dist{0.0, g.beta},
uniform{0.0, 1.0}
Expand Down

0 comments on commit 6f44d81

Please sign in to comment.