Skip to content

pyflightstream.farfield.rotor_sections (experimental)

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

Blade-local load projection onto the velocity normal.

Pipeline role: NumPy reduction of pressure loads and wake induction supplied in geometry axes and SI units by post. The surface sets the force magnitude; this reduction supplies its direction, not an independent thrust estimate.

Advanced

pyflightstream.farfield.rotor_sections.FRAME_SPAN_TOLERANCE_DEG module-attribute

FRAME_SPAN_TOLERANCE_DEG = 5.0

pyflightstream.farfield.rotor_sections.SectionLoads dataclass

SectionLoads(
    radius: ndarray,
    width: ndarray,
    chord: ndarray,
    radial: ndarray,
    points: ndarray,
    force: ndarray,
    friction: ndarray,
    moment: ndarray,
    circulation: ndarray | None = None,
)

One blade's strips in geometry axes, with friction stated separately.

Attributes:

Name Type Description
radius, width, chord ndarray

Strip radii, widths and chord lengths, in metres.

radial ndarray

Unit span direction in geometry axes, shape (3,).

points ndarray

Chord evaluation points in geometry metres, shape (n, 3).

force, friction ndarray

Total and friction force densities in geometry axes, N/m, shape (n, 3).

moment ndarray

Section moments about the radial axis, N m/m, shape (n,).

circulation (ndarray, optional)

Closed surface velocity integral about the span, in m^2/s.

pyflightstream.farfield.rotor_sections.anchored_wake_loads

anchored_wake_loads(
    sections,
    gamma,
    lines,
    values,
    group,
    *,
    hub,
    axis,
    wind,
    omega,
    rho,
)

Repair W's root sum by one section-derived constant for this blade.

The mean section circulation minus the interpolated raw root sum over 0.4 to 0.95 of the wake tip radius sets the constant. Induction remains at W's trailing-edge point with its original filament strengths and no legs. Returns thrust (N), torque (N m), and the anchor (m^2/s).

Parameters:

Name Type Description Default
sections SectionLoads

Blade strips and measured span direction in geometry axes.

required
gamma ndarray

Section circulation in m^2/s.

required
lines sequence of numpy.ndarray

Wake chains in geometry metres, newest node first.

required
values ndarray

Filament strengths in m^2/s.

required
group ndarray

Indices of this blade's wake chains.

required
hub ndarray

Hub in metres, unit shaft direction and free-stream velocity in m/s.

required
axis ndarray

Hub in metres, unit shaft direction and free-stream velocity in m/s.

required
wind ndarray

Hub in metres, unit shaft direction and free-stream velocity in m/s.

required
omega float

Shaft angular velocity in rad/s.

required
rho float

Density in kg/m^3.

required

Returns:

Type Description
tuple of float

Repaired thrust in N, torque in N m and circulation anchor in m^2/s.

Raises:

Type Description
FarfieldInputError

No section circulation lies between 0.4 and 0.95 of the wake tip radius.

pyflightstream.farfield.rotor_sections.chord_line_points

chord_line_points(radius, points, target, *, radial, hub)

Interpolate a blade chord curve while preserving the requested span.

Parameters:

Name Type Description Default
radius ndarray

Increasing source offsets and requested offsets from the hub, in metres.

required
target ndarray

Increasing source offsets and requested offsets from the hub, in metres.

required
points ndarray

Source chord-fraction positions in geometry metres, shape (n, 3).

required
radial ndarray

Measured unit blade span and hub position in geometry metres.

required
hub ndarray

Measured unit blade span and hub position in geometry metres.

required

Returns:

Type Description
ndarray

Positions at the requested span offsets. Transverse chord coordinates interpolate linearly and hold their endpoint values outside the cuts; the span coordinate always equals target, including beyond the last cut.

pyflightstream.farfield.rotor_sections.complete_induction_wake

complete_induction_wake(
    lines,
    values,
    attachments,
    exported_lines,
    exported_values,
    *,
    mirror,
)

Include all exported wakes and any missing reflection across geometry y=0.

The rotor lattice already contains its periodic copies and chord legs. Other wakes start at their exported first node, without invented bound legs. Matching chains identify copies already supplied by that lattice. Constructed reflections reverse strength because vorticity is an axial vector. An image already in the export retains its recorded strength. Positions are in metres and strengths in square metres per second.

Parameters:

Name Type Description Default
lines sequence of numpy.ndarray

Rotor chains and all exported chains in geometry metres.

required
exported_lines sequence of numpy.ndarray

Rotor chains and all exported chains in geometry metres.

required
values ndarray

Corresponding filament strengths in m^2/s.

required
exported_values ndarray

Corresponding filament strengths in m^2/s.

required
attachments ndarray

Rotor chord attachment positions in geometry metres.

required
mirror bool

Complete missing reflected chains across geometry y=0.

required

Returns:

Type Description
tuple

Complete chains, strengths and attachment positions.

pyflightstream.farfield.rotor_sections.project_sections

project_sections(
    sections: SectionLoads,
    induced: ndarray,
    *,
    axis: ndarray,
    wind: ndarray,
    hub: ndarray,
    moment_point: ndarray,
    omega: float,
    rho: float,
) -> tuple[dict[str, float], dict[str, np.ndarray]]

Project inviscid section loads normal to the local blade velocity.

Parameters:

Name Type Description Default
sections SectionLoads

One blade's strips; force includes the separately stated friction.

required
induced ndarray

Wake-induced velocity in geometry axes, m/s, shape (n, 3).

required
axis ndarray

Unit shaft direction and free-stream velocity in geometry axes, m/s.

required
wind ndarray

Unit shaft direction and free-stream velocity in geometry axes, m/s.

required
hub ndarray

Hub and requested moment origin in geometry metres. Torque is always about the hub; transverse moments are about moment_point.

required
moment_point ndarray

Hub and requested moment origin in geometry metres. Torque is always about the hub; transverse moments are about moment_point.

required
omega float

Signed shaft speed in rad/s and positive density in kg/m^3.

required
rho float

Signed shaft speed in rad/s and positive density in kg/m^3.

required

Returns:

Type Description
tuple of dict

Dimensional blade totals and strip diagnostics. Force is in N, moments in N m, power in W; GAMMA is signed in m^2/s.

Raises:

Type Description
FarfieldInputError

Section or frame inputs are invalid, or relative velocity is zero.

pyflightstream.farfield.rotor_sections.wake_velocity

wake_velocity(
    points: ndarray,
    lines: list[ndarray],
    values: ndarray,
    attachment: ndarray,
) -> np.ndarray

Read induction from newest filament values and chord-to-wake legs.

Parameters:

Name Type Description Default
points ndarray

Evaluation points in geometry metres, shape (n, 3).

required
lines list of numpy.ndarray

Wake chains in geometry metres, newest node first.

required
values ndarray

Exported Normalized_Vorticity, one per line, used at scale one m^2/s. Strength along the exported chain is minus this value.

required
attachment ndarray

Chord points from which straight legs reach the first wake nodes, one per line in geometry metres.

required

Returns:

Type Description
ndarray

Induced velocity in geometry axes, m/s, shape (n, 3).

Raises:

Type Description
FarfieldInputError

Wake shapes, attachment counts or finite-value requirements are not met.