Changes between Version 3 and Version 4 of u/erica/scratch5
- Timestamp:
- 04/11/16 15:18:26 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/scratch5
v3 v4 21 21 Next, I calculated the energy injection rate using the luminosity of a FHSC: 22 22 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. 23 L=3.9e+29 erg s^-1^ [[br]] 24 Lscale=Pscale*(lscale)^3^/timescale[[br]] 25 L(cu)=2.32 e-33 37 26 38 27 Next came scaling the opacities. 39 28 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.29 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. 41 30 42 31 tpow=0 [[br]]