Skip to content

pyflightstream.post.unsteady_polar (provisional)

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

The unsteady polar: the plots history of each point, time-averaged over its window.

One of the product families of :mod:pyflightstream.post (AD-13, work package WP5), written by the post stage of :mod:pyflightstream.post.products, which re-exports every name here.

An unsteady simulation's polar comes from its plots and not from its loads export: that export states the LAST TIME STEP (RPT-133, "vorticity drag list and the step exports on 26.124", 2026-10-02), one instant of a cycle, so a polar read from it is a polar of an instant. the retired write_unsteady_polar reads the plots tables the stage has already written, so the free-stream scaling is performed once, and averages each point over the window its row states, one row per point, under polars/. Its axis coefficients (:data:UNSTEADY_AXIS_COLUMNS) come from the forces the run plotted in the global frame (:func:global_frame_plot_groups); the row's setup, the equations and the names dictionary of the pproc artifact are carried beside them.

A further time-averaged polar of the backlog (an extrapolated or a trimmed unsteady polar) joins this module beside the writer it extends.

Advanced

pyflightstream.post.unsteady_polar.UNSTEADY_AXIS_COLUMNS module-attribute

UNSTEADY_AXIS_COLUMNS: tuple[str, ...] = (
    *_STEADY_AXIS_COLUMNS[12:18],
    *_STEADY_AXIS_COLUMNS[6:12],
    *_STEADY_AXIS_COLUMNS[0:6],
)

pyflightstream.post.unsteady_polar.global_frame_plot_groups

global_frame_plot_groups(
    pproc: object,
    *,
    inventory: Sequence[str] = (),
    aliases: Mapping[str, Sequence[str]] | None = None,
) -> tuple[str, ...]

Return the names of the plot groups whose six components are in the GLOBAL frame.

Read off the pproc artifact, which is the only place a plot's frame is stated. A group counts when its frame is MRP and the artifact plots all of FX, FY, FZ, MX, MY, MZ. Where the artifact declares none, the run adds one of its own over every boundary (:data:pyflightstream.cases.AXES_PLOT_GROUP), so that name is what is looked for; a run without that group has no such columns and its polar says so. A template also suppresses that automatic group, but its unresolved names cannot supply an axes block; that block is a named skip.

Parameters:

Name Type Description Default
pproc object

The pproc artifact, read for its plots declarations and its is_blade test.

required
inventory sequence of str

The surface names of the run, used to decide which groups the automatic plot can emit.

()
aliases mapping of str to sequence of str

The family aliases of the run.

None

Returns:

Type Description
tuple of str

The names of the plot groups whose six components are in the global frame; empty when the artifact's own groups shadow the automatic one.