py4py.physics
Physics functions
Things like calculating Keplerian velocity, doppler shifts and the like.
|
Calculates Keplerian velocity at given radius |
|
Converts passed line and velocity into red/blue-shifted wavelength |
|
Converts passed red/blue-shifted wave into velocity |
Module Contents
- py4py.physics.keplerian_velocity(mass: float, radius: float) float
Calculates Keplerian velocity at given radius
- Parameters:
mass (float) – Object mass in kg
radius (float) – Orbital radius in m
- Returns:
Orbital velocity in m/s
- Return type:
float
- py4py.physics.doppler_shift_wave(line: float, vel: float) float
Converts passed line and velocity into red/blue-shifted wavelength
- Parameters:
line (float) – Line wavelength (any length unit)
vel (float) – Doppler shift velocity (m/s)
- Returns:
Doppler shifted line wavelength (as above)
- Return type:
float
- py4py.physics.doppler_shift_vel(line: float, wave: float) float
Converts passed red/blue-shifted wave into velocity
- Parameters:
line (float) – Base line wavelength (any length unit)
wave (float) – Doppler shifted line wavelength (as above)
- Returns:
Speed of Doppler shift
- Return type:
float