pyfs-mesh¶
Generated from the argument parser at build time, so this page and pyfs-mesh --help cannot disagree. The entry point is pyflightstream.run.mesh_cli:main.
pyfs-mesh¶
Mesh operations of pyflightstream: refine, audit, inventory and derive panel meshes, find and collapse trailing edges, morph, repitch, scale, merge and copy sectors into wheels, grid IGES files and parametric configurations, and build, mark and export a workspace geometry with the solver (docs/mesh/reference.md).
usage: pyfs-mesh [-h] [--warning-refusals] [--warning-off] VERB...
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
--warning-refusals |
restore refusals for inputs otherwise skipped with typed warnings | ||
--warning-off |
hide console warnings while keeping every recorded warning in its log |
Subcommands:
pyfs-mesh mark-boundaries: mark an OBJ's declared boundaries into an FSMpyfs-mesh export-surface-mesh: preview a saved body's surface export for probes, or run it with --applypyfs-mesh trailing-edge: extract trailing-edge midpoint coordinatespyfs-mesh convert2midnodes: write a.te.txt from an ANSA SET node list, in any node order; no mesh neededpyfs-mesh identify-te: find the trailing edges of an OBJ and write their points and solver node filespyfs-mesh prepare-to-refine: split a mesh's families into grid and mixed patches and write a refine file for thempyfs-mesh visual-inspect: draw a mesh in three views and an isometric view, with marked points, into a PDFpyfs-mesh merge: join two trimmed OBJ along their open boundaries within a thresholdpyfs-mesh sector-to-wheel: copy one sector about an axis into a full wheel, an OBJ or a saved simulationpyfs-mesh sector-remesh: rebuild a saved sector's blade, spinner and nacelle as full-quad surfacespyfs-mesh power-off-body: write the power-off body of a saved sector: a closed spinner and the remesh nacellepyfs-mesh repitch: rigidly repitch blades and rebuild the named hub around their rootspyfs-mesh collapse-te: collapse the blunt trailing edge of named blades of an OBJpyfs-mesh hub-rings: rebuild the named hub around blade roots as rings of quads, on an OBJpyfs-mesh morph: apply the morphing file's tables in order: hub rings, repitch, collapse, wheelpyfs-mesh scale: scale every vertex of an OBJ by a factor about a point, into a new folderpyfs-mesh iges-grid: grid the named components of IGES files into one OBJ (uses the gmsh kernel)pyfs-mesh mesh-generated: mesh a parametric configuration into an all-quad OBJ (uses the gmsh kernel)pyfs-mesh prop-slice: cut a propeller OBJ or IGES into blade sections and a propeller definitionpyfs-mesh mesh: mesh a parametric configuration from its mesh controls (strategy 1 or 2, gmsh)pyfs-mesh build: preview a geometry's build, or run it with --applypyfs-mesh accept: record that a built geometry was inspectedpyfs-mesh from-sidecar: write the instruction of a geometry a matrix builds in the rowpyfs-mesh refine: refine or coarsen a panel mesh from its OBJ into a new geometry folderpyfs-mesh audit: audit a panel mesh's topology, trailing edge and panel quality, alone or against the source it was made frompyfs-mesh inventory: write <stem>.fsm.boundaries.toml beside a saved simulation, from its mesh block, or <stem>.obj.boundaries.toml beside an OBJ, from its groupspyfs-mesh degenerate: derive a degenerate geometry, the thin blade first, from a blade mesh and write it beside the source
pyfs-mesh mark-boundaries¶
Plans the marking of the trailing edges, base regions and wake terminations that the OBJ's.obj.boundaries.toml declares, and prints the steps and the script. Without --apply nothing is run and nothing is written. --apply needs the commands verified on the sidecar's FlightStream build and a licensed solver (docs/geometry.md).
usage: pyfs-mesh mark-boundaries [-h] [--apply] [--overwrite] [--fs-exe PATH] [--verbose | --log-level {quiet,normal,verbose}] OBJ
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<OBJ> |
the OBJ, with its.obj.boundaries.toml | ||
--apply |
run the marking and write the FSM (default: preview) | ||
--overwrite |
replace an existing marked FSM (with --apply) | ||
--fs-exe |
PATH |
the executable, over the one the sidecar's build names | |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh export-surface-mesh¶
Exports all surfaces of a saved workspace.fsm to <stem>.surface.stl beside it, where probe planning reads them. Preview prints the script and target without running or writing. --apply needs a licensed solver. Existing meshes require --overwrite; a failed export preserves them. See docs/geometry.md.
usage: pyfs-mesh export-surface-mesh [-h] [--build ID] [--fs-exe PATH] [--apply] [--overwrite] [--verbose | --log-level {quiet,normal,verbose}] FSM
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<FSM> |
saved file under inputs/geometries | ||
--build |
ID |
build id, over the instruction's fs_build | |
--fs-exe |
PATH |
executable, over the registry | |
--apply |
run the solver and export the mesh | ||
--overwrite |
replace an existing surface mesh | ||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh trailing-edge¶
usage: pyfs-mesh trailing-edge [-h] [--from-nodes FROM_NODES] [--out OUT] [--axis AXIS AXIS AXIS] [--hub HUB HUB HUB] [--unit UNIT] [--sections SECTIONS] [--overwrite] [--verbose | --log-level {quiet,normal,verbose}] [mesh] [output]
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<mesh> |
|||
<output> |
|||
--from-nodes |
FROM_NODES |
ordered ANSA SET node-window export; no mesh needed | |
--out |
OUT |
destination for --from-nodes; default: <input stem>.te.txt | |
--axis |
AXIS |
||
--hub |
HUB |
||
--unit |
UNIT |
coordinate unit; METER by default for --from-nodes | |
--sections |
SECTIONS |
||
--overwrite |
|||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh convert2midnodes¶
Reads the node list ANSA saves from a SET (Id, Name, X, Y, Z), puts the nodes in order along their lines (a long jump starts a new line, so one list may hold every trailing edge) and writes one mid-point per neighbouring pair.
usage: pyfs-mesh convert2midnodes [-h] [--unit UNIT] [--overwrite] [--accept-empty] [--per-family MESH] [--verbose | --log-level {quiet,normal,verbose}] NODES OUTPUT
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<NODES> |
the node list saved from the SET | ||
<OUTPUT> |
the.te.txt to write | ||
--unit |
UNIT |
METER |
the coordinates' unit (default: METER) |
--overwrite |
replace an existing OUTPUT | ||
--accept-empty |
a list with fewer than two nodes, no usable node or no edge of MESH is warned and nothing is written, exit 0, in place of refusing it | ||
--per-family |
MESH |
the OBJ the nodes belong to: write <OUTPUT stem>.<family>.te.txt per family from its edges joining two listed nodes, in place of OUTPUT | |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh identify-te¶
A trailing edge is a family's rearmost line: the edges its surface lies forward of. Without NODES they are found from the mesh alone (each family cut at its sharp edges, an edge kept when it lies within --max-angle of the plane across --aft, the yz plane by default; a sharp trailing edge is followed to a twisted tip and a closed tip cap's contour is left out; a perimeter line found for more than half its edges is taken whole, to its corners) and the nodes are also written as <mesh stem>.nodes.txt, the ANSA node list a refine file reads. With NODES (an ANSA SET node list, every perimeter in one file, any order) they are taken among its lines, on the OBJ or a refined level of it. Written beside the mesh: <mesh stem>.te.txt, the points file a boundaries file names, and <mesh stem>.nodes.te.txt, in the format the solver imports, for every mapped family; or <mesh stem>.<family>.te.txt and <mesh stem>.<family>.fs.te.txt per family with --families. Without --families only quad families are mapped (quadrilaterals at least 80 percent of the faces); --all-families maps the others too.
usage: pyfs-mesh identify-te [-h] [--families A,B] [--all-families] [--max-angle DEG] [--aft X Y Z] [--unit UNIT] [--simulation-unit SIMULATION_UNIT] [--overwrite] [--accept-empty] [--verbose | --log-level {quiet,normal,verbose}] OBJ [NODES]
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<OBJ> |
the mesh, with its families | ||
<NODES> |
the node list saved from the SET (default: the edges are found from the mesh) | ||
--families |
A,B |
the families, a points file and a solver node file each (default: every quad family, one pair) | |
--all-families |
without --families, map every family, not only the quad families | ||
--max-angle |
DEG |
45.0 |
without NODES, the largest angle of an edge with the plane across --aft (default 45) |
--aft |
AFT |
the aft direction (default +x) | |
--unit |
UNIT |
the coordinates' unit (default: the mesh's, else METER) | |
--simulation-unit |
SIMULATION_UNIT |
the unit the solver reads the file in (default: --unit) | |
--overwrite |
replace existing files | ||
--accept-empty |
a NODES list with fewer than two nodes, or no trailing edge found, is warned and nothing is written, exit 0, in place of refusing it | ||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh prepare-to-refine¶
Optional step before refine. MESH is an OBJ, whose families are cut at their sharp edges, or an ANSA NASTRAN export (.nas,.bdf,.dat) written with the FE perimeters on, whose families are cut along those perimeters (the meshing macros). Writes beside the mesh <stem>patches.obj (each family cut into <family><NNN>_grid or _mixed patches, numbered within the family from the largest extent along y), <stem>_patches.refine.toml (each patch at factor 1, grid or remesh, [components] putting each family back together) and <stem>_patches.nodes.txt (the rearmost line of each grid patch, its edges within --max-angle of the plane across --aft, as an ANSA SET node list).
usage: pyfs-mesh prepare-to-refine [-h] [--max-angle DEG] [--aft X Y Z] [--overwrite] [--unit UNIT] [--obj-unit OBJ_UNIT] [--visual-inspect] [--keep-within-component] [--verbose | --log-level {quiet,normal,verbose}] MESH
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<MESH> |
the source OBJ or NASTRAN export; it is not modified | ||
--max-angle |
DEG |
45.0 |
the largest angle of a listed edge with the plane across --aft (default 45) |
--aft |
AFT |
the aft direction (default +x) | |
--overwrite |
replace the prepared files | ||
--unit |
UNIT |
MILLIMETER |
a NASTRAN mesh's length unit (default MILLIMETER); an OBJ is written as read |
--obj-unit |
OBJ_UNIT |
METER |
the unit a NASTRAN mesh is written in to the patches OBJ (default METER) |
--visual-inspect |
also write <stem>_patches.inspect.pdf: one page per original family, each patch colored and named, the governing patches labelled GOVERNING | ||
--keep-within-component |
share directional governors across each original family's grid patches | ||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh visual-inspect¶
Writes <mesh>.inspect.pdf: the top, front, side and isometric views as a technical drawing (one scale, aligned, a scale bar), one color per patch from --cmap, each patch's perimeter in a thick line, the node lists and trailing-edge points files over the surface, and a table of each patch's faces and marked points. MESH is an OBJ or a NASTRAN export.
usage: pyfs-mesh visual-inspect [-h] [--nodes FILE [FILE...]] [--te FILE [FILE...]] [--cmap CMAP] [--families A,B] [--box XMIN XMAX YMIN YMAX ZMIN ZMAX] [--mesh-unit MESH_UNIT] [--points-unit POINTS_UNIT] [--unit UNIT] [--iso-from X Y Z] [--labels] [--no-edges] [--perimeter-width PT] [--dpi DPI] [--out OUT] [--overwrite] [--png] [--verbose | --log-level {quiet,normal,verbose}] MESH
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<MESH> |
the OBJ or NASTRAN mesh | ||
--nodes |
FILE |
[] |
node lists saved from an ANSA SET; repeat the flag or put MESH first |
--te |
FILE |
[] |
trailing-edge points files (.te.txt,.nodes.te.txt,.fs.te.txt), one color each; repeat the flag or put MESH first |
--cmap |
CMAP |
the matplotlib colormap of the patches (default: matplotlib's default) | |
--families |
A,B |
draw only these patches | |
--box |
BOX |
draw only the faces and points inside this box | |
--mesh-unit |
MESH_UNIT |
the drawing's length unit: an OBJ's own unit, or the unit a NASTRAN mesh is converted to (default METER); the scale bar names it | |
--points-unit |
POINTS_UNIT |
the unit of the node lists and points files that state none | |
--unit |
UNIT |
MILLIMETER |
a NASTRAN mesh's length unit (default MILLIMETER); not read for an OBJ |
--iso-from |
ISO_FROM |
(1.0, -1.0, 1.0) |
the direction the isometric view is seen from (default 1 -1 1) |
--labels |
write each patch's name on it | ||
--no-edges |
draw the faces without edges | ||
--perimeter-width |
PT |
0.9 |
width of the patch perimeters in points (default 0.9; 0 draws none) |
--dpi |
DPI |
300 |
resolution of the rasterized surface in dots per inch (default 300) |
--out |
OUT |
the PDF (default: <mesh>.inspect.pdf beside the mesh) | |
--overwrite |
replace an existing PDF | ||
--png |
also write each page of views as a PNG beside the PDF | ||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh merge¶
Joins two trimmed OBJ along the open boundaries that lie within --threshold of each other. The part --adapt names takes the other's nodes along that interface; the other part is kept unchanged. Writes the OBJ, <out stem>.merge.json, its audit and its inventory. The boundary declarations of the two sources are not merged. A threshold that finds no interface warns, writes nothing and exits non-zero (docs/geometry.md).
usage: pyfs-mesh merge [-h] --threshold LENGTH --adapt OBJ --out OBJ [--overwrite] [--verbose | --log-level {quiet,normal,verbose}] OBJ OBJ
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<OBJ> |
the two trimmed parts | ||
--threshold |
LENGTH |
the largest distance across the interface, in the OBJ's own length unit Required. | |
--adapt |
OBJ |
which of the two parts is adapted, by its path or its file name; the other keeps its nodes and faces Required. | |
--out |
OBJ |
the merged OBJ to write; a name of another kind is warned and takes.obj Required. | |
--overwrite |
replace an existing output | ||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh sector-to-wheel¶
SECTOR is an OBJ (with its.obj.boundaries.toml and trailing-edge points files beside it) or a saved simulation (.fsm). The sector is copied --copies times about --axis through --center, the nodes of the seams are merged within --tolerance, the surfaces named in --blades are numbered one per copy and every other surface is one group. An OBJ gives an OBJ, its boundaries file in the named form, one points file per rim per blade and <out stem>.wheel.json; a.fsm gives a.fsm, with no solver, from a layout inferred from saved files. A layout the reader does not recognize is warned, nothing is written and the exit code is 2 (docs/geometry.md).
usage: pyfs-mesh sector-to-wheel [-h] --copies COPIES --blades FAMILY [FAMILY...] [--axis AXIS] [--center X Y Z] [--tolerance METRES] [--out PATH] [--overwrite] [--no-wake-terminations] [--verbose | --log-level {quiet,normal,verbose}] SECTOR
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<SECTOR> |
the sector OBJ or saved simulation | ||
--copies |
COPIES |
the number of copies, 2 or more Required. | |
--blades |
FAMILY |
the OBJ group(s), or the boundary(ies) of a saved simulation, that are the blade Required. | |
--axis |
AXIS |
x |
x, y, z, a signed one of them written --axis=-x, or three comma-separated numbers (default x) |
--center |
CENTER |
a point of the axis, in the mesh's unit (default the origin) | |
--hub |
HUB |
Hidden: accepted, and not shown by --help. |
|
--tolerance |
METRES |
0.0001 |
nodes within this distance, in metres, are one node (default 1e-4) |
--out |
PATH |
the wheel (default <sector stem>_wheel beside the sector) | |
--overwrite |
replace an existing wheel | ||
--no-wake-terminations |
drop the wake terminations an OBJ sector's trailing-edge entries declare; by default every copy carries them, as the saved route does | ||
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh sector-remesh¶
SECTOR is a saved simulation of one sector with a blunt trailing edge: one blade whose quads end in two rim lines that start on the root loop, a spinner and a nacelle with a flat base. The blade is rebuilt with the chord clustered at the leading edge only, constant span cells and every row at one radius from mid blade outward; the spinner and the nacelle are rebuilt as quads. The layout is inferred from saved files. Writes the sector and <out stem>.remesh.json with the checks. A sector of another topology is warned, nothing is written and the exit code is 2 (docs/geometry.md).
usage: pyfs-mesh sector-remesh [-h] --blades FAMILY [--axis {x,y,z}] [--out PATH] [--overwrite] [--nacelle-theta NACELLE_THETA] [--nacelle-cells NACELLE_CELLS] --chord-cells CHORD_CELLS --le LE --span-cell SPAN_CELL [--tip-ratio TIP_RATIO] [--tip-length TIP_LENGTH] [--tip-radius TIP_RADIUS] [--spinner-theta SPINNER_THETA] [--spinner-layers SPINNER_LAYERS] [--spinner-rings SPINNER_RINGS] [--root-margin-r ROOT_MARGIN_R] [--nose-radius-r NOSE_RADIUS_R] [--verbose | --log-level {quiet,normal,verbose}] SECTOR
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<SECTOR> |
the saved simulation (.fsm) of one sector | ||
--blades |
FAMILY |
the boundary that is the blade (one blade per sector); the spinner and the nacelle are found from it Required. | |
--axis |
one of x, y, z |
x |
default x |
--out |
PATH |
the output (default beside the sector) | |
--overwrite |
replace an existing output | ||
--nacelle-theta |
NACELLE_THETA |
6 |
nacelle cells per sector, even (default 6) |
--nacelle-cells |
NACELLE_CELLS |
28 |
nacelle rings along its meridian (28) |
--chord-cells |
CHORD_CELLS |
chord cells, the side with fewer Required. | |
--le |
LE |
first chord cell, fraction of the side arc Required. | |
--span-cell |
SPAN_CELL |
constant span cell, metres Required. | |
--tip-ratio |
TIP_RATIO |
0.6 |
last span cell over the constant one (0.6) |
--tip-length |
TIP_LENGTH |
0.2 |
length of the finer tip region, metres (0.2) |
--tip-radius |
TIP_RADIUS |
tip radius, metres (default the blade's largest radius about the axis, warned) | |
--spinner-theta |
SPINNER_THETA |
12 |
spinner cells per sector, even (12) |
--spinner-layers |
SPINNER_LAYERS |
4 |
O-grid layers at the root (4) |
--spinner-rings |
SPINNER_RINGS |
7 |
rings forward to the nose (7) |
--root-margin-r |
ROOT_MARGIN_R |
0.038 |
spinner margin ahead of the root loop, fraction of the tip radius (0.038) |
--nose-radius-r |
NOSE_RADIUS_R |
0.038 |
radius of the nose kite, fraction of the tip radius (0.038) |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh power-off-body¶
SECTOR is the saved simulation sector-remesh reads. The body is --copies sectors of a closed spinner and the nacelle, merged across the seams, full quad, with no blade surface; its nacelle has the nodes of the remeshed wheel's. Writes the body and <out stem>.body.json. A sector of another topology is warned, nothing is written and the exit code is 2.
usage: pyfs-mesh power-off-body [-h] --blades FAMILY [--axis {x,y,z}] [--out PATH] [--overwrite] [--nacelle-theta NACELLE_THETA] [--nacelle-cells NACELLE_CELLS] --copies COPIES [--spinner-theta SPINNER_THETA] [--spinner-rings SPINNER_RINGS] [--nose-radius-r NOSE_RADIUS_R] [--tip-radius TIP_RADIUS] [--verbose | --log-level {quiet,normal,verbose}] SECTOR
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<SECTOR> |
the saved simulation (.fsm) of one sector | ||
--blades |
FAMILY |
the boundary that is the blade (one blade per sector); the spinner and the nacelle are found from it Required. | |
--axis |
one of x, y, z |
x |
default x |
--out |
PATH |
the output (default beside the sector) | |
--overwrite |
replace an existing output | ||
--nacelle-theta |
NACELLE_THETA |
6 |
nacelle cells per sector, even (default 6) |
--nacelle-cells |
NACELLE_CELLS |
28 |
nacelle rings along its meridian (28) |
--copies |
COPIES |
sectors in a turn, 2 or more Required. | |
--spinner-theta |
SPINNER_THETA |
6 |
spinner cells per sector (6) |
--spinner-rings |
SPINNER_RINGS |
12 |
spinner rings to the nose (12) |
--nose-radius-r |
NOSE_RADIUS_R |
0.038 |
radius of the nose kite, fraction of the tip radius (0.038) |
--tip-radius |
TIP_RADIUS |
tip radius, metres (default the blade's largest radius) | |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh repitch¶
MESH is an OBJ or a saved simulation (.fsm). The [repitch] table of the morphing file names the blades, the hub and the angle; each blade turns rigidly about its pitch axis; [repitch] hub_method chooses how the hub follows: its complete quad rings move (rings), the band around each turned root is remeshed quad-dominant (remesh, OBJ only), or auto picks one. The checks are written to <out>.repitch.json. Quality findings are warned with their numbers and the mesh is written; a broken input or invariant refuses and nothing is written (docs/mesh/how-to.md).
usage: pyfs-mesh repitch [-h] --morphing MORPHING --out OUT mesh
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<mesh> |
source.obj or.fsm, read only | ||
--morphing |
MORPHING |
TOML with a [repitch] table Required. | |
--out |
OUT |
new mesh of the same kind Required. |
pyfs-mesh collapse-te¶
MESH is an OBJ. The [collapse_te] table of the morphing file names the blades; each pair of rim nodes across a blade's one-cell base strip merges at its midpoint and the strip leaves. Every other node and face keeps its place; the boundaries file gets one trailing-edge line per blade and the checks are written to <out>.collapse.json. Quality findings (a face the merge turns over) are warned with their numbers and the mesh is written; a broken input or invariant refuses and nothing is written (docs/mesh/how-to.md).
usage: pyfs-mesh collapse-te [-h] --morphing MORPHING --out OUT mesh
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<mesh> |
source.obj, read only | ||
--morphing |
MORPHING |
TOML with a [collapse_te] table Required. | |
--out |
OUT |
new.obj Required. |
pyfs-mesh hub-rings¶
MESH is an OBJ. The [hub_rings] table of the morphing file states rings (and optionally band_width); blades and hub sit at the top or in the table. Per blade, rings rows of quads are marched outward from the root on the hub, the hub faces they reach plus one layer leave, and the band between them is remeshed quad-dominant. Blade nodes, other families and the hub's seams stay to the bit; the checks are written to <out>.hub_rings.json. Quality findings are warned with their numbers and the mesh is written; a broken input or invariant refuses and nothing is written (docs/mesh/how-to.md).
usage: pyfs-mesh hub-rings [-h] --morphing MORPHING --out OUT mesh
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<mesh> |
source.obj, read only | ||
--morphing |
MORPHING |
TOML with a [hub_rings] table Required. | |
--out |
OUT |
new.obj Required. |
pyfs-mesh morph¶
MESH is an OBJ, a sector or a full wheel. The tables the morphing file holds are applied in one fixed order: [hub_rings], [repitch], [collapse_te], [wheel] (a sector only), each with its own checks; blades and hub sit at the top of the file. One OBJ is written with its boundaries file, its points files and <out>.morph.json. Each step warns of quality with its numbers and goes on; nothing is written when a step refuses a broken input or invariant (docs/mesh/how-to.md).
usage: pyfs-mesh morph [-h] --morphing MORPHING --out OUT mesh
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<mesh> |
source.obj, read only | ||
--morphing |
MORPHING |
TOML control file of the chain Required. | |
--out |
OUT |
new.obj Required. |
pyfs-mesh scale¶
FACTOR is a positive number (0.5 halves every length). Every vertex of the OBJ given by --mesh is scaled about the origin, or about --about x,y,z; face order, groups, normals and comments stay byte for byte; for a.fsm only the x, y and z node rows of the mesh block change. --out names an output folder, created with its parents, that receives the scaled OBJ under the input name and <name>.scale.json (input digest, factor, centre, counts, bounding boxes before and after). Default folder: <stem>_scaled<factor> beside the input. The input is never overwritten; an existing same-name file in the folder is refused unless --overwrite (docs/geometry.md).
usage: pyfs-mesh scale [-h] --mesh MESH [--out OUT] [--about ABOUT] [--overwrite] factor
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<factor> |
positive uniform scale factor, for example 0.5 | ||
--mesh |
MESH |
source.obj or.fsm, read only Required. | |
--out |
OUT |
output folder, created; default <stem>_scaled<factor> | |
--about |
ABOUT |
scale centre x,y,z (default 0,0,0) | |
--overwrite |
replace same-name files in --out |
pyfs-mesh iges-grid¶
Each component the IGES files name (the NAME of a level) becomes one family of the OBJ. Faces are joined so shared edges are conformal; four-sided patches follow the laws of the grid control file and become quads, other patches are quad-dominant at the component's size. Writes the OBJ, <out>.boundaries.toml for mark-boundaries, one points file per trailing edge found and the record <out>.json. Each junction of two components is measured against the original faces of both. Quality is warned, never refused (docs/mesh/iges.md).
usage: pyfs-mesh iges-grid [-h] --grid GRID --out OUT [--component NAME] [--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 | ||
--grid |
GRID |
grid control file (TOML) Required. | |
--out |
OUT |
new.obj Required. | |
--component |
NAME |
grid only this component, named as the files name it (repeatable); the others leave the model before the join. An unknown or ambiguous name is refused with the names found. Default: every component | |
--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 |
pyfs-mesh mesh-generated¶
Resolves the configuration and meshes its patches from their role: constant spanwise width with a refined tip, chordwise growth from the leading edge, constant azimuth and axial step on a body, a planar all-quad flat tip cap and, for a wing on a body, the fairing as one quad-dominant transition ring. The orientation is outward. The record (counts, the acceptance checks, the spacing rules) is printed; the OBJ holds one group per component.
usage: pyfs-mesh mesh-generated [-h] --obj OBJ [--component NAME] [--controls TOML] [--out JSON] CONFIG
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<CONFIG> |
the configuration (TOML) | ||
--obj |
OBJ |
new.obj Required. | |
--component |
NAME |
mesh this body or lifting surface alone, in its own frame (default: the assembly) | |
--controls |
TOML |
mesh controls overriding the defaults, by table: lifting_surface, body, checks, assembly | |
--out |
JSON |
also write the record to this file (a file, unlike the --out of the mesh verb, which is a folder) |
pyfs-mesh prop-slice¶
Isolates one blade about the axis, cuts it at radial stations by the planes the propeller builder places its sections in, and writes to --out the normalized profile of each station (sections/sNN.dat), the table over r/R of chord, pitch angle, thickness, camber, skew and rake (table.csv), the propeller definition that rebuilds the propeller (propeller.toml) and the record prop-slice.json. An IGES is read by the gmsh kernel (docs/propeller.md).
usage: pyfs-mesh prop-slice [-h] --geometry GEOMETRY --blades BLADES [--axis DX DY DZ] [--origin X Y Z] [--blade-dir DX DY DZ] [--stations R_R [R_R...]] [--unit UNIT] --out OUT [--overwrite]
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
--geometry |
GEOMETRY |
the propeller,.obj,.igs or.iges Required. | |
--blades |
BLADES |
the number of blades Required. | |
--axis |
AXIS |
thrust direction, the builder's frame.thrust_dir (default -1 0 0) | |
--origin |
ORIGIN |
a point of the shaft in mm (default 0 0 0) | |
--blade-dir |
BLADE_DIR |
reference blade direction; blade 0 is the nearest (default 0 0 1) | |
--stations |
R_R |
r/R of the sections (default 21 steps from the root to the tip, and 0.7) | |
--unit |
UNIT |
mm |
OBJ length unit: mm (default), cm, m, in, or MILLIMETER, CENTIMETER, METER, INCH |
--out |
OUT |
the folder to write Required. | |
--overwrite |
replace the outputs --out already holds (refused without it) |
pyfs-mesh mesh¶
Validates the mesh controls against the configuration (errors E01 to E16 refuse by name, W01 warns), plans every component's counts, meshes the configuration with strategy 1, or strategy 2 (full grid) when mesh.strategy = 2, and measures the acceptance table of that strategy on the realized mesh. With --dry-run it prints the plan and the warnings and writes nothing. With --out it writes <descriptor>.obj, <descriptor>.mesh.json and, with --fsm-template, <descriptor>.fsm. One of --out and --dry-run is required, and --descriptor and --fsm-template need --out (docs/geometry-parametrization.md).
usage: pyfs-mesh mesh [-h] --controls TOML [--dry-run] [--out DIR] [--descriptor NAME] [--fsm-template FSM] CONFIG
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<CONFIG> |
the configuration (TOML) | ||
--controls |
TOML |
the mesh controls Required. | |
--dry-run |
validate and print the planned counts only | ||
--out |
DIR |
folder of the written mesh and record | |
--descriptor |
NAME |
file stem (mesh.output.descriptor) | |
--fsm-template |
FSM |
a fresh saved simulation of the target build; writes <descriptor>.fsm |
pyfs-mesh build¶
Reads <name>.geometry.toml (the one of the current folder, or of the folder or file TARGET names) and prints the script, the boundaries after each step and what would be written. With --apply it runs the solver once with no solve, saves the body, reads it back, audits it, and writes the preview and the record. Exit 0 built, 1 built with a failed audit gate, 2 refused, 3 the solver or the read-back failed.
usage: pyfs-mesh build [-h] [--apply] [--build ID] [--fs-exe PATH] [--png] [--overwrite] [--only TAG[,TAG...]] [--parallel N] [--rows POL] [--matrix FILE] [--verbose | --log-level {quiet,normal,verbose}] [TARGET]
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<TARGET> |
an instruction file or a geometry folder | ||
--apply |
run the solver and write the geometry | ||
--build |
ID |
the build id, over the instruction's fs_build | |
--fs-exe |
PATH |
the executable, over the registry | |
--png |
also draw <name>.preview.png | ||
--overwrite |
replace the outputs of an earlier build. Unlike post, a build refuses to replace outputs unless asked: its outputs are inputs of runs | ||
--only |
TAG[,TAG...] |
build only these variants of a [sweep], such as AIL+100 | |
--parallel |
N |
1 |
run up to N variants of a [sweep] at once, 1 or 2 (default: 1); a variant that fails beside another is run again alone |
--rows |
POL |
print, per built geometry, the row POL of --matrix with its CONFIGURATION, GEOMETRY and POL cells set for it; nothing is written into the matrix | |
--matrix |
FILE |
the run matrix --rows copies from | |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh accept¶
Writes who and when into each named geometry's <name>.build.json.
usage: pyfs-mesh accept [-h] [--workspace WORKSPACE] [--verbose | --log-level {quiet,normal,verbose}] NAME[,NAME...]
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<NAME[,NAME...]> |
geometry folders of inputs/geometries | ||
--workspace |
WORKSPACE |
. |
the workspace root (default: the current directory) |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh from-sidecar¶
Reads the sidecar of a CCS, IGES or raw-mesh geometry of inputs/geometries and prints the instruction file that builds the same body; --apply writes it. The sidecar and the matrices are never edited.
usage: pyfs-mesh from-sidecar [-h] [--apply] [--build ID] [--workspace WORKSPACE] [--verbose | --log-level {quiet,normal,verbose}] GEOMETRY
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<GEOMETRY> |
the file a GEOMETRY cell names | ||
--apply |
write <stem>.geometry.toml | ||
--build |
ID |
the build id; else the rows' newest | |
--workspace |
WORKSPACE |
. |
the workspace root (default: the current directory) |
--verbose |
print every value taken from the settings files and more detail | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh refine¶
Refines or coarsens a panel mesh from its OBJ into a new geometry folder <out>/<stem><tag>/ holding the OBJ, the trailing-edge points file, the boundaries file, <stem><tag>.refine.json and the audit against the source. FACTOR multiplies the intervals of each index direction of a grid family and divides the target edge length of a remeshed family; --parallel and --normal replace it along and across the reference perimeter of the grid families ([[perimeter]] node lists of the refinement file, else the family's longest boundary side). Without FACTOR, --parallel or --normal, the factors come from the refinement file (--config, or <stem>.refine.toml beside the mesh), whose [components], [refine] tag and elements (triangles or quad-dominant) are read whenever it exists. Faces are written in the source's order. The source and its folder are never modified. Needs no executable. Exits 0 when the level is written, even when its audit fails: each failed gate or check is a warning and the audit is written beside the level, while audit-mesh exits 1 on the same audit. Exits 2 when the request is refused, and then writes nothing.
usage: pyfs-mesh refine [-h] [--families FAMILIES] [--parallel PARALLEL] [--normal NORMAL] [--config FILE] [--accept-remesh] [--accept-unknown] [--strict-factors] [--out DIR] [--overwrite] [--visual-inspect] [--verbose | --log-level {quiet,normal,verbose}] [--keep-within-component] [--audit-off] MESH [FACTOR]
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<MESH> |
the source OBJ | ||
<FACTOR> |
the factor of every selected family | ||
--families |
FAMILIES |
the families to change, comma separated (default: all) | |
--parallel |
PARALLEL |
the factor of the grid families along their reference perimeter | |
--normal |
NORMAL |
the factor of the grid families across their reference perimeter | |
--chordwise |
CHORDWISE |
Hidden: accepted, and not shown by --help. |
|
--spanwise |
SPANWISE |
Hidden: accepted, and not shown by --help. |
|
--config |
FILE |
the refinement file (default: <stem>.refine.toml) | |
--accept-remesh |
remesh with FACTOR a family given --parallel or --normal, or method = grid, whose grid is not recovered, with a warning, in place of refusing it | ||
--accept-unknown |
warn and skip, in place of refusing, an unknown table or key of the refinement file, a value it cannot read (the key takes its default), an implicit refinement file that cannot be read, a family table or component member the mesh does not hold, and a --families name it does not hold | ||
--strict-factors |
refuse a grid factor below the least its grid allows (1/m for its m intervals, the least a tube's caps carry); by default it is raised to that least with a warning | ||
--force-factors |
Hidden: accepted, and not shown by --help. |
||
--keep-first-row |
FAMILY[,FAMILY...] |
Hidden: accepted, and not shown by --help. |
|
--out |
DIR |
where the level folder goes (Python: out_dir; default: the parent of the source's folder) | |
--out-dir |
DIR |
Hidden: accepted, and not shown by --help. |
|
--overwrite |
replace an existing level folder | ||
--visual-inspect |
write <level>.refine-governors.pdf beside its OBJ: the governing families per direction, then the patches and directions pages | ||
--verbose |
print every warning in Python's full format (file, line and source); logs/activity.log holds the full detail either way | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal | |
--keep-within-component |
share directional governors across each declared component's grid patches | ||
--audit-off |
skip the level audit and print how to run it later |
pyfs-mesh audit¶
Audits an OBJ and writes <stem>.audit.json beside it. The gates G1 to G6 judge the topology, the orientation, the open boundary, the trailing edge and the nodes families share; the relative checks compare the 95th percentiles of the skewness, the warp and the size growth with the source's; the other figures are reported and never judged. Without --against only G1, G2 and G4 are judged. The trailing-edge points file is the one <stem>.boundaries.toml names, or else <stem>.te.txt. A gate or check that fails is a warning, and the audit is still written. Exits 0 when every gate and check passes, 1 when one fails, 2 when the input is refused or when the --out CSV cannot be written after the audit was (the error names the audit written). Needs no executable.
usage: pyfs-mesh audit [-h] [--against SOURCE] [--out FILE] [--verbose | --log-level {quiet,normal,verbose}] OBJ
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<OBJ> |
the OBJ to audit | ||
--against |
SOURCE |
the OBJ the mesh was refined or coarsened from; the gates and checks that compare with a source are judged against it | |
--out |
FILE |
write the figures as CSV, one row per family and figure; the audit JSON is always written beside the OBJ | |
--csv |
FILE |
Hidden: accepted, and not shown by --help. |
|
--verbose |
print every warning in Python's full format (file, line and source); logs/activity.log holds the full detail either way | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh inventory¶
Reads the mesh block of a saved simulation and writes its boundary order as a sidecar beside it; a run whose sidecar disagrees with the file is refused before the solver starts. Needs no executable. For an OBJ the order is its groups that hold a face, in the order of the file, which is what a plan writes when the OBJ has no sidecar; an OBJ's existing sidecar is never rewritten.
usage: pyfs-mesh inventory [-h] [--overwrite] [--clean] [--refresh] [--verbose | --log-level {quiet,normal,verbose}] geometry
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<geometry> |
a saved simulation or an OBJ under inputs/geometries/ | ||
--overwrite |
rewrite a saved simulation's sidecar that already exists; without it an existing one is refused | ||
--clean |
remove the unsteady solver actions saved in the simulation, which inventory otherwise names as a warning, keeping a copy <file>.bak-<stamp> beside it; an existing sidecar is then kept unless --overwrite | ||
--refresh |
for an OBJ whose sidecar exists, rewrite only mesh_faces, boundary_faces and mesh_sha256 from the file as it is now and keep every other line; for a generated OBJ that was built again | ||
--verbose |
print every warning in Python's full format (file, line and source); logs/activity.log holds the full detail either way | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |
pyfs-mesh degenerate¶
Derives the thin blade of a blade mesh, the sheet midway between its two sides from the root to the tip, with the root moved outward along the span by --root-offset so it does not cross the spinner, and writes it beside the source as <stem>_thin_blade.obj with its boundary inventory <stem>_thin_blade.boundaries.toml. The root is the end of the blade nearer the origin of the mesh's own coordinates. The source is read only; a file holding more than one boundary needs --boundary. The derived geometry is a modelling choice: a run confirms what the solver makes of it. Needs no executable.
usage: pyfs-mesh degenerate [-h] [--kind {thin-blade}] --root-offset LENGTH [--boundary NAME] [--overwrite] [--verbose | --log-level {quiet,normal,verbose}] geometry
| Argument | Value | Default | What it does |
|---|---|---|---|
-h, --help |
show this help message and exit | ||
<geometry> |
a blade mesh: a saved simulation or an OBJ | ||
--kind |
one of thin-blade |
thin-blade |
the degenerate geometry to derive; thin-blade is the supported kind (default: thin-blade) |
--root-offset |
LENGTH |
how far the root of the thin blade is moved outward along the span, a positive length in the mesh's own unit, shorter than the blade Required. | |
--boundary |
NAME |
the boundary (an OBJ's group) that is the blade, for a file that also holds a spinner, a nacelle or other bodies; only its faces are read and the output is named <stem>_<NAME>_thin_blade; without it a file holding more than one boundary is refused | |
--overwrite |
rewrite a thin blade and its inventory that already exist; without it an existing one is refused | ||
--verbose |
print every warning in Python's full format (file, line and source); logs/activity.log holds the full detail either way | ||
--log-level |
one of quiet, normal, verbose |
how much the console says: quiet (the errors, the final summary line and the signature), normal (the default) or verbose (as --verbose); logs/activity.log keeps the full detail at every level. Default: [log] console of pyfs.local.toml or pyfs.toml, else normal |