Skip to content
Snippets Groups Projects
Commit 6e00d156 authored by Florian Atteneder's avatar Florian Atteneder
Browse files

wrap SphericalAccretion solver into module; recompute bondi_accretion.h5 with less radial points

parent 2fc2ef07
No related branches found
No related tags found
1 merge request!101Refactor GRHD project
Pipeline #6170 passed
This commit is part of merge request !101. Comments created here will be created in the context of that merge request.
module SphericalAccretion
using CairoMakie
using CairoMakie.FileIO
using DelimitedFiles
......@@ -19,7 +23,7 @@ Alternatively, one could also add an adaptive stepper.
Note: We implicitly assume θ = π/2, because then sin(θ) = 1, although,
the sines should cancel out everywhere.
"""
function solve(; rmin, rmax, rc, ρc, Γ, M=1.0, N_rs=10000,
function solve(; rmin, rmax, rc, ρc, Γ, M=1.0, N_rs=1000,
urc_sign=1)
urc = urc_sign*sqrt(M /(2 * rc))
......@@ -336,3 +340,7 @@ function plot_compare_papadopoulus_1999()
return fig
end
end # module
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment