pynbody.snapshot.tipsy

Contents

pynbody.snapshot.tipsy#

tipsy#

Implements classes and functions for handling tipsy files. You rarely need to access this module directly as it will be invoked automatically via pynbody.load.

Input:

filename: file name string

Optional Keywords:

paramfile: string specifying the parameter file to load. If not specified, the loader will look for a file *.param in the current and parent directories.

Functions

HII(sim)

Derived [TipsySnap]: Number of HII ions per proton mass

HeIII(sim)

Derived [TipsySnap]: Number of HeIII ions per proton mass

c_s(self)

Derived [TipsySnap]: Ideal gas sound speed based on pressure and density

c_s_turb(self)

Derived [TipsySnap]: Turbulent sound speed (from Mac Low & Klessen 2004)

feh(self)

Derived [TipsySnap]: Iron abundance [Fe/H] derived from tipsy array FeMassFrac, with solar values from Asplund et al 09

hetot(self)

Derived [TipsySnap]: Helium mass fraction including correction based on metallicity

hydrogen(self)

Derived [TipsySnap]: Hydrogen mass fraction including correction based on metallicity

ljeans(self)

Derived [TipsySnap]: Jeans length

ljeans_turb(self)

Derived [TipsySnap]: Turbulent Jeans length

load_paramfile(sim)

mgfe(sim)

Derived [TipsySnap]: Magnesium-to-iron ratio [Mg/Fe] derived from tipsy arrays MgMassFrac and FeMassFrac with solar values from Asplund et al 09

mjeans(self)

Derived [TipsySnap]: Classical Jeans mass

mjeans_turb(self)

Derived [TipsySnap]: Turbulent Jeans mass

ne(sim)

Derived [TipsySnap]: Number of electrons per proton mass

nefe(sim)

Derived [TipsySnap]: Neon-to-iron ratio [Ne/Fe] derived from tipsy arrays MgMassFrac and FeMassFrac with solar values from Asplund et al 09

ofe(self)

Derived [TipsySnap]: Oxygen-to-iron ratio [O/Fe] derived from tipsy arrays OxMassFrac and FeMassFrac with solar values from Asplund et al 09

oxh(self)

Derived [TipsySnap]: Oxygen abundance [O/H] derived from tipsy array FeMassFrac, with solar values from Asplund et al 09

param2units(sim)

settime(sim)

settimeN(sim)

sife(sim)

Derived [TipsySnap]: Silicon-to-iron ratio [Si/Fe] derived from tipsy arrays MgMassFrac and FeMassFrac with solar values from Asplund et al 09

slparam2units(sim)

Classes

StarLog(filename[, sort, paramfile, use_log])

Attributes:

TipsySnap(filename, **kwargs)

Attributes: