pyflightstream.post.section_distributions (stable)¶
Generated from the docstrings at build time: every one of the 1 names in the __all__ of pyflightstream.post.section_distributions has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Sectional loads and chordwise Cp, one table per recorded pproc distribution.
Advanced¶
pyflightstream.post.section_distributions.write_section_distributions
¶
write_section_distributions(
*,
sim_dir: Path,
record: RunRecord,
stem: str,
out: Path,
target: Callable[[Path], Path],
skipped: dict[str, str],
step: int | None,
pproc: PprocSpec | None = None,
current_pproc: PprocSpec | None = None,
current_aliases: Mapping[str, Sequence[str]]
| None = None,
current_rotors: Mapping[str, RotorBlock] | None = None,
integration_error: str | None = None,
condition: Mapping[str, object] | None = None,
reference: Mapping[str, object] | None = None,
rotors: Mapping[str, Mapping[str, object]]
| None = None,
inventory: Sequence[str] | None = None,
overwrite: bool = True,
) -> tuple[list[Path], dict[str, dict[str, object]]]
Write both distribution products from all stamps, or the end-of-run exports.
A bad or missing export skips its kind by name without costing the other kind. Layout counts must cover every section before any split is written.
A quasi-steady WHEEL point exports its distributions at every clocking: each file then holds
every clocking's rows, clocking 0 first,
with a CLOCKING column after the export's own and AZIMUTH stating
each block's blade at that clocking
(:func:pyflightstream.post.qsteady.wheel_block_identity). A clocking whose
export is missing is named and the others are written.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sim_dir
|
Path
|
Simulation directory containing the recorded exports. |
required |
record
|
RunRecord
|
Run metadata, including outputs, section layout and export clock. |
required |
stem
|
str
|
Point's export filename stem. |
required |
out
|
Path
|
Root directory for the products. |
required |
target
|
callable
|
Prepare a destination path, applying the caller's archive policy. |
required |
skipped
|
dict[str, str]
|
Mutable mapping of product names to skip reasons. |
required |
step
|
int or None
|
End-of-run STEP when there are no stamped exports. On an unsteady
run this is the solver's 1-based time step, never the export header's
inner-iteration counter; stamps supply their own time steps. On a
steady run it is the exported solver iteration. Unknown values are
written as |
required |
pproc
|
PprocSpec or None
|
Recorded post-processing specification used to resolve legacy distribution
ownership. Also selects strip integrals when current_pproc is omitted.
See |
None
|
current_pproc
|
PprocSpec or None
|
Effective post specification selecting integration against recorded blocks. |
None
|
current_aliases
|
Mapping[str, Sequence[str]] or None
|
Live reference aliases for integration selections. Recorded aliases remain the fallback when no live reference is available and own legacy layouts. |
None
|
current_rotors
|
Mapping[str, RotorBlock] or None
|
Live rotor definitions for the export builder's family and frame expansion. |
None
|
integration_error
|
str or None
|
Unresolved effective specification; retain raw files and name integration skips. |
None
|
condition
|
Mapping[str, object] or None
|
Point's condition, with case-insensitive keys: |
None
|
reference
|
Mapping[str, object] or None
|
Reference dimensions, with case-insensitive keys |
None
|
rotors
|
Mapping[str, Mapping[str, object]] or None
|
Rotor alias to metadata: |
None
|
inventory
|
Sequence[str] or None
|
The geometry's boundary names in the solver's order, as the caller
recovered them for a record that states none
(:meth: |
None
|
overwrite
|
bool
|
Replace a file that already exists, as the writer always did (the default). False refuses an existing file, naming it, before it is replaced. |
True
|
Returns:
| Type | Description |
|---|---|
tuple[list[Path], dict[str, dict[str, object]]]
|
Written paths and their product-manifest entries. |