Changes between Version 3 and Version 4 of u/erica/scratch5


Ignore:
Timestamp:
04/11/16 15:18:26 (9 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/scratch5

    v3 v4  
    2121Next, I calculated the energy injection rate using the luminosity of a FHSC:
    2222
    23 L=3.9e+29 s [[br]]
    24 E(radiated in a diffusion time)=L*tdiff=8e+35 erg
    25 
    26 I convert this into an energy density, in computational units, by dividing by pscale,
    27 
    28 e(cu)=8e+35erg/Pscale=4.74e+43
    29 
    30 From this I can get an energy injection rate (i.e. the amount of energy density injected into the kernel each timestep),
    31 
    32 de/dt=e(cu)/tsim(cu)=4.74e+43/6.13e-9=7.73246e+51.
    33 
    34 Running this high of an de/dt gave problems, so I decreased this to:
    35 
    36 de/dt=e(cu)/tsim(cu)=4.74e+43/6.13e-9=7.73246e+21.
     23L=3.9e+29 erg s^-1^ [[br]]
     24Lscale=Pscale*(lscale)^3^/timescale[[br]]
     25L(cu)=2.32 e-33
    3726
    3827Next came scaling the opacities.
    3928
    40 The code takes specific opacity (this is in cm^2/g), and then asks whether it should be constant, or multiplied by density (or temperature) to some power. I set it to be a power law scaling.
     29The code takes specific opacity (this is in cm^2^/g), and then asks whether it should be constant, or multiplied by density (or temperature) to some power. I set it to be a power law scaling.
    4130
    4231tpow=0 [[br]]