Skip to content

Commit

Permalink
restructure type tree
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-petersen committed May 13, 2024
1 parent d046727 commit c3af3ed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name = "DistributionFunctions"
uuid = "c869f47d-2815-40f9-b874-25ebe83f43af"
version = "0.0.7dev"
version = "0.0.8dev"

[deps]
OrbitalElements = "a3b07092-bde3-4843-b84f-c597d614ec7b"
HypergeometricFunctions = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

[compat]
julia = "1.6.7" # Equivalent to "^1.6.7", will allow any 1.a.b version with a.b>=6.7
julia = "1.6.7"
OrbitalElements "2"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
2 changes: 1 addition & 1 deletion src/Analytic/Isochrone/isochrone.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#####################################
# Isochrone distribution functions (analytic)
#####################################
abstract type IsochroneDistributionFunction <: DistributionFunction end
abstract type IsochroneDistributionFunction <: SphericalDistributionFunction end
struct IsotropicIsochrone{modelT<:IsochronePotential} <: IsochroneDistributionFunction
potential::modelT # Potential model
end
Expand Down
16 changes: 16 additions & 0 deletions src/Generic/DFs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ Abstract type for distribution functions
"""
abstract type DistributionFunction end

"""
Geometries
"""
abstract type SphericalDistributionFunction <: DistributionFunction end
abstract type RazorThinDiscDistributionFunction <: DistributionFunction end

"""
Defining Coordinates
"""
abstract type EnergyOnlyDistributionFunction <: SphericalDistributionFunction end
abstract type SphericalEnergyAngularMomentumDistributionFunction <: SphericalDistributionFunction end
abstract type SphericalActionDistributionFunction <: SphericalDistributionFunction end

abstract type DiscEnergyAngularMomentumDistributionFunction <: RazorThinDiscDistributionFunction end
abstract type DiscActionDistributionFunction <: RazorThinDiscDistributionFunction end

#####################################
# Generic functions
#####################################
Expand Down

0 comments on commit c3af3ed

Please sign in to comment.