Skip to content

Commit

Permalink
fix phasespace volume functions, add reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lhupe committed Jul 26, 2018
1 parent 05ede84 commit 2b01bdf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mushroomtools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ billiards, see [`billiard_mushroom`](@ref).
Contains stuff like initializing efficiently regular or chaotic particles
and functions that return the corresponding chaotic or regular phase-space volumes
or portions.
The functions [`V_3D_tot`](@ref) and [`V_3D_reg`](@results) use equations derived
in ref. [1].
Made by Lukas Hupe.
## References
[1] A. Barnett & T. Betcke, [Chaos **17**, 043125 (2007)](https://doi.org/10.1063/1.2816946).
"""
module MushroomTools

Expand Down Expand Up @@ -43,8 +48,8 @@ end
Return the total phasespace volume (3D) of a [`billiard_mushroom`](@ref)
parameterized by `(l,w,r)`.
"""
V_3D_tot(l,w,r) = 2π*(l*w/2 + (1/4)*π*r^2)
V_3D_reg(l,w,r) = π*r^2*(acos(w/(2r)) - w/(2r)*sqrt(1 - (w^2)/(4r^2)))
V_3D_tot(l,w,r) = 2π*(l*w + (1/2)*π*r^2)
V_3D_reg(l,w,r) = 2π*r^2*(acos(w/(2r)) - w/(2r)*sqrt(1 - (w^2)/(4r^2)))

"""
g_r_3D(l, w, r)
Expand Down

0 comments on commit 2b01bdf

Please sign in to comment.