Skip to content

pyflightstream.workspace.hub_rings (provisional)

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

Rebuild the named hub around each blade root as rings of quads (PFS-2192), on an OBJ.

A hub that is quad-dominant has no complete rings of quads around a blade root, which repitch's ring route needs. Per blade, rings rows of quads with as many nodes as the root loop are marched outward on the hub, the hub faces they reach plus one layer leave, and the annulus between the outer ring and that hole is remeshed quad-dominant by the remesh refine uses, with both loops frozen and every node on the source hub (:mod:._hub_remesh, which repitch's remesh route shares). Blade nodes and root nodes never move; every other family, the hub's open boundaries (a sector's seams) and the hub faces away from the roots stay to the bit. The kept hub faces keep their order and the new faces take the place of the first face taken, rings from the root outward, because the solver's results depend on face order. The quality of the new cells (folded or turned cells, a node off the hub) is warned with its numbers, and the mesh written.

Advanced

pyflightstream.workspace.hub_rings.hub_rings_mesh

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

Rebuild the named hub around each named blade as rings of quads; write after every check.

Parameters:

Name Type Description Default
mesh str or Path

Source OBJ, read only. A saved simulation (.fsm) is refused.

required
morphing str or Path

TOML control file with a [hub_rings] table: rings (a whole number), optionally band_width (total ring height in the mesh's unit), and blades and hub of its own or at the top of the file.

required
out str or Path

New OBJ. Existing outputs are refused.

required

Returns:

Type Description
dict

The per-blade counts and the checks, also written as <out>.hub_rings.json. checks["passed"] is false when a quality warning was raised, and checks["warnings"] lists them.