User:Tohline/Appendix/Ramblings/Radiation/CodeUnits

From VistrailsWiki
Jump to navigation Jump to search
Whitworth's (1981) Isothermal Free-Energy Surface
|   Tiled Menu   |   Tables of Content   |  Banner Video   |  Tohline Home Page   |

Marcello's Radiation-Hydro Simulations

Determining Code Units

Logic Used by Dominic Marcello

At our group meeting on 21 July 2010, Dominic explained how he had established the values of various coupling constants in his first, long, <math>q_0 = 0.7</math> simulations. In place of the physical constants, <math>~G</math>, <math>~c</math>, <math>~\Re</math>, and <math>~a_\mathrm{rad}</math>, Dominic used the following code-unit values — hereafter referred to as Case A:

  • <math>\tilde{g} = 1</math>
  • <math>\tilde{c} = 198</math>
  • <math>\tilde{r} = 0.44</math>
  • <math>\tilde{a} = 0.044</math>

This means that any temperature in the simulation that has a value <math>T_\mathrm{code}</math> in code units must represent an actual physical temperature <math>T_\mathrm{cgs}</math> in cgs units (i.e., measured in Kelvins) of,

<math> T_\mathrm{cgs} = \biggl[ \biggl(\frac{c^2}{\Re}\biggr)\biggl(\frac{\tilde{c}^2}{\tilde{r}}\biggr)^{-1} \biggr] T_\mathrm{code} ; </math>

any length-scale in the simulation that has a value <math>\ell_\mathrm{code}</math> must represent an actual physical length <math>\ell_\mathrm{cgs}</math> in cgs units of,

<math> \ell_\mathrm{cgs} = \biggl[\biggl(\frac{\Re^4}{c^4 G a_\mathrm{rad}}\biggr)\biggl(\frac{\tilde{r}^4}{\tilde{c}^4 \tilde{g}\tilde{a}}\biggr)^{-1}\biggr]^{1/2} \ell_\mathrm{code} ; </math>

any time in the simulation that has a value <math>t_\mathrm{code}</math> must represent an actual physical time <math>t_\mathrm{cgs}</math> in cgs units of,

<math> t_\mathrm{cgs} = \biggl[\biggl(\frac{\Re^4 }{c^6 G a_\mathrm{rad}}\biggr)\biggl(\frac{\tilde{r}^4}{\tilde{c}^6 \tilde{g}\tilde{a}}\biggr)^{-1}\biggr]^{1/2} t_\mathrm{code} ; </math>

and, finally, any mass in the simulation that has a value <math>m_\mathrm{code}</math> must represent an actual physical mass <math>m_\mathrm{cgs}</math> in cgs units of,

<math> m_\mathrm{cgs} = \biggl[\biggl(\frac{\Re^4}{G^3 a_\mathrm{rad}}\biggr)\biggl(\frac{\tilde{r}^4}{\tilde{g}^3 \tilde{a}}\biggr)^{-1}\biggr]^{1/2} m_\mathrm{code} . </math>


Now, the SCF-code-generated polytropic binary that Wes Even gave to Dominic had the following properties, in dimensionless code units:

  • <math>[M_\mathrm{total}]_\mathrm{code} = 0.85</math>;
  • <math>[R_\mathrm{Accretor}]_\mathrm{code} = 0.4</math>; and
  • <math>[P_\mathrm{orbit}]_\mathrm{code} = 31</math>.

According to Dominic's calculations this means that his simulation represents a real binary system with the following properties:

  • <math>[M_\mathrm{total}]_\mathrm{cgs} = 0.1 M_\odot</math>;
  • <math>[R_\mathrm{Accretor}]_\mathrm{cgs} = 0.56 R_\odot</math>; and
  • <math>[P_\mathrm{orbit}]_\mathrm{cgs} = 28~\mathrm{minutes}</math>.

Conversely — assuming pure helium, that is, a mean molecular weight <math>~\bar{\mu}</math> of 2 — since the Thompson cross-section is <math>[\sigma_T]_\mathrm{cgs} = 0.2~\mathrm{cm}^2~\mathrm{g}^{-1}</math>, Dominic determined that, in the code, he needed to set the Thompson cross-section value to <math>[\sigma_T]_\mathrm{code} = 8\times 10^{12}</math>. Finally, Dominic pointed out that the characteristic size of a grid cell in the code is <math>[\Delta z]_\mathrm{code} = 0.025</math>. Hence, if only the Thompson cross-section is relevant, the mean-free-path of a photon will equal the size of one grid cell if,

<math> \biggl[\frac{1}{\sigma_T\rho}\biggr]_\mathrm{code} = [\Delta z]_\mathrm{code} </math>

<math> \Rightarrow ~~~~~ [\rho]_\mathrm{code} = \biggl[\frac{1}{\sigma_T(\Delta z)}\biggr]_\mathrm{code} = \frac{1}{2\times 10^{11}} . </math>

Joel's Check of Dominic's Logic and Numbers

Let's plug in values of the physical units that we have tabulated in a Variables Appendix to see if we agree with Dominic's conversions.

<math> \frac{c^2}{\Re} </math>

<math> = </math>

<math> \frac{(3\times 10^{10})^2}{8.314\times 10^7}~\mathrm{cgs} </math>

<math> = </math>

<math> 1.083\times 10^{13}~\mathrm{K} </math>

<math> \biggl(\frac{\Re^4}{c^4 G a_\mathrm{rad}}\biggr)^{1/2} </math>

<math> = </math>

<math> \frac{(8.314\times 10^7)^2}{(3\times 10^{10})^2 (6.674\times 10^{-8})^{1/2}(7.566\times 10^{-15})^{1/2}}~\mathrm{cgs} </math>

<math> = </math>

<math> 3.418\times 10^{5}~\mathrm{cm} </math>

<math> \biggl(\frac{\Re^4}{c^6 G a_\mathrm{rad}}\biggr)^{1/2} </math>

<math> = </math>

<math> \frac{(8.314\times 10^7)^2}{(3\times 10^{10})^3 (6.674\times 10^{-8})^{1/2}(7.566\times 10^{-15})^{1/2}}~\mathrm{cgs} </math>

<math> = </math>

<math> 1.139\times 10^{-5}~\mathrm{s} </math>

<math> \biggl(\frac{\Re^4}{G^3 a_\mathrm{rad}}\biggr)^{1/2} </math>

<math> = </math>

<math> \frac{(8.314\times 10^7)^2}{(6.674\times 10^{-8})^{3/2}(7.566\times 10^{-15})^{1/2}}~\mathrm{cgs} </math>

<math> = </math>

<math> 4.609\times 10^{33}~\mathrm{g} </math>

Hence,

General Relations

<math> \frac{T_\mathrm{cgs}}{T_\mathrm{code}} </math>

<math> = </math>

<math> 1.083\times 10^{13}~\mathrm{K} \biggl( \frac{\tilde{r}}{\tilde{c}^2} \biggr) </math>

<math> \frac{\ell_\mathrm{cgs}}{\ell_\mathrm{code}} </math>

<math> = </math>

<math> 3.418\times 10^{5}~\mathrm{cm} \biggl( \frac{\tilde{c}^4 \tilde{g} \tilde{a} }{\tilde{r}^4} \biggr)^{1/2} </math>

<math> \frac{t_\mathrm{cgs}}{t_\mathrm{code}} </math>

<math> = </math>

<math> 1.139\times 10^{-5}~\mathrm{s} \biggl( \frac{\tilde{c}^6 \tilde{g} \tilde{a} }{\tilde{r}^4} \biggr)^{1/2} </math>

<math> \frac{m_\mathrm{cgs}}{m_\mathrm{code}} </math>

<math> = </math>

<math> 4.609\times 10^{33}~\mathrm{g} \biggl( \frac{\tilde{g}^3 \tilde{a} }{\tilde{r}^4} \biggr)^{1/2} </math>

For the Case A parameter values adopted by Dominic, above, and for the particular SCF-code-generated model provided by Wes, I derive,


Case A

<math> R_\mathrm{Accretor} </math>

<math> = </math>

<math> 3.418\times 10^{5}~\mathrm{cm} \biggl[ \frac{198^4 \times 0.044 }{(0.44)^4 } \biggr]^{1/2} \times 0.40 </math>

<math> = </math>

<math> 5.8\times 10^{9}~\mathrm{cm} = 0.083~\mathrm{R}_\odot </math>

<math> P_\mathrm{orbit} </math>

<math> = </math>

<math> 1.139\times 10^{-5}~\mathrm{s} \biggl[ \frac{198^6 \times 0.044 }{(0.44)^4} \biggr]^{1/2} \times 31 </math>

<math> = </math>

<math> 2.97\times 10^{3}~\mathrm{s} = 49.5 ~\mathrm{minutes} </math>

<math> M_\mathrm{total} </math>

<math> = </math>

<math> 4.609\times 10^{33}~\mathrm{g} \biggl[ \frac{0.044 }{(0.44)^4 } \biggr]^{1/2} \times 0.85 </math>

<math> = </math>

<math> 4.245\times 10^{33}~\mathrm{g} = 2.1~\mathrm{M}_\odot </math>

These values do not agree with the ones derived by Dominic.

Possible Point of Confusion/Disagreement

NOTE: Either Dominic wrote the wrong values on my whiteboard or I copied them down incorrectly, but based on the SCF-code parameters that were given to me by Wes Even, in dimensionless code units the model parameters should be: <math>[M_\mathrm{total}]_\mathrm{code} = 0.0237</math> and <math>[R_\mathrm{Accretor}]_\mathrm{code} = 0.273</math> and <math>[P_\mathrm{orbit}]_\mathrm{code} = 31.19</math>; the orbital separation is <math>[a_\mathrm{separation}]_\mathrm{code} = 0.83938</math>. Combining these values with Dominic's Case A parameter values gives:

  • <math>[M_\mathrm{total}]_\mathrm{cgs} = 0.059 M_\odot</math>;
  • <math>[R_\mathrm{Accretor}]_\mathrm{cgs} = 0.057 R_\odot</math>;
  • <math>[P_\mathrm{orbit}]_\mathrm{cgs} = 50~\mathrm{minutes}</math>; and
  • <math>[a_\mathrm{separation}]_\mathrm{cgs} = 0.174 R_\odot</math>.

On 7/24/2010, Joel checked this boxed-in group of numbers against a "polytropic unit conversion spreadsheet" that he developed while at the Lorentz Institute in the Fall of 2010. They are all consistent with Wes Even's SCF-generated Q07 model.


Other Thoughts

Notice that Dominic's method for converting from code units to cgs units frequently involves the following ratio of physical constants:

<math> \Lambda \equiv \biggl( \frac{\Re^4}{G a_\mathrm{rad}} \biggr)^{1/2} = 3.076 \times 10^{26}~\mathrm{cm}^3~\mathrm{s}^{-2}. </math>

In terms of this new physical constant,

<math> \ell \sim \Lambda c^{-2} ; </math>

<math> t \sim \Lambda c^{-3} ; </math>

<math> \mathrm{and} ~~~~~ m \sim \Lambda G^{-1} . </math>

Ratio of Gas Pressure to Radiation Pressure

Let's define the following pressure ratios:

<math> \Gamma \equiv \frac{P_\mathrm{gas}}{P_\mathrm{rad}} = \frac{3 \Re}{a_\mathrm{rad} \bar{\mu} } \biggl[ \frac{\rho}{T^3} \biggr] , </math>

and,

<math> \beta \equiv \frac{P_\mathrm{gas}}{(P_\mathrm{gas}+P_\mathrm{rad})} = \frac{\Gamma}{1 + \Gamma} . </math>

Following Dominic's definition of code units, above, <math>T^3</math> should be normalized by <math>( c^6/\Re^3 )</math> and we see that the mass density should be normalized by the quantity <math>(a_\mathrm{rad} c^6/\Re^4)</math>. Hence, the ratio of gas pressure to radiation pressure can be written as,

<math> \Gamma = \frac{3}{\bar{\mu} } \biggl[ \frac{\rho_\mathrm{code}}{T_\mathrm{code}^3} \biggr] \frac{\tilde{r}}{\tilde{a}} . </math>


 

Whitworth's (1981) Isothermal Free-Energy Surface

© 2014 - 2021 by Joel E. Tohline
|   H_Book Home   |   YouTube   |
Appendices: | Equations | Variables | References | Ramblings | Images | myphys.lsu | ADS |
Recommended citation:   Tohline, Joel E. (2021), The Structure, Stability, & Dynamics of Self-Gravitating Fluids, a (MediaWiki-based) Vistrails.org publication, https://www.vistrails.org/index.php/User:Tohline/citation