Preliminary Earth Model.  
More...
Preliminary Earth Model. 
- Author
 - Costas Andreopoulos <c.andreopoulos  cern.ch> University of Liverpool
 
- Created:
 - August 07, 2009
 
- License:
 - Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org 
 
 
      
        
          | double genie::utils::prem::Density  | 
          ( | 
          double  | 
          r | ) | 
           | 
        
      
 
Definition at line 18 of file PREM.cxx.
References genie::units::g_cm3, genie::units::km, and genie::constants::kREarth.
Referenced by genie::NievesQELCCPXSec::CNCTCLimUcalc(), and main().
   33     rho = 13.0885 - 8.8381*x*x;
 
   35   else if (r >  1221.5 && r <= 3480.0 )
 
   37     rho = 12.5815 - 1.2638*x - 3.6426*x*x - 5.5281*x*x*x;
 
   39   else if (r >  3480.0 && r <= 5701.0 )
 
   41     rho = 7.9565  - 6.4761*x + 5.5283*x*x - 3.0807*x*x*x;
 
   43   else if (r >  5701.0 && r <= 5771.0 )
 
   45     rho = 5.3197  - 1.4836*x;
 
   47   else if (r >  5771.0 && r <= 5971.0 )
 
   49     rho = 11.2494 - 8.0298*x;
 
   51   else if (r >  5971.0 && r <= 6151.0 )
 
   53     rho = 7.1089  - 3.8045*x;
 
   55   else if (r >  6151.0 && r <= 6346.6 )
 
   57     rho = 2.691   + 0.6924*x;
 
   59   else if (r >  6346.6 && r <= 6356.0 )
 
   63   else if (r >  6356.0 && r <= 6368.0 )
 
   67   else if (r >  6368.0 && r <= rE)
 
static constexpr double km
 
static constexpr double g_cm3
 
static const double kREarth