Version 41 (modified by 7 years ago) ( diff ) | ,
---|
Bondi Accretion
Am working on a 3D simulation of Bondi Flow onto a central sink particle and studying the accretion properties using the Krumholz accretion algorithm. From Bondi (1952), we have the following quantities (in order: Bondi radius, accretion rate, sonic radius, nondimensional density and velocity):
In the above,
is a numerical coefficient which controls the strength of the accretion flow. At its critical value, , is strongest. In the code, is solved for using Eqn. 18 in Bondi's paper. With respect to these 'Bondi' variables, the sims used the following (in computational units), unless otherwise noted:~1 | |
~1 | |
.14318E+13 |
with the computational domain set up using:
Lx=Ly=Lz | 20 |
Mx=My=Mz | 64 |
MaxLevel (AMR) | 2 |
Effective resolution (dx) | .15625 |
Sink dx = 4dx | .625 |
Note, the sink dx is equivalent to the accretion volume radius (
).Research Log:
3/18/18,
caseAm running the
case because the sonic point in this case is located far beyond the accretion radius ( ). This will enable us to see the generation of accretion shocks in the sim and check the behavior of the accretion algorithm under conditions of supersonic infall. We expect that the accretion algorithm should be fairly 'well-behaved' in the supersonic regime, as any pressure errors generated in the accretion kernel will be unable to propagate upstream and effect the hydrodynamical solution beyond the accretion volume.For this run, I made the box bigger than the fiducial case above, but used the same effective resolution. The bigger box now encompasses the bondi radius (
). The following table lists this sims params:1.4 | |
.625 | |
1.183 | |
30.5 | |
6.1 | |
8646.9 | |
60 | |
80 | |
128 | |
.15625 |
The final time of the simulation is ~2 sound crossing times, using the sound speed of the gas at the edge of the domain (
) and the distance between this edge and the sink particle ( ).This case no longer forces an inner spherical boundary in the sim where the Bondi solution is copied. Instead the solution is sampled for each cell within the computational volume (including ghost zones) at t=0. For each subsequent cycle, the Bondi solution is pasted everywhere
.Results
The non-dimensional profiles for this run line up nicely with Bondi's Fig. 3 (curves III and IV):
(Note — I did this lineout from the center of the first zone in the octant surrounding the sink, to the zone center at the edge of the boundary. Aside from doing a spherical average over shells, I think this will provide the most accurate results from Visit, as I was getting somewhat wonky results sampling along cell boundaries — probably due to Visit's interpolatation method)
Calculating the mass flux through spherical shells surrounding the sink seems to agree well with the predicted value of
. I tried at 3 different radii: , , , where is the spherical boundary in the grid beyond which the Bondi solution is pasted into cells:Despite these agreements with theory, and the fact that the sonic point lies well beyond the accretion kernel, there is a spurious outflow being generated within the accretion kernel. Contrary to intuition, this outflow propagates beyond the accretion kernel into the grid, disrupting the upstream hydrodynamic solution.. This happens very quickly in the simulation (
). Here is a snapshot of density illustrating this effect:A time sequence of the first few frames shows that this occurs due to an increase in pressure inside of the accretion kernel, which blows outward into the grid:
The upwind hydro solution is intact until contact with the outward traveling shock generated in the accretion volume:
A zoom-in of the pressure inside the accretion kernel with overlaid velocity vectors shows the generation of an outward traveling shock:
It is also notable how symmetric the pressure is within the kernel (in this plane as well as the other coordinate planes). The relative orientation of the velocity vectors is also interesting. Despite the appearance of a subsonic, post-shock flow field by frame 1, within the kernel (central 8x8 zones) the velocity vectors point inward to the sink particle predominantly along the coordinate axes.. so much so that the flow field somewhat resembles a convective instability.. A similar plot of density:
The various profiles within the kernel seem to be identical regardless of viewing plane, until the 6th frame:
The mass flux through a shell with
, as well as onto the particle is much lower (and variable) than the predicted (note the last time query corresponds to the 0th frame, and the first the 8th — the points between are equally spaced between these):A movie of the pressure with overlaid velocity vectors and contours of the sonic surfaces shows the generation of multiple shock layers, both at the surface of the kernel, as well as inside the kernel.
The same movie, but zoomed out, shows that the sonic radius of the Bondi solution is correctly located at , and doesn't move over time.
Finally, we have lineout movies of pressure, density, and vrad. As these movies show, the Bondi solution is unaltered beyond , as to be expected from the boundary conditions of the sim. Surprising, however, is that despite the density falling below its initial value in the kernel (due to accretion), the pressure spikes there seemingly artificially (rather than due to a build of material in the kernel).
3/18/18,
, steady-state caseThe case of
flow is an extreme limit for the solution space. This value of has a few interesting features:In other words, when
exactly, we have no accretion flow.In addition to the Bondi/flow params cited in the top section of this page, the sim was set up using the following (in CU):
1.66 | |
.2526 | |
1.291 | |
25.63 | |
.0128 | |
2692.17 |
Note, the sonic radius is not resolved by ~ factor of 20 in this simulation, as seen when checking dx quoted above.
In this sim, the Bondi solution was initialized everywhere in the grid at t=0 (except within a small inner radius, described below). In subsequent timesteps, the Bondi solution is re-pasted into the ghost zones and a small inner spherical region at the origin. A sink particle is initialized at the origin with mass given above (
). The particle can accrete gas following the Krumholz prescription. The only source of gravity in the sims is the point gravity object associated with the particle (self-gravity is turned off).The simulation setup reproduces the correct nondimensional profiles. Here's a comparison of the t=0 nondimensional density and velocity profiles astrobear calculates for the bondi module (left), compared to the Bondi solutions for
(curves II and III for the case of ).The profiles are cut-off within an inner radius of
to avoid extremely high speeds there (am going to get rid of this in the next round of sims). Sampling the mass flux across a spherical shell less than this radius doesn't match up with the theoretical prediction of since the solution is getting stepped on there. Sampling the mass flux across a shell larger than this, however, produces agreement (2689 compared to 2692).Since the solution is getting stepped on within some small inner radius, can't meaningfully check the behavior of the accretion algorithm and any spurious waves it might be generating there. Instead, will be removing this inner boundary in the next run. These next sims will then be able to test the effect of the sonic radius being inside the accretion radius as opposed to outside. To test this will do a resolution study on
flow, where the sonic point is .As the following images show, this set of ICs produces a steady-state solution.. This is due to the solution being stepped on within the accretion volume, which would likely be the first place any deviation from the similarity solutions would occur due to spurious pressure waves that the accretion algorithm might produce in such strongly subsonic flow as this. The attached module files that produce these files are thus called "*_steadystate*"
Mesh | |
Radial velocity | |
Radial mach | |
Velocity field | |
Isosurface (r=rsink) | |
Mass flux (r=rsink) |
Library
Attachments (29)
- Bondi_Comparison.png (589.9 KB ) - added by 7 years ago.
- rho_comparison.png (1.4 MB ) - added by 7 years ago.
- vr.png (708.1 KB ) - added by 7 years ago.
- radial_mach.png (1.8 MB ) - added by 7 years ago.
- vec_comparison.png (1.8 MB ) - added by 7 years ago.
- clipped_mass.png (1.1 MB ) - added by 7 years ago.
- mesh_comparison.png (2.7 MB ) - added by 7 years ago.
- massflux.png (687.7 KB ) - added by 7 years ago.
- isosurface.png (1.8 MB ) - added by 7 years ago.
- problem.f90_steadystate (8.6 KB ) - added by 7 years ago.
- physics.data_steadystate (9.8 KB ) - added by 7 years ago.
- problem.data_steadystate (359 bytes ) - added by 7 years ago.
- scales.data_steadystate (619 bytes ) - added by 7 years ago.
- solver.data_steadystate (1.5 KB ) - added by 7 years ago.
- global.data_steadystate (7.9 KB ) - added by 7 years ago.
- Bondi_Comparison_gamma1pt4.png (392.9 KB ) - added by 7 years ago.
- mdot_comp_gamma1pt4.png (1.4 MB ) - added by 7 years ago.
- density_blowup_gamma1pt4.png (1.7 MB ) - added by 7 years ago.
- press_blowout_gam1pt4.png (648.9 KB ) - added by 7 years ago.
- press_spherical_gam1pt4.png (1.1 MB ) - added by 7 years ago.
- plane_comp_gam1pt4.png (1.8 MB ) - added by 7 years ago.
- mdot_sink_gam1pt4.png (828.1 KB ) - added by 7 years ago.
- rho_zoomed_gam1pt4.png (1.1 MB ) - added by 7 years ago.
- press_zoomed_gam1pt4.png (1.1 MB ) - added by 7 years ago.
- rho_lineout.gif (246.7 KB ) - added by 7 years ago.
- press_lineout.gif (252.2 KB ) - added by 7 years ago.
- vrad_lineout.gif (227.1 KB ) - added by 7 years ago.
- press_sonicrad.gif (2.6 MB ) - added by 7 years ago.
- press_sonicrad_zoomout.gif (804.6 KB ) - added by 7 years ago.