fiesta.units#

This module contains the AREPO units used throughout the code for unit conversions.

The three base Unit’s defined (in CGS) are:

along with the following derived Unit’s, for ease of use:

It additionally contains AREPO_xHe, the helium fractional abundance assumed in AREPO.

The module allows for changing these variables as required, which is then propagated elsewhere in the code. For each of the units, it is possible to see its value through the .represents attribute of Unit class. For example, AREPO_LENGTH.represents.

Module Attributes

AREPO_LENGTH

Base AREPO Unit for length.

AREPO_MASS

Base AREPO Unit for mass.

AREPO_VELOCITY

Base AREPO Unit for velocity.

AREPO_TIME

Derived AREPO Unit for time.

AREPO_DENSITY

Derived AREPO Unit for density.

AREPO_ENERGY

Derived AREPO Unit for energy.

AREPO_xHe

Helium fractional abundance assumed in AREPO.

Functions

set_AREPO_LENGTH(length)

Function to set the value of base unit AREPO_LENGTH.

set_AREPO_MASS(mass)

Function to set the value of base unit AREPO_MASS.

set_AREPO_VELOCITY(vel)

Function to set the value of base unit AREPO_VELOCITY.

set_AREPO_xHe(xHe)

Function to set the Helium fractional abundance AREPO_xHe.