Changes between Version 21 and Version 22 of u/erica/scratch4
- Timestamp:
- 02/16/16 19:53:15 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/scratch4
v21 v22 21 21 = Tracking accretion luminosity in the code = 22 22 23 At each time -step i, the luminosity is computed as:23 At each time step i, the luminosity is computed as: 24 24 25 25 [[latex($L_i=\frac{G M_i dm_i}{R ~dt}$)]] 26 26 27 where [[latex($M_i$)]] is the mass of the sink particle at i, [[latex($dm_i$)]] is the total accreted mass for that time-step, [[latex($G$)]] is the gravitational constant in computational units, [[latex($R$)]] is the radius of the star, taken to be 1 solar radius by default, but modifiable by the user at run-time, and [[latex($dt$)]] is the hydro time -step.27 where [[latex($M_i$)]] is the mass of the sink particle at i, [[latex($dm_i$)]] is the total accreted mass for that time-step, [[latex($G$)]] is the gravitational constant in computational units, [[latex($R$)]] is the radius of the star, taken to be 1 solar radius by default, but modifiable by the user at run-time, and [[latex($dt$)]] is the hydro time step. 28 28 29 29 == Kernel == … … 64 64 [[latex($ source(i,j,k,iaccretion\_energy)= info\%workarray(i,j,k,iaccretion\_energy)*dt_{rad} $)]] 65 65 66 where we now enter the total ''specific'' (recall k has units of 1/volume) accretion energy into the source function averaged over a radiative time step. And now, we are ready to begin testing.66 where we now enter the total ''specific'' (recall k has units of 1/volume) accretion energy into the source function averaged over a radiative time step. And now, we are ready to begin testing. 67 67 68 68 == Physical meaning of the accretion energy source term ==