| 4 | |
| 5 | Summary of Krumholz, Stone, Gardiner: No assumption of equilibrium (thermal or ionization). Usual MHD equations: |
| 6 | {{{ |
| 7 | #!latex |
| 8 | $\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho v) = 0$ |
| 9 | |
| 10 | $\frac{\partial}{\partial t}(\rho v) + \nabla \cdot (\rho v v - B B) + \nabla P^* = 0$ |
| 11 | |
| 12 | $\frac{\partial B}{\partial t} + \nabla \cdot (vB - Bv) = 0$ |
| 13 | |
| 14 | $\frac{\partial E}{\partial t} + \nabla \cdot [(E+P^*)v-B(B \cdot v)] = \mathcal G - \mathcal L$ |
| 15 | |
| 16 | $\frac{\partial \rho_n}{\partial t} + \nabla \cdot (\rho_n v) = \mathcal R - \mathcal I$ |
| 17 | }}} |
| 18 | |
| 19 | Still need to specify rates of radiative processes. |
| 20 | |
| 21 | Algorithm: |
| 22 | |
| 23 | q vector of information now includes neutral densities: |
| 24 | |
| 25 | $\vec q^n = \begin{pmatrix} \rho^n \\ \vec p^n \\ \vec B^n \\ E^n \\ \rho^n_n \end{pmatrix}$ |
| 26 | |
| 27 | Flow control diagram: |
| 28 | |
| 29 | [[Image(control_flow.png)]] |
| 30 | |
| 31 | In order to update radiation, start by calculating cells through which rays from each source pass - start with 12, but may split into 4 child rays at any time (ref Abel and Wandelt 2002). Need length of rays that intersect each cell for calculating absorbed flux (usual exponential dependence on optical depth, given by number densities). Similar calculations for photoionization and photoionization heating - calculation ends at edge of domain or when only a small fraction of the photons are left. Sum heating and photoionization for every ray which passes through a given cell. Since collisional ionization, recombination, and optically thin heating and cooling are local effects, just calculate these for current state of fluid. Calculate time step from relative size of changes, then change in q is: |
| 32 | |
| 33 | $\Delta q = \Delta t \begin{pmatrix} 0 \\ \vec 0 \\ \vec 0 \\ \mathcal G - \mathcal L \\ \mathcal R - \mathcal I \end{pmatrix}$ |
| 34 | |
| 35 | Iterate until particular conditions (relating to time step or change in energy) are met, at which point feed to conservative MHD update. |