Skip to content

pyflightstream.workspace.repitch (provisional)

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

Small rigid blade pitch changes with the hub rebuilt around each root (PFS-2187.22, PFS-2196).

Two routes rebuild the hub, chosen by [repitch] hub_method. The ring route ("rings") recovers the complete quad rings around each root and moves their nodes: it replaces only coordinates, so connectivity, quad pairing, face order, trailing-edge flags, base regions and wake terminations keep their identities, and it is the only route on a saved simulation. The remesh route ("remesh", OBJ only) takes the hub band around each root out and remeshes it quad-dominant between the turned root and the band's unmoved boundary, every free node on the source hub and the kept faces in place and order (:mod:._hub_remesh). "auto", the default, takes the ring route where every named root has two complete quad rings and the remesh route otherwise. Quality (folded, reversed or turned cells, a node off the hub) is warned with its numbers and the mesh written; broken input and broken invariants refuse (PFS-2197).

Advanced

pyflightstream.workspace.repitch.repitch_mesh

repitch_mesh(
    mesh: str | Path, morphing: str | Path, out: str | Path
) -> dict[str, Any]

Repitch named blades, rebuild the hub around their roots and write after every check.

Parameters:

Name Type Description Default
mesh str or Path

Source OBJ or saved simulation, read only.

required
morphing str or Path

TOML control file; axes use the mesh coordinates and angle uses degrees. hub_method ("auto", "rings" or "remesh") chooses how the hub is rebuilt and band_width states the remesh band's width in the mesh's unit.

required
out str or Path

New mesh of the source kind. Existing outputs are refused.

required

Returns:

Type Description
dict

The checks also written beside the output as <out>.repitch.json: the route each blade took, and checks["passed"] false with checks["warnings"] when quality was warned.

Raises:

Type Description
InputValueError

When the input is broken or the reference rotor states no axis; nothing is written.