wiki:u/johannjc/scratchpad

Version 28 (modified by Jonathan, 10 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.

The change in rho has the following functional form

as does the change in momentum

Since we want the total mass to equal some fraction of the accreted mass, as well as the top and bottom mass injection to be symmetric, we must have

And since we also must have the total momentum be balanced, we need to have a magnitude constraint

as well as the symmetry constraint

and directional constraint

It is easier to solve the system if the magnitude constraint takes the form of

where is the analytic solution for the fraction of the scalar momentum in the z direction.

If we introduce scaling parameters for the density and momentum for the top and bottom…

and plug these into the above equations, we can solve for and

The momentum equations give us 4 constraints for two variables.

For reference on another way astrobear has implemented sinks in the past, see SinkParticle

Note: See TracWiki for help on using the wiki.