You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Gradus
functionNoZDisc(m::AbstractMetric{T}; outer_radius =T(50)) where {T}
isco = Gradus.isco(m)
rs =collect(range(isco, outer_radius, 200))
hs = rs .*cos.(Gradus._solve_orbit_θ.(m, rs))
interp = Gradus._make_interpolation(rs, hs)
WarpedThinDisc(interp, isco, outer_radius)
end
m =NoZMetric(ϵ =2.0, a =0.9)
x =SVector(0.0, 10000.0, deg2rad(85), 0.0)
d =NoZDisc(m, outer_radius =1000.0)
model =LampPostModel(h =5.0)
radii = Gradus.Grids._inverse_grid(Gradus.isco(m) +0.5, 300.0, 100)
itb =@time Gradus.interpolated_transfer_branches(m, x, d, radii; verbose =true)
# dispatches special methods for calculating the emissivity profile if available
prof =emissivity_profile(m, d, model; n_samples =2000)
gbins =collect(range(0.0, 1.2, 800))
tbins =collect(range(0, 125.0, 500))
t0 = Gradus.continuum_time(m, x, model)
flux = Gradus.integrate_lagtransfer(
prof,
itb,
gbins,
tbins;
t0 = t0,
n_radii =6000,
rmin =minimum(radii),
rmax =maximum(radii),
)
In the main branch this will fail because there is no appropriate dispatch. I made some changes that use a datum plane, but I think there's a constrain_upper_hemisphere lurking somewhere that's preventing it from working. Pending investigation.
The text was updated successfully, but these errors were encountered:
In the main branch this will fail because there is no appropriate dispatch. I made some changes that use a datum plane, but I think there's a
constrain_upper_hemisphere
lurking somewhere that's preventing it from working. Pending investigation.The text was updated successfully, but these errors were encountered: