Skip to content

pyflightstream.farfield.wake_sheets (provisional)

Generated from the docstrings at build time: every one of the 6 names in the __all__ of pyflightstream.farfield.wake_sheets has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

Trefftz B on every wake sheet of a configuration (FR-452).

Pipeline role: the wake export holds the lines of every component that sheds a wake, and the export does not say which component a line belongs to. This module separates the lines into sheets by where their first nodes lie, cuts each sheet at the Trefftz plane, and integrates all sheets together on the one plane, the normalwash at every strip coming from every sheet's filaments. The equations are those of the definitions page, The far-field family; nothing here reads or writes a file.

Advanced

pyflightstream.farfield.wake_sheets.CLOSURE_RTOL module-attribute

CLOSURE_RTOL = 0.0001

pyflightstream.farfield.wake_sheets.SheetCrossings dataclass

SheetCrossings(
    y: ndarray,
    z: ndarray,
    values: ndarray,
    closed: bool,
    index: ndarray,
    short: int,
    blade: bool = False,
)

Where one sheet's lines cross the plane.

Attributes:

Name Type Description
y, z ndarray

The crossings in walking order, m.

values ndarray

The exported value of each crossing's line.

closed bool

Whether the sheet is a ring.

index ndarray

Positions of the lines in the input.

short int

How many of the sheet's lines end before the plane.

blade bool

A blade ordered root to tip: accumulate inward from its free tip, without a closure constraint or a central strip connecting its mirror image.

pyflightstream.farfield.wake_sheets.WakeSheet dataclass

WakeSheet(index: ndarray, closed: bool)

One sheet of the export: the lines it holds, in the order the trace walks them.

Attributes:

Name Type Description
index ndarray

Positions in the input of the sheet's lines, in walking order: from the end farthest from the symmetry plane to the end nearest it for an open sheet, around the ring from the line of smallest y for a closed one.

closed bool

True where the first nodes close into a ring (a base rim).

pyflightstream.farfield.wake_sheets.sheet_crossings

sheet_crossings(
    lines: Sequence[ndarray],
    values: ndarray,
    sheet: WakeSheet,
    x_t: float,
) -> SheetCrossings

Cut one sheet's lines at their first crossing of the plane x = x_t.

Parameters:

Name Type Description Default
lines sequence of numpy.ndarray

Wake chains in wind axes, in metres, newest node first.

required
values ndarray

One filament strength per chain in m^2/s.

required
sheet WakeSheet

Indices and topology of the selected sheet.

required
x_t float

Downstream plane position in metres.

required

Returns:

Type Description
SheetCrossings

First crossings in sheet order and the count not reaching the plane.

pyflightstream.farfield.wake_sheets.sheet_forces

sheet_forces(
    sheets: Sequence[SheetCrossings],
    *,
    rho: float,
    v_inf: float,
    mirror: bool = False,
) -> TraceResult

Lift, side force and induced drag of several wake sheets on one plane (FR-452).

Each sheet's strips lie between its consecutive crossings (around the ring for a closed sheet); the circulation of a strip is minus the running sum of the exported values from the sheet's first crossing, and a ring's has its mean removed to make the walk's start irrelevant. Blades sum inward from their free tip. Mirror sheets reflect once. The normalwash at each strip comes from the filaments of every sheet, and

L = rho V sum Gamma dy, Y = -rho V sum Gamma dz, D_i = -(rho / 2) sum Gamma v_n ds.

On one open sheet this is :meth:~pyflightstream.farfield.trefftz.WakeTrace.forces.

Parameters:

Name Type Description Default
sheets sequence of SheetCrossings

The crossings of each sheet.

required
rho float

Density in kg/m3 and free-stream speed in m/s.

required
v_inf float

Density in kg/m3 and free-stream speed in m/s.

required
mirror bool

The sheets are one half of a mirror model.

False

Returns:

Type Description
TraceResult

The joint forces, the per-sheet forces (sheet_lift, sheet_drag_share under every sheet's filaments, sheet_drag_isolated under the sheet's own) and the strips; the image of a mirrored sheet carries its sheet's label.

Raises:

Type Description
FarfieldInputError

If the sheets do not form an integrable trace.

pyflightstream.farfield.wake_sheets.split_wake_sheets

split_wake_sheets(
    lines: Sequence[ndarray],
    values: ndarray,
    *,
    mirror: bool = False,
) -> tuple[list[WakeSheet], list[tuple[np.ndarray, str]]]

Separate the wake lines into sheets by their first nodes (FR-452).

A sheet is a run of first nodes in which each is close to the next, close meaning within :data:~pyflightstream.farfield.trefftz.RUN_GAP_FACTOR times the smaller of the two nearest-neighbour distances, so a dense rim is never taken into a sparse trailing edge. An open sheet is walked from its end farthest from the symmetry plane to its end nearest it (y of the first node; the end of a full model's sheet is the one of smaller y). A run that closes on itself is a ring: the first nodes lie on a rim, as they do at a base.

Parameters:

Name Type Description Default
lines sequence of numpy.ndarray

The wake lines, each (n_k, 3), from the trailing edge downstream.

required
values ndarray

One value per line.

required
mirror bool

The lines are one half of a mirror model, so the end nearest y = 0 is the root.

False

Returns:

Name Type Description
sheets list of WakeSheet

The sheets that can be traced.

left_out list of (numpy.ndarray, str)

The lines of every group that cannot, with the reason.