piernik-dev / piernik

Piernik MHD Code
GNU General Public License v3.0
15 stars 15 forks source link

accretion rate #141

Open migueldvb opened 9 years ago

migueldvb commented 9 years ago

I wonder if there is a test problem that includes removing part of material that accumulates in some fraction of the Roche lobe of an object every time step to calculate the accretion rates onto the object.

gawrysz commented 9 years ago

I think it is not general enough to be eligible for being a test problem, unless there is some standard defined in the literature.

Such things can be implemented in routines in initproblem.F90 and hooked through problem_customize_solution.

migueldvb commented 9 years ago

Thank you, I will try to do that.

Is there a way in piernik that I could use to monitor the mass flux through a sphere centered on one of the stellar components?

gawrysz commented 9 years ago

I see two ways: