Replies: 2 comments 6 replies
-
Yes, there is a new API (~; using Gradus
using Plots
using StaticArrays
m = KerrMetric(M = 1.0, a = 1.0)
u = @SVector [0.0, 1e6, deg2rad(60), 0.0]
d = GeometricThinDisc(Gradus.isco(m), 500.0, deg2rad(90.0))
tf = @time lagtransfer(m, u, d, callback = domain_upper_hemisphere())
begin
t, E, f = binflux(tf, N_E=900, N_t=900)
# log data where not zero
I = f .> 0
f[I] .= log.(f[I])
p = heatmap(
t,
E,
f,
xlabel = "Time (GM/c^3)",
ylabel = "Energy (keV)",
xrange = [0, 150],
yrange = [0, 9],
clims = (-20, -1),
)
end There's a good chance this won't work in |
Beta Was this translation helpful? Give feedback.
6 replies
-
Yes - see you in #79 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to run the 2D transfer function example you shared earlier, @fjebaker, but I can't get it to work because I think a few things have changed under the hood in Gradus. The two errors I get are that
getgeodesicpoint not defined
andradial_sampler not defined
.Beta Was this translation helpful? Give feedback.
All reactions