Package pycosmicstar :: Module structures :: Class structures
[hide private]
[frames] | no frames]

Class structures

source code


This class was contructed based in the like Press-Schechter formalism
that provides characteristis like numerical density of dark matter halos
into the range m_h, m_h + dm_h, the fraction of barionic matter,
and,  the accretion rate of barions into structures and the total number
of dark halos.

The models used to develop this class was presented for the first time
in the article of Pereira and Miranda (2010) - (MNRAS, 401, 1924, 2010).

The cosmologic background model is passed as a instance parameter:
    cosmology

Keyword arguments:
    lmin -- (default 6.0) log10 of the minal mass of the dark halo
                        where it is possible to have star formation.

    zmax -- (defaul 20.0) - the maximum redshift to be considered

    omegam -- (default 0.24) - The dark matter parameter

    omegab -- (default 0.04) - The barionic parameter

    omegal -- (default 0.73) - The dark energy parameter

    h -- (default 0.7) - The h of the Hubble constant (H = h * 100)

    massFunctionType:
        (Dark Haloes Mass Function)
        default 'ST' - Sheth et al. (2001) - z=[0,2]
        'TK' - Tinker et al. (2008) - z=[0,2.5]
        'PS' - Press and Schechter (1974) - z=-
        'JK' - Jenkins et al. (2001) z=[0,5]
        'W' - Warren et al. (2006) z=0
        'WT1' - Watson et al. (2013) - Tinker Modified - z=[0,30]
        'WT2' - Watson et al. (2013) - Gamma times times Tinker Modified
                                            z=[0,30]
        'B' - Burr Distribuction. Marassi and Lima (2006) - Press Schechter
                                modified.
    qBurr:
        (default 1) - The q value of Burr Distribuction.

Instance Methods [hide private]
 
__cachingAtribut(self)
Caching the values
source code
 
__creatCachDiretory(self) source code
 
__deltaCz(self, z) source code
 
__fmassM(self, lm, z)
Return the mass function of dark halos multiplied by Mass - Sheth e Tormen (MNRAS 308, 119, 1999).
source code
 
__ifSigmaNotInCache(self)
Calculate the values necessaries to initialize the numerical function of sigma
source code
 
__init__(self, cosmology, **kwargs) source code
 
__massFunctionBurr(self, lm, z)
Return the value of the Burr Distribution (Marassi and Lima (2006)) - Press Schechter modified, mass function.
source code
 
__massFunctionJenkins(self, lm, z)
Return the mass function of Jenkins et al.
source code
 
__massFunctionPressSchechter(self, lm, z)
Return the value of Press-Schechter (1974) mass function.
source code
 
__massFunctionST(self, lm, z)
Return the mass function of dark halos of Sheth e Tormen (MNRAS 308, 119, 1999).
source code
 
__massFunctionTinker(self, lm, z)
Return the mass function of dark halos of Tinker mass function (Tinker et al.
source code
 
__massFunctionW(self, lm, z) source code
 
__massFunctionWT1(self, lm, z)
Return the value of Watson et al.
source code
 
__massFunctionWT2(self, lm, z)
Return the value of Watson et al.
source code
 
__rodmz(self, z) source code
 
__startBarionicAccretionRate(self) source code
 
__startingSigmaAccretion(self)
Verify if the values are in cache
source code
 
_burrBq(self) source code
 
_masFunctionWT0(self, lm, z, A, a, b, c) source code
 
abt(self, a)
Return the accretion rate of barionic matter, as a function of scala factor, into strutures.
source code
 
fbstruc(self, z)
Return the faction of barions into structures
source code
 
fstm(self, lm)
Numerical function that return the value of sigm that will be used by dfridr to calculate d_sigma_dlog10(m).
source code
 
getCacheDir(self)
Return True and cache name if the cache directory existe and false else.
source code
 
getDeltaHTinker(self) source code
 
getmassFunctionDict(self)
Return a list with key and function of implemented dark haloes mass function
source code
 
halos_n(self, z)
Return the integral of the mass function of dark halos multiplied by mass in the range of log(M_min) a log(M_max)
source code
 
massFunction(self, lm, z)
Return the mass function of dark halos.
source code
 
numerical_density_halos(self, z)
Return the numerial density of dark halos within the comove volume
source code
 
setDeltaHTinker(self, delta_halo) source code
 
setMassFunctionDict(self, key, function)
Add a new key and function in the dark haloes mass function dictionary
source code
 
setQBurrFunction(self, q)
Set the q value of dark haloes mass function derived from Burr distribuction.
source code

Inherited from structuresabstract.structuresabstract: cosmicStarFormationRate, gasDensityInStructures

Method Details [hide private]

__massFunctionBurr(self, lm, z)

source code 

Return the value of the Burr Distribution (Marassi and Lima (2006))
 - Press Schechter modified, mass function.
Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift

__massFunctionJenkins(self, lm, z)

source code 
Return the mass function of Jenkins et al. (2003).
Keyword arguments:
   lm -- log10 of the mass of the dark halo
   z -- redshift

__massFunctionPressSchechter(self, lm, z)

source code 
Return the value of Press-Schechter (1974) mass function.
Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift

__massFunctionST(self, lm, z)

source code 
Return the mass function of dark halos of
Sheth e Tormen (MNRAS 308, 119, 1999).

Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift

__massFunctionTinker(self, lm, z)

source code 
Return the mass function of dark halos of
Tinker mass function (Tinker et al. 2008)

This function was adapted from the work of:
    S.G. Murray et al. 2013. Astronomy and Computing. 3-4. 23-34.
    source of the original (https://github.com/steven-murray/hmf)

Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift
    

__massFunctionWT1(self, lm, z)

source code 

Return the value of Watson et al. (2013) (- Tinker Modified - z=[0,30])
mass function
Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift

__massFunctionWT2(self, lm, z)

source code 

Return the value of Watson et al. (2013) (Gamma times
Tinker Modified z=[0,30]) mass function
Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift

abt(self, a)

source code 
Return the accretion rate of barionic matter, as
a function of scala factor, into strutures.

Keyword arguments:
    a -- scala factor (1.0 / (1.0 + z))

Overrides: structuresabstract.structuresabstract.abt

fbstruc(self, z)

source code 
Return the faction of barions into structures

Keyword arguments:
    z -- redshift

Overrides: structuresabstract.structuresabstract.fbstruc

fstm(self, lm)

source code 
Numerical function that return the value of sigm that
will be used by dfridr to calculate d_sigma_dlog10(m).

Keyword arguments:
    lm -- log10 of the mass of dark halo

Overrides: structuresabstract.structuresabstract.fstm

getCacheDir(self)

source code 

Return True and cache name if the cache directory existe and false else.

Overrides: structuresabstract.structuresabstract.getCacheDir

halos_n(self, z)

source code 
Return the integral of the mass function of dark halos multiplied
by mass in the range of log(M_min) a log(M_max)

Keyword arguments:
    z -- redshift

Overrides: structuresabstract.structuresabstract.halos_n

massFunction(self, lm, z)

source code 
Return the mass function of dark halos.

Keyword arguments:
    lm -- log10 of the mass of the dark halo
    z -- redshift

Overrides: structuresabstract.structuresabstract.massFunction

numerical_density_halos(self, z)

source code 
Return the numerial density of dark halos
within the comove volume

Keyword arguments:
    z- redshift

Overrides: structuresabstract.structuresabstract.numerical_density_halos