geoneutrinos / reactors

Port/cleanup of the reactor page as an independent repo
2 stars 1 forks source link

Add PREM #593

Closed stdye closed 7 months ago

stdye commented 8 months ago

This starts the addition of the Preliminary Reference Earth Model (PREM)

cloudflare-workers-and-pages[bot] commented 8 months ago

Deploying reactors with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca4582b
Status: ✅  Deploy successful!
Preview URL: https://c0bac4bf.reactors.pages.dev
Branch Preview URL: https://stdye-patch-1.reactors.pages.dev

View logs

stdye commented 8 months ago

This is work in progress towards adding PREM

stdye commented 8 months ago

Now that the code for calculating the PREM density (rho) is working, the next task is to add code that calculates: 1) the volume of each shell [ vol_shell = 4/3 pi ( r_out^3 - r_in^3) ] 2) the mass of each shell [ mass_shell = rho_shell * vol_shell ] 3) the masses of each PREM layer (i.e. inner core, outer core, lower mantle, transition zone, LVZ, LID, Crust), where mass_layer = sum(mass_shell)

stdye commented 8 months ago

This works. Just need to replace the entered constants MANTLE_MASS and MANTLE_GEOPHYSICAL_RESPONSE with values calculated internally with the now added PREM model