Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated ray model to be the narrow ray model from Minton et al. (2019)
  • Loading branch information
daminton committed Aug 29, 2019
1 parent d58fb91 commit 2508127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ejecta/ejecta_ray_pattern.f90
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pure function pattern(theta,r,rmin,rmax,thetari,ej) result(ans)
ans = 0.0_DP
end if
else
rw0 = rmin * pi / Nraymax / 1
rw0 = rmin * pi / Nraymax / 2
rw1 = 2 * pi / Nraymax
rw = rw0 * (1._DP - (1.0_DP - rw1 / rw0) * exp(1._DP - (r / rmin)**2))
n = max(min(floor((Nraymax**rayp - (Nraymax**rayp - 1) * log(r/minray) / log(rray/minray))**(1._DP/rayp)),Nraymax),1) ! Exponential decay of ray number with distance
Expand Down

0 comments on commit 2508127

Please sign in to comment.