Post · 1 min read· pp. 329–330

aerosandbox.aerodynamics.aero_2D.singularities

Submodules

Functions

calculate_induced_velocity_line_singularities(x_field, ...)Calculates the induced velocity at a point (x_field, y_field) in a 2D potential-flow flowfield.

Package Contents

aerosandbox.aerodynamics.aero_2D.singularities.calculate_induced_velocity_line_singularities(x_field, y_field, x_panels, y_panels, gamma, sigma) : Calculates the induced velocity at a point (x_field, y_field) in a 2D potential-flow flowfield.

code
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]]