3
Q_	                 @   s   d Z dd ZdS )a  
*********************************************** 
*      Definition of physical constants       *
***********************************************
This code is part of the LIFELINE program.

Copyright (C) 2020-2021 University of Liege (Belgium)
Enmanuelle Mossoux (STAR Institute)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with this program.
If not, see <http://www.gnu.org/licenses/>.

Run: 
  from constantes import constante
  C=constante(CName)

# Parameters 
# ==========
CName - The name of the constante you want among:
	Rsun [cm]
	Msun [g]
	Lsun [W]
	sigma_k (Stefan-Boltzmann in W/m^2/K^4)
	G (gravity  in m^3/kg/s^2)
	AU_Rsun (1 au in Rsun)
	AU_m (1 au in m)
	c (light velociy in m/s)
	pc_m (1 pc in m)
	K_kev (1 K in keV)
	sigma_t (Thomson cross section in m^2)
	me (electron mass in kg)
	mp (proton mass in kg)
	mu0 (Permeability of free space in N/A/m)
	e (electric charge in C)
	alpha (fine structure constant)
	kb (Boltzmann constant in erg/K)
	h (planck constant in eV s)

c             C   s   | dkrdS | dkrdS | dkr$dS | dkr0dS | d	kr<d
S | dkrHdS | dkrTdS | dkr`dS | dkrldS | dkrxdS | dkrdS | dkrdS | dkrdS | dkrdS | dkrdS | dkrd S | d!krd"S | d#krd$S t d% d S d S )&NRsung  20BMsung|FZLsungOMMPsEZsigma_kg@ט"Mqn>Gg7^wX=ZAU_Rsung,ij@ZAU_mg  6-]jABcg   JxޱAZpc_mg dh[CZK_kevg     fAZsigma_tg1l:meg|Ry9mpg7w`:mu0glO>egp%ڤ<alphag,)}?kbgg<hg:<zThis constant is not defined. Please add it in constantes.py or choose in Rsun, Msun, Lsun, sigma_k, G, AU_Rsun, AU_m, c, pc_m, K_kev, sigma_t,me, mp, mu0, e, alpha, kb or h)print)ZCName r   3/local/network/htdocs/Lifeline/codes3/constantes.py	constante-   sL    r   N)__doc__r   r   r   r   r   <module>,   s   