aerosandbox.aerodynamics.aero_2D.singularities
#
Submodules#
Package Contents#
Functions#
|
Calculates the induced velocity at a point (x_field, y_field) in a 2D potential-flow flowfield. |
- aerosandbox.aerodynamics.aero_2D.singularities.calculate_induced_velocity_line_singularities(x_field, y_field, x_panels, y_panels, gamma, sigma)[source]#
Calculates the induced velocity at a point (x_field, y_field) in a 2D potential-flow flowfield.
- In this flowfield, the following singularity elements are assumed: # TODO update paragraph
A line vortex that passes through the coordinates specified in (x_panel, y_panel). Each of these vertices is
called a “node”. * The vorticity of this line vortex per unit length varies linearly between subsequent nodes. * The vorticity at each node is specified by the parameter gamma.
By convention here, positive gamma induces clockwise swirl in the flow field.
Function returns the 2D velocity u, v in the global coordinate system (x, y).
Inputs x_field and y_field can be 1D ndarrays representing various field points, in which case the resulting velocities u and v have the corresponding dimensionality.
- Parameters:
x_field (Union[float, aerosandbox.numpy.ndarray]) –
y_field (Union[float, aerosandbox.numpy.ndarray]) –
x_panels (aerosandbox.numpy.ndarray) –
y_panels (aerosandbox.numpy.ndarray) –
gamma (aerosandbox.numpy.ndarray) –
sigma (aerosandbox.numpy.ndarray) –
- Return type:
[Union[float, aerosandbox.numpy.ndarray], Union[float, aerosandbox.numpy.ndarray]]