7.7 Thermodynamic functions

These functions works if rho (density of particles) and u (specific energy of particles) are correctely defined.

Rho( )
Return the gas density of the model. The output is an nx1 Float array.

T( )
Return the gas temperature of the model. The output is an nx1 Float array.

A( )
Return the gas entropy of the mode The output is an nx1 Float array.

P( )
Return the gas pressure of the model. The output is an nx1 Float array.

Tcool( )
Return the cooling time of the model. The output is an nx1 Float array.

Ne( )
Return the electron density of the model. The output is an nx1 Float array.

S( )
Return the `entropy` of the model, defined as S = T * Ne**(1-gamma) The output is an nx1 Float array.

Lum( )
Return the luminosty of the model, defined as Lum = m*u/Tcool = m*Lambda/rho The output is an nx1 Float array.

See About this document... for information on suggesting changes.