pyfs-geom
Generated from the argument parser at build time, so this page and pyfs-geom --help cannot disagree. The entry point is pyflightstream.run.geom_cli:main.
pyfs-geom
Parametric geometry pipeline of pyflightstream: run and doe generate an IGES and its report, validate, configurations and stages describe them, identify and check measure an original IGES and a rebuilt one, schema prints or checks the component record, add-control-surface and split-symmetry edit an IGES, and iges-convert rewrites IGES files as B-spline faces (docs/geometry-parametrization.md).
usage: pyfs-geom [-h] VERB...
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
Subcommands:
pyfs-geom run: run the stages S0 to S13 and write the report
pyfs-geom doe: one report per parameter set; continues after a failure
pyfs-geom validate: resolve the configuration and print every value with its source
pyfs-geom configurations: list the configurations, variants and members
pyfs-geom stages: list the stages, their checks and limits
pyfs-geom identify: identify a lifting surface of an original IGES: planform and sections (uses the gmsh kernel)
pyfs-geom check: measure a rebuilt IGES against the original: forward and restricted reverse distance (uses the gmsh kernel)
pyfs-geom schema: print the JSON Schema of the component record, or validate a record against it
pyfs-geom add-control-surface: add control surfaces to an IGES
pyfs-geom split-symmetry: cut a full model at its symmetry plane
pyfs-geom iges-convert: rewrite IGES files as one IGES of B-spline faces, names kept (uses the gmsh kernel)
pyfs-geom run
usage: pyfs-geom run [-h] --out DIR [--set K=V] [--configuration NAME] [--variant V] [--until Sxx] CONFIG
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<CONFIG> |
|
|
the configuration (TOML) |
--out |
DIR |
|
folder of the records and files Required. |
--set |
K=V |
|
override one value, component.key=value (repeatable; the value is TOML) |
--configuration |
NAME |
|
entry of the configuration registry |
--variant |
V |
clean |
variant (default: clean) |
--until |
Sxx |
S13 |
last stage to run, S0 to S13 (default S13; S9 needs no kernel) |
pyfs-geom doe
usage: pyfs-geom doe [-h] --out DIR [--workers N] [--configuration NAME] [--variant V] [--until Sxx] CONFIG SETS
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<CONFIG> |
|
|
the configuration (TOML) |
<SETS> |
|
|
TOML with one [[sets]] table per parameter set |
--out |
DIR |
|
folder of set-0001, set-0002,... Required. |
--workers |
N |
1 |
sets in parallel |
--configuration |
NAME |
|
entry of the configuration registry |
--variant |
V |
clean |
variant (default: clean) |
--until |
Sxx |
S13 |
last stage to run, S0 to S13 (default S13; S9 needs no kernel) |
pyfs-geom validate
usage: pyfs-geom validate [-h] CONFIG
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<CONFIG> |
|
|
the configuration (TOML) |
pyfs-geom configurations
usage: pyfs-geom configurations [-h] CONFIG
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<CONFIG> |
|
|
the configuration (TOML) |
pyfs-geom stages
usage: pyfs-geom stages [-h]
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
pyfs-geom identify
Cuts the trimmed faces of one component of an IGES file (named on its level) by planes normal to its span axis, finds the clean band of sections, builds the reference planform between the root and the outermost clean cut and fits a CST section to the root, the middle and the tip. The root is the symmetry plane, the host surface or the span extent of the original's own boundary curves. A coarse and a fine pass must agree for the result to be accepted. Prints the result; --config-out writes a configuration that rebuilds the planform.
usage: pyfs-geom identify [-h] [--host NAME] [--root {auto,plane,host,boundary}] [--mirrored | --no-mirrored] [--cut {plain,bridge_te,mirror}] [--seed NACA] [--span-axis X Y Z] [--stations N] [--grid N] [--section-tolerance-mm MM] [--section-degree N] [--section-max-degree N] [--host-tolerance M] [--no-converge] [--out JSON] [--config-out TOML] IGES COMPONENT
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<IGES> |
|
|
the original IGES, read only |
<COMPONENT> |
|
|
the component to identify |
--host |
NAME |
|
a component the surface sits on, NAME or FILE#NAME (repeatable); the root is where the extended leading edge meets it |
--root |
one of auto, plane, host, boundary |
auto |
where the planform starts: the symmetry plane, a host, or the span extent of the face boundary curves (default: host when --host is given, else plane) |
--mirrored, --no-mirrored |
|
|
whether the surface has a mirror image across its root, doubling span and area (default: yes for a plane root, no otherwise) |
--cut |
one of plain, bridge_te, mirror |
plain |
bridge_te closes an open blunt trailing-edge slit; mirror adds the reflection of a half-body original (default: plain) |
--seed |
NACA |
NACA0012 |
the NACA designation the section fit starts from (default: NACA0012) |
--span-axis |
SPAN_AXIS |
|
first estimate of the span axis (default: y or z, the larger extent) |
--stations |
N |
161 |
stations of the fine pass (default: 161) |
--grid |
N |
257 |
cut-grid points per side of each face (default: 257) |
--section-tolerance-mm |
MM |
|
section residual tolerance in mm (default: 0.5 mm or 0.1 percent of the chord) |
--section-degree |
N |
5 |
CST degree a section fit starts at (default: 5) |
--section-max-degree |
N |
20 |
highest CST degree a section fit may reach (default: 20) |
--host-tolerance |
M |
5e-05 |
largest gap in m at which the extended leading edge meets a host (default: 5e-5) |
--no-converge |
|
|
skip the coarse pass that must agree with the fine one |
--out |
JSON |
|
also write the result to this file |
--config-out |
TOML |
|
write a configuration (TOML) that rebuilds the identified surface |
pyfs-geom check
Samples the original and the rebuilt faces and measures the distance of each to the other: forward (the original to the rebuilt, everywhere) and reverse (the rebuilt to the original, inside its trimmed boundary). The limit is the named profile applied to the local chord. The distances are sampled upper bounds, not continuous Hausdorff distances, as the record's method says. Exit 0 accepted, 1 rejected, 2 refused. Give the local chord as --chord-m, or as --stations-m with --chords-m.
usage: pyfs-geom check [-h] [--chord-m M] [--stations-m S [S...]] [--chords-m C [C...]] [--axis {0,1,2}] [--component NAME] [--exclude-face INDEX] [--forward-count N] [--reverse-count N] [--edge-count N] [--fold-y] [--profile PROFILE] [--out JSON] REBUILT ORIGINAL
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<REBUILT> |
|
|
the rebuilt IGES, FILE or FILE#NAME |
<ORIGINAL> |
|
|
the original IGES, FILE or FILE#NAME |
--chord-m |
M |
|
one local chord in m |
--stations-m |
S |
|
increasing stations in m along --axis, with --chords-m |
--chords-m |
C |
|
the chord in m at each station |
--axis |
one of 0, 1, 2 |
1 |
the axis of --stations-m, 0 x, 1 y, 2 z (default: 1) |
--component |
NAME |
|
the component of a file both surfaces are named in |
--exclude-face |
INDEX |
|
leave this face of the original out, by index (repeatable) |
--forward-count |
N |
45 |
samples per side on each original face (default: 45) |
--reverse-count |
N |
31 |
samples per side on each rebuilt face (default: 31) |
--edge-count |
N |
101 |
samples on each trim edge (default: 101) |
--fold-y |
|
|
the original is a half body: fold the rebuilt mirror half onto the modelled side |
--profile |
PROFILE |
study_default |
named deviation profile (default: study_default, 0.5 mm or 0.1 percent of chord) |
--out |
JSON |
|
also write the record to this file |
pyfs-geom schema
Prints the draft 2020-12 JSON Schema of the component parameter record (schema 0.2.0): the contract between a reconstruction and this library. With --validate the record file is parsed and its structural rules checked instead, and with --asset-root every file it pins is re-read against its SHA-256. Needs no gmsh.
usage: pyfs-geom schema [-h] [--out JSON] [--validate RECORD] [--asset-root DIR]
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
--out |
JSON |
|
write the schema to this file |
--validate |
RECORD |
|
validate this record (JSON) |
--asset-root |
DIR |
|
with --validate: the folder the record's file paths resolve against, to check every pin |
pyfs-geom add-control-surface
usage: pyfs-geom add-control-surface [-h] --out IGES IGES COMPONENT ENTRY
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<IGES> |
|
|
|
<COMPONENT> |
|
|
|
<ENTRY> |
|
|
the entry (TOML) |
--out |
IGES |
|
the IGES file to write Required. |
pyfs-geom split-symmetry
usage: pyfs-geom split-symmetry [-h] --out IGES [--plane {x,y,z}] [--component NAME] IGES
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<IGES> |
|
|
the full model, read only |
--out |
IGES |
|
the half model to write Required. |
--plane |
one of x, y, z |
y |
plane (default y) |
--component |
NAME |
|
cut this component only |
pyfs-geom iges-convert
Every face of the IGES files is converted to a B-spline surface and written to one IGES, each component on its own level with one NAME, so the solver's CAD import and this package read the same components back. The first file's length unit is kept. Writes the IGES and the record <out>.json (docs/mesh/iges.md).
usage: pyfs-geom iges-convert [-h] --out OUT [--name-encoding NAME_ENCODING] iges [iges...]
| Argument |
Value |
Default |
What it does |
-h, --help |
|
|
show this help message and exit |
<iges> |
|
|
IGES files, read only |
--out |
OUT |
|
new.igs Required. |
--name-encoding |
NAME_ENCODING |
latin-1 |
text encoding of the NAME bytes in the IGES files (default latin-1, one character per byte; use utf-8 for UTF-8 names). Never guessed: a name invalid in the encoding is refused |