| 1 |
!----------------------------------------------------------------- |
| 2 |
! |
| 3 |
! This file is (or was) part of SPLASH, a visualisation tool |
| 4 |
! for Smoothed Particle Hydrodynamics written by Daniel Price: |
| 5 |
! |
| 6 |
! http://users.monash.edu.au/~dprice/splash |
| 7 |
! |
| 8 |
! SPLASH comes with ABSOLUTELY NO WARRANTY. |
| 9 |
! This is free software; and you are welcome to redistribute |
| 10 |
! it under the terms of the GNU General Public License |
| 11 |
! (see LICENSE file for details) and the provision that |
| 12 |
! this notice remains intact. If you modify this file, please |
| 13 |
! note section 2a) of the GPLv2 states that: |
| 14 |
! |
| 15 |
! a) You must cause the modified files to carry prominent notices |
| 16 |
! stating that you changed the files and the date of any change. |
| 17 |
! |
| 18 |
! Copyright (C) 2005-2023 Daniel Price. All rights reserved. |
| 19 |
! Contact: [email protected] |
| 20 |
! |
| 21 |
!----------------------------------------------------------------- |
| 22 |
!---------------------------------------------------------------------------- |
| 23 |
! |
| 24 |
! modules containing physical constants |
| 25 |
! |
| 26 |
!---------------------------------------------------------------------------- |
| 27 |
module physcon |
| 28 |
use params, only:doub_prec |
| 29 |
implicit none |
| 30 |
real, parameter :: pi = 4.*atan(1.) |
| 31 |
real(doub_prec), parameter :: solarrcgs = 6.955d10 ! cm |
| 32 |
real(doub_prec), parameter :: solarmcgs = 1.989d33 ! g |
| 33 |
real(doub_prec), parameter :: steboltz = 5.67e-5 ! erg cm^-2 K^-4 s-1 |
| 34 |
real(doub_prec), parameter :: radconst = 7.5646d-15 ! Radiation constant erg cm^-3 K^-4 |
| 35 |
real(doub_prec), parameter :: kboltz = 1.38066d-16 |
| 36 |
real(doub_prec), parameter :: mh = 1.67262158d-24 ! g |
| 37 |
real(doub_prec), parameter :: au = 1.496d13 ! cm |
| 38 |
real(doub_prec), parameter :: c = 2.997924d10 ! Speed of light cm/s |
| 39 |
real(doub_prec), parameter :: hplanck = 6.6260755d-27 ! Planck's Constant erg/s |
| 40 |
real(doub_prec), parameter :: kb_on_mh = kboltz/mh |
| 41 |
real(doub_prec), parameter :: Lsun = 3.839d33 ! Solar luminosity, erg/s |
| 42 |
real(doub_prec), parameter :: cm_to_nm = 1.d7 |
| 43 |
real(doub_prec), parameter :: keV_to_erg = 1.6022d-9 ! k_eV to erg |
| 44 |
real(doub_prec), parameter :: keV_to_Hz = keV_to_erg/hplanck ! k_eV to erg |
| 45 |
real(doub_prec), parameter :: mass_electron_cgs = 9.10938291d-28 !Electron mass in g |
| 46 |
real(doub_prec), parameter :: qe = 4.8032068d-10 !charge on electron esu |
| 47 |
real(doub_prec), parameter :: sigma_e = 6.652e-25 ! Thomson cross section |
| 48 |
|
| 49 |
public |
| 50 |
end module physcon |