odak.wave.rotationspeed¶
Definition for calculating rotation speed of a wave (w in A*e^(j(wt+phi))).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wavelength |
float |
Wavelength of a wave in mm. |
required |
c |
float |
Speed of wave in mm/seconds. Default is the speed of light in the void! |
300000000000 |
Returns:
Type | Description |
---|---|
float |
Rotation speed. |
Source code in odak/wave/__init__.py
def rotationspeed(wavelength, c=3*10**11):
"""
Definition for calculating rotation speed of a wave (w in A*e^(j(wt+phi))).
Parameters
----------
wavelength : float
Wavelength of a wave in mm.
c : float
Speed of wave in mm/seconds. Default is the speed of light in the void!
Returns
-------
w : float
Rotation speed.
"""
f = c*wavelength
w = 2*np.pi*f
return w