| 30 | |
| 31 | == 2. Computational Scales == |
| 32 | In AstroBEAR code, everything is in computational scales. In this part, I summarize the relations of scales for different physics quantities. The details can be found in [http://www.pas.rochester.edu/~bliu/ConductFront/Finals/scales.pdf Parameters and Scales for the Ablative RT problem (and in the code)]. |
| 33 | |
| 34 | The following table gives scales the relationship to physics variables in C.U. in the code |
| 35 | $$X_{cu} = X_{cgs}/xScale$$ |
| 36 | |
| 37 | || Variable || scale || relationship in cu || |
| 38 | || length || lScale || || |
| 39 | || time || timeScale || || |
| 40 | || velocity || velScale || v=l/t || |
| 41 | || density || rScale || || |
| 42 | || temperature || TempScale || || |
| 43 | || pressure || pScale || $p=\rho T$ || |
| 44 | || energy || || $E=\frac{1}{\gamma-1}(p+0.5*\rho *v^2)$ || |
| 45 | |
| 46 | More details about physics relations in the code can be found in the [https://astrobear.pas.rochester.edu/trac/wiki/VisIt visit expressions] |
| 47 | |
| 48 | The above heat diffusion equation (everything is in C.U.) in AstroBEAR is |
| 49 | $$\frac{1}{\gamma-1}\rho\frac{\partial T}{\partial t}=\frac{\partial}{\partial x}\left[\kappa_{1}T^{n}\frac{\partial T}{\partial x}\right]$$ |
| 50 | |
| 51 | The reason the $\frac{1}{\gamma-1}$ is there because we want the left-hand-side to be energy where $\rho T$ gives pressure in C.U. |
| 52 | |
| 53 | |