Skip to content

pyflightstream.cases.blade_order (provisional)

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

Check declared blade order against readable geometry before building frames.

FR-3616 and FR-3617 compare area-weighted radial centroids with the positive shaft rotation used by the blade frames. Spin direction is deliberately absent.

Advanced

pyflightstream.cases.blade_order.blade_order_errors

blade_order_errors(
    cases: Iterable[SimCase],
) -> dict[str, str]

Read each row's blade geometry once and return its refusal, if any.

Parameters:

Name Type Description Default
cases iterable of SimCase

The plan's rows, before expansion into operating points.

required

Returns:

Type Description
dict of str to str

Refusals keyed by simulation identifier; unavailable evidence only warns.

pyflightstream.cases.blade_order.noting_blade_order

noting_blade_order() -> Iterator[None]

Report each unavailable or uneven rotor once during one plan.

Yields:

Type Description
None

A context that deduplicates blade-order warnings for the plan.

pyflightstream.cases.blade_order.validate_blade_order

validate_blade_order(
    geometry: str | Path | None,
    rotor: RotorBlock,
    *,
    units: str | None = None,
) -> None

Refuse a readable wheel whose list assigns blades to the wrong frames.

Parameters:

Name Type Description Default
geometry str or Path or None

Source mesh. No solver or sidecar export is needed for saved geometry.

required
rotor RotorBlock

Declared hub, shaft and ordered blade families.

required
units str or None

Import units for a raw OBJ; saved files supply their own coordinate unit.

None

Raises:

Type Description
CampaignConfigError

Blade azimuths differ from their list positions by over a quarter pitch.