Version 29 (modified by 9 years ago) ( diff ) | ,
---|
Outflows
Particles can launch outflows following the description in Federrath et al 2014
The basic problem is to apply the following outflow function, but in a discrete way that is numerically symmetric and exact.
Let's assume that the density and velocity have the following form
, , and are scalar adjustment factors, is a rotation matrix to align the spin, and is a vector normal to the spin axis used to control the total momentum.
We begin by transforming the coordinates of the cell centers into the coordinate system of the star using a rotation matrix.
We then calculate the mass correction factors
trivially by summing up the predicted mass injection into each hemisphere and then calculating the normalization factors.We then estimate the velocity of each cell using
with the scalars set to 1, the rotation matrix set to the identity, and dp=0.
We then calculate the spin and momentum in the top and bottom hemispheres. We then adjust
to adjust the magnitude of the spin, and we calculate the rotation matrix necessary to rotate the spin to the jet axis which we apply directly to the . We also calculate the total momentum in the top and bottom hemispheres and update the magnitude of the z component using , and zero out the transverse components using the shift .This process is iterated a few times and then a final velocity scaling and shift is applied to make the momentum injection correct to machine precision