odisseo.units module

Contents

odisseo.units module#

class odisseo.units.CodeUnits(unit_length, unit_mass, G, unit_time=None)[source]#

Bases: object

Class to define code units to convert physical units into simulations units. The user needs to provid length, mass and either time units or the gravitational constant G. If time is not provided, it will be calculated from the gravitational constant.