Changes between Version 17 and Version 18 of u/erica/scratch
- Timestamp:
- 02/08/16 12:15:09 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/scratch
v17 v18 1 1 The accretion luminosity is summed up for all cells surrounding the sink particle, and the total is given by 'E_acc'. This total accretion energy is then smoothed over a kernel of cells surrounding the sink, proportionally to a decreasing exponential, such that, 2 2 3 Sum dE_acc | cells = E_acc 3 [[latex($\Sigma ~dE_{acc} = E_{acc}$)]] 4 4 5 In other words, the exponential function is ' normalized'.5 In other words, the exponential function is ''normalized''. 6 6 7 7 We also want the exponential function to go to zero at the boundary of the kernel. 8 8 9 So given these 2 constraints, we have the following set of equations,9 So given these 2 constraints, we have the following equation, 10 10 11 [[latex($E_{acc} = \sum_{i=0}^{4} k(~e^{-dx*i} - e^{-4dx} )~E_{acc} $)]] 12 13 which gives the normalization constant, 14 15 [[latex($ \boxed{k = \frac{1}{~\Sigma ~e^{-dx*i}-e^{-4dx}}} $)]] 16 17 Note that the sum runs over cells i=0 to 1, where the '0th' cell is the cell the sink is in, and the '4th' cell is the furthest cell from the sink in the kernel, that the exponential goes to zero at this boundary, and dx*i gives a position (which here assumes the sink is at the cell center, but will be more general in the code). 18