

#========================Unit conversion constant========================


#Length conversion (default unit = meter)
unit_mm=1000
unit_cm=100
unit_m=1
unit_ft=3.28084
unit_in=39.370079
unit_yd=1.093613
unit_mile=0.000621

#Area conversion (default unit = square meter)
unit_ft2=10.76391
unit_yd2=1.19599
unit_in2=unit_in**2
unit_cm2=unit_cm**2
unit_m2=1

#Volume conversion (default unit = cubic meter)
unit_cc=1000000
unit_l=1000
unit_cm3=1000000
unit_m3=1
unit_in3=61023.7441
unit_ft3=35.314667
unit_yd3=1.307951
unit_gal=264.172052
unit_bbl=6.293266
unit_oz=33814.0222

#Energy conversion (default unit = kWh)
unit_j=3600000
unit_kj=3600
unit_mj=3.6
unit_gj=0.0036
unit_kWh=1
unit_MWh=1/1000
unit_GWh=unit_MWh/1000
unit_hph=1.34102209
unit_bhph=unit_hph*1.01387
unit_btu=3412.14
unit_mbtu=unit_btu/1000
unit_mmbtu=unit_mbtu/1000
unit_kcal=860.421
unit_mkcal=unit_kcal/1000
unit_mmkcal=unit_mkcal/1000


#Weight conversion (default unit = kg)
unit_ton=0.001
unit_kt=10**-6
unit_lb=2.204623
unit_oz=35.273962
unit_g=1000
unit_kg=1

#Pressure conversion (default unit = bar)
unit_atm=0.986923
unit_Pa=100000
unit_hPa=1000
unit_kPa=100
unit_MPa=0.1
unit_bar=1
unit_kgf=1.019716
unit_psi=14.503824
unit_mmHg=750.061683
unit_inHg=29.529988
unit_mmH2O=10197.1626
unit_inH2O=401.462805
unit_cmHg=unit_mmHg/10
unit_cmH2O=unit_mmH2O/10

#Pressure conversion (default unit = h)
unit_h=1
unit_sec=60*60
unit_min=60
unit_day=1/24
unit_y=unit_day/365