Post · 4 min read· pp. 331–334

aerosandbox.aerodynamics.aero_2D.singularities.linear_strength_line_singularities

Attributes

Functions

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

Module Contents

aerosandbox.aerodynamics.aero_2D.singularities.linear_strength_line_singularities._calculate_induced_velocity_line_singularity_panel_coordinates(xp_field, yp_field, gamma_start=0.0, gamma_end=0.0, sigma_start=0.0, sigma_end=0.0, xp_panel_end=1.0) : Calculates the induced velocity at a point (xp_field, yp_field) in a 2D potential-flow flowfield.

code
The p suffix in xp… and yp… denotes the use of the panel coordinate system, where:
:   - xp\_hat is along the length of the panel
    - yp\_hat is orthogonal (90 deg. counterclockwise) to it.

In this flowfield, there is only one singularity element: A line vortex going from (0, 0) to (xp\_panel\_end, 0).
The strength of this vortex varies linearly from:

> - gamma\_start at (0, 0), to:
> - gamma\_end at (xp\_panel\_end, 0). # TODO update paragraph

By convention here, positive gamma induces clockwise swirl in the flow field.

Function returns the 2D velocity u, v in the local coordinate system of the panel.

Inputs x and y can be 1D ndarrays representing various field points,
in which case the resulting velocities u and v have corresponding dimensionality.

Equations from the seminal textbook “Low Speed Aerodynamics” by Katz and Plotkin.
Vortex equations are Eq. 11.99 and Eq. 11.100.

> - Note: there is an error in equation 11.100 in Katz and Plotkin, at least in the 2nd ed:
>
> The last term of equation 11.100, which is given as:
> :   (x\_{j+1} - x\_j) / z + (theta\_{j+1} - theta\_j)
>
> has a sign error and should instead be written as:
> :   (x\_{j+1} - x\_j) / z - (theta\_{j+1} - theta\_j)

Source equations are Eq. 11.89 and Eq. 11.90.

Parameters:
:   - **xp\_field** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) –
    - **yp\_field** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) –
    - **gamma\_start** (*float*) –
    - **gamma\_end** (*float*) –
    - **sigma\_start** (*float*) –
    - **sigma\_end** (*float*) –
    - **xp\_panel\_end** (*float*) –

Return type:
:   [Union[float, aerosandbox.numpy.ndarray], Union[float, aerosandbox.numpy.ndarray]]

aerosandbox.aerodynamics.aero_2D.singularities.linear_strength_line_singularities._calculate_induced_velocity_line_singularity(x_field, y_field, x_panel_start, y_panel_start, x_panel_end, y_panel_end, gamma_start=0.0, gamma_end=0.0, sigma_start=0.0, sigma_end=0.0) : Calculates the induced velocity at a point (x_field, y_field) in a 2D potential-flow flowfield.

code
In this flowfield, there is only one singularity element: # TODO update paragraph
A line vortex going from (x\_panel\_start, y\_panel\_start) to (x\_panel\_end, y\_panel\_end).
The strength of this vortex varies linearly from:

> - gamma\_start at (x\_panel\_start, y\_panel\_start), to:
> - gamma\_end at (x\_panel\_end, y\_panel\_end).

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 and y 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\_panel\_start** (*float*) –
    - **y\_panel\_start** (*float*) –
    - **x\_panel\_end** (*float*) –
    - **y\_panel\_end** (*float*) –
    - **gamma\_start** (*float*) –
    - **gamma\_end** (*float*) –
    - **sigma\_start** (*float*) –
    - **sigma\_end** (*float*) –

Return type:
:   [Union[float, aerosandbox.numpy.ndarray], Union[float, aerosandbox.numpy.ndarray]]

aerosandbox.aerodynamics.aero_2D.singularities.linear_strength_line_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]]

aerosandbox.aerodynamics.aero_2D.singularities.linear_strength_line_singularities.X