6.2 Units parameters

The new version of pNbody also uses a default parameters used for units conversion. The list and the meaning of these parameters is given in the following table :

parameter Type Meaning
xi Float Hydrogen mass fraction
ionisation Int Ionisation flag (ionized gas = 1, neutral gaz = 0)
metalicity Int Metalicity index (between 0 and 5), used for cooling function
coolingfile String Path to the file containing the tabulated cooling function
Nsph Int Number of sph neighbors (unused)
Cosmo String use cosmological units ('yes' or 'no')
OmegaLambda Float Omega Lambda
Omega0 Float Omega matter
UnitLength_in_cm Float Model units lenght in cm
UnitMass_in_g Float Model units mass in g
UnitVelocity_in_cm_per_s Float Model units velocity in cm/s

All these parameters may be displayed or set using the methods :

>>> nb.unitsparameters.get('HubbleParam')
>>> nb.unitsparameters.set('HubbleParam',0.73)

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