Changes between Version 14 and Version 15 of u/erica/scratch4
- Timestamp:
- 02/16/16 18:43:31 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/scratch4
v14 v15 33 33 [[latex($\sum \Delta E_i*dV_i=E ~~~~~~(1)$)]] 34 34 35 where [[latex($E$)]] is the accretion energy from the time step, [[latex($\Delta E_i$)]] is the differential amount of E to be distributed in the ith cell, and [[latex($dV_i$)]] is the volume of the ith cell. As of now, the units don't balance in this equation. W hen we normalize the kernel, the normalization constant will then have units of 1/volume to satisfy this equation aswe will do next.35 where [[latex($E$)]] is the accretion energy from the time step, [[latex($\Delta E_i$)]] is the differential amount of E to be distributed in the ith cell, and [[latex($dV_i$)]] is the volume of the ith cell. As of now, the units don't balance in this equation. We then need to find a normalization constant that has units of 1/volume, which we will do next. 36 36 37 Now, we want the amount of E in each cell to drop off smoothly with radius away from the sink. For this we choose a decaying exponential. Let,37 We want the amount of E in each cell to drop off smoothly with radius away from the sink. For this we choose a decaying exponential. Let, 38 38 39 [[latex($\Delta E_i= k E e^{-r_i/ scale}$)]]39 [[latex($\Delta E_i= k E e^{-r_i/\sigma} ~~~~~~~(2)$)]] 40 40 41 To solve for the normalization constant, we insert thisinto (1):41 where [[latex($\sigma$)]] is a scaling factor. In the code this scaling factor lets the exponential fall to zero at the boundary of the kernel, and a width that gives ... how to describe this. Now, to solve for the normalization constant, we insert (2) into (1): 42 42 43 [[latex($\sum k E e^{-r_i/ scale}=E$)]]43 [[latex($\sum k E e^{-r_i/\sigma}dV_i=E$)]] 44 44 45 45 46 46 and solve for k: 47 47 48 [[latex($k= \frac{1}{\sum e^{-r_i/ scale} dV_i}$)]]48 [[latex($k= \frac{1}{\sum e^{-r_i/\sigma} dV_i}$)]] 49 49 50 51 While the set of equations for the kernel is arbitrary, as we will see in the next section, this normalization constant allows us to easily feed into the source function a ''specific'' accretion energy (i.e. E/V), which is necessary for the code's solvers. 50 52 51 53