Changes between Version 2 and Version 3 of u/bliu/AblativeRT/Equations


Ignore:
Timestamp:
05/22/15 13:22:23 (10 years ago)
Author:
Baowei Liu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/bliu/AblativeRT/Equations

    v2 v3  
    22
    331. Equations
     4$$\frac{1}{\gamma-1}\rho_{cgs}\frac{\partial T}{\partial t}=\frac{10\kappa_{0}K_{B}^{n}}{(\gamma-1)C_{v}}\frac{\partial}{\partial x_{cgs}}\left[T^{n}\frac{\partial T}{\partial x_{cgs}}\right]$$
    45
    5 2. subroutine getdEdT in EOS.f90
     6where T is in cgs unit or Kelvin.
     7
     8In current version of AstroBEAR, we have
     9$$\frac{\partial E}{\partial T}\frac{\partial T}{\partial t}=\frac{10\kappa_{0}K_{B}^{n}}{(\gamma-1)C_{v}}\frac{\partial}{\partial x_{cgs}}\left[T^{n}\frac{\partial T}{\partial x_{cgs}}\right]$$
     10
     11And same as blog:bliu01092014, we define
     12
     13$$ \kappa_{1}=\frac{10\kappa_{0}K_{B}^{n}}{(\gamma-1)C_{v} } $$
     14$$ q^{*}_{cgs}=\kappa_{1}T^{*}\frac{\partial T}{\partial x_{cgs}}$$
     15
     16And so same as blog:bliu01092014, we have
     17
     18In Betti's data, $C_{v}=7.816e26$ and $\gamma=5/3$ so
     19$$q_{0}=\frac{2}{3}*7.816*1.38*10^{4}*q^{*}_{cgs}$$
     20
     212. Scales for converting from cgs to cu
     22 ScaleFlux is the scale which converts the heat flux from cgs units to computational units in AstroBEAR. Since
     23$$\frac{\partial E}{\partial T}\frac{\partial T}{\partial t}=\frac{\partial Q}{\partial x}$$
     24The new scaleFlux is $EScale*velScale$ or $pScale*velScale$ as the temperature is in Kelvin now.
     25While in the older version where the temperature is in c.u. scale,
     26$$\frac{1}{\gamma-1}\rho\frac{\partial T}{\partial t}=\frac{\partial Q}{\partial x}$$
     27So $scaleFlux is rScale*TempScale*velScale$ instead...
     28
     29scaleDiff is the scale that converts the kappa1 from cgs units to computational units. Since
     30$$ q^{*}_{cgs}=\kappa_{1}T^{*}\frac{\partial T}{\partial x_{cgs}}$$
     31So
     32$$scaleDiff=scaleFlux*lScale$$
     33
     343. subroutine getdEdT in EOS.f90
    635This subroutine will return the value of dE/dT which has a unit as C.U. Energy/Kelvin
    736
    8 3. source and stencil_fix(0) in diffusion.f90 will be modified as
     374. source and stencil_fix(0) in diffusion.f90 will be modified as
    938
    1039{{{