yt.units.equivalencies module

Equivalencies between different kinds of units

class yt.units.equivalencies.ComptonEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((mass), (length))
class yt.units.equivalencies.EffectiveTemperature[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((mass)/(time)**3, (temperature))
class yt.units.equivalencies.ElectromagneticCGS[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((current_mks), (current_mks)*(time), (mass)/((current_mks)*(time)**2), (length)*(mass)/((current_mks)*(time)**3), (length)**2*(mass)/((current_mks)*(time)**3), (length)**2*(mass)/((current_mks)**2*(time)**3))
class yt.units.equivalencies.ElectromagneticSI[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((length)**(3/2)*sqrt((mass))/(time)**2, (length)**(3/2)*sqrt((mass))/(time), sqrt((mass))/(sqrt((length))*(time)), sqrt((mass))/(sqrt((length))*(time)), sqrt((length))*sqrt((mass))/(time), (time)/(length))
class yt.units.equivalencies.Equivalence[source]

Bases: object

class yt.units.equivalencies.LorentzEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = (1, (length)/(time))
class yt.units.equivalencies.MassEnergyEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((mass), (length)**2*(mass)/(time)**2)
class yt.units.equivalencies.NumberDensityEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims, mu=0.6)[source]
dims = ((mass)/(length)**3, (length)**(-3))
class yt.units.equivalencies.RegisteredEquivalence(name, b, d)[source]

Bases: type

mro() → list

return a type’s method resolution order

class yt.units.equivalencies.SchwarzschildEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((mass), (length))
class yt.units.equivalencies.SoundSpeedEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims, mu=0.6, gamma=1.6666666666666667)[source]
dims = ((length)/(time), (temperature), (length)**2*(mass)/(time)**2)
class yt.units.equivalencies.SpectralEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((length), 1/(time), (length)**2*(mass)/(time)**2)
class yt.units.equivalencies.ThermalEquivalence[source]

Bases: yt.units.equivalencies.Equivalence

convert(x, new_dims)[source]
dims = ((temperature), (length)**2*(mass)/(time)**2)