From 140d77a9baaa91349f169922b2dd482b83e4c671 Mon Sep 17 00:00:00 2001 From: Chunxiao Li Date: Mon, 7 Jun 2021 12:56:45 +0800 Subject: [PATCH] trivial modification --- pyatmos/utils/Const.py | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pyatmos/utils/Const.py b/pyatmos/utils/Const.py index 027d354..135efca 100644 --- a/pyatmos/utils/Const.py +++ b/pyatmos/utils/Const.py @@ -1,10 +1,26 @@ +import numpy as np # Some physical constants at sea level -r0 = 6371.0008 # volumetric radius for the Earth, [km] +R0 = 6371.0008 # volumetric radius of the Earth, [km] g0 = 9.80665 # standard gravity acceleration, [m/s^2] M0 = 28.9644 # mean molecular weight, [kg/kmol] R_air = 8314.32/M0 # gas constant for dry air, [J/kg/K] gamma = 1.4 # specific heat ratio, namely the ratio of constant-pressure to constant-volume specific heat -t0 = 288.15 # temperature, [K] +T0 = 288.15 # temperature, [K] p0 = 101325 # pressure, [Pa] -h0 = 0 # height, [km] - \ No newline at end of file +h0 = 0 # height, [km] + +pi = np.pi +twopi = 2*np.pi +fourpi = 4*np.pi +degrad = pi / 180 +al10 = np.log(10) + +# AVOGAD is Avogadro's number in mks units (molecules/kmol) +avogad = 6.02257e26 +pivo2 = 1.5707963 +pivo4 = 1.5707963 + +# RSTAR is the universal gas-constant in mks units (joules/K/kmol) +rstar = 8314.32 + +x = np.arange(0.5,48)/24 \ No newline at end of file