Lamb_Oseen#
- class sunkit_image.asda.Lamb_Oseen(vmax=2.0, rmax=5, ratio_vradial=0, gamma=None, rcore=None, r=3, factor=1)[source]#
Bases:
Asda
Creates an Lamb Oseen vortex.
References
Methods Summary
get_grid
(x_range, y_range)Returns a meshgrid of the coordinates of the vortex.
get_vradial
([r])Calculate radial (expanding or shrinking) speed at radius of
r
.get_vtheta
([r])Calculate rotation speed at radius of
r
.get_vxvy
(x_range, y_range[, x, y])Calculates the velocity field in a meshgrid generated with
x_range
andy_range
.Methods Documentation
- get_vxvy(x_range, y_range, x=None, y=None)[source]#
Calculates the velocity field in a meshgrid generated with
x_range
andy_range
.- Parameters:
x_range (
list
) – Range of the x coordinates of the meshgrid.y_range (
list
) – range of the y coordinates of the meshgrid.x (
numpy.meshgrid
, optional) – If both are given,x_range
andy_range
will be ignored. Defaults to None``.y (
numpy.meshgrid
, optional) – If both are given,x_range
andy_range
will be ignored. Defaults to None``.
- Returns:
tuple
– The generated velocity field(vx, vy)
.