Skip to content

Commit d44307a

Browse files
committed
smaller MaxRadius ratio [skip ci]
1 parent e2eeb01 commit d44307a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/bulge.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $(TYPEDSIGNATURES)
5656
"""
5757
function generate(config::Bulge, units = uAstro;
5858
RotationCurve = nothing,
59-
MaxRadius = 20 * config.ScaleRadius,
59+
MaxRadius = 5 * config.ScaleRadius,
6060
MaxHeight = MaxRadius,
6161
)
6262
uLen = getuLength(units)

src/disk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $(TYPEDSIGNATURES)
5656
"""
5757
function generate(config::ExponentialDisc, units = uAstro;
5858
RotationCurve = nothing,
59-
MaxRadius = 20 * config.ScaleRadius,
59+
MaxRadius = 5 * config.ScaleRadius,
6060
MaxHeight = MaxRadius,
6161
k = 2, # degree of rotation curve interpolation/extrapolation spline (1 = linear, 2 = quadratic, 3 = cubic, up to 5)
6262
bc = "nearest", # behavior when evaluating the spline outside the support domain, which is (minimum(x), maximum(x)). The allowed values are "nearest", "zero", "extrapolate", "error"

test/spherical.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
@testset "SphericalSystem" begin
44
r_s = 2.0u"kpc"
5-
MaxRadius = 10*r_s
6-
NumSamples = 1000
5+
MaxRadius = 3*r_s
6+
NumSamples = 100
77

8-
r = collect(LinRange(0.001u"kpc", MaxRadius, 1000))
8+
r = collect(LinRange(0.001u"kpc", MaxRadius, 100))
99
dr = r[2] - r[1]
1010

1111
shell_mass_func = x->1.0e8u"Msun/kpc^3"/(x/r_s)/(1+x/r_s)^2 * 4π * x^2

0 commit comments

Comments
 (0)