Mesh input reference¶
The pyfs-mesh commands¶
pyfs-mesh holds every mesh operation and the build of a workspace geometry, the same verbs
as cfd-mesh. pyfs-mesh <verb> --help prints each verb's options; this page and the pages
it links say what the verbs read and write. Only build, mark-boundaries and
export-surface-mesh with --apply run the solver. The CAD rewrite is pyfs-geom
iges-convert (IGES inputs) and the FSI beam cut is pyfs-fsi beam
(FSI workspace).
| Verb | What it does |
|---|---|
mark-boundaries |
mark an OBJ's declared boundaries into an FSM |
export-surface-mesh |
preview a saved body's surface export for probes, or run it with --apply |
trailing-edge |
extract trailing-edge midpoint coordinates |
convert2midnodes |
write a .te.txt from an ANSA SET node list, in any node order; no mesh needed |
identify-te |
find the trailing edges of an OBJ and write their points and solver node files |
prepare-to-refine |
split a mesh's families into grid and mixed patches and write a refine file for them |
visual-inspect |
draw a mesh in three views and an isometric view, with marked points, into a PDF |
merge |
join two trimmed OBJ along their open boundaries within a threshold |
sector-to-wheel |
copy one sector about an axis into a full wheel, an OBJ or a saved simulation |
sector-remesh |
rebuild a saved sector's blade, spinner and nacelle as full-quad surfaces |
power-off-body |
write the power-off body of a saved sector: a closed spinner and the remesh nacelle |
repitch |
rigidly repitch blades and rebuild the named hub around their roots |
collapse-te |
collapse the blunt trailing edge of named blades of an OBJ |
hub-rings |
rebuild the named hub around blade roots as rings of quads, on an OBJ |
morph |
apply the morphing file's tables in order: hub rings, repitch, collapse, wheel |
scale |
scale every vertex of an OBJ by a factor about a point, into a new folder |
iges-grid |
grid the named components of IGES files into one OBJ (uses the gmsh kernel) |
mesh-generated |
mesh a parametric configuration into an all-quad OBJ (uses the gmsh kernel) |
prop-slice |
cut a propeller OBJ or IGES into blade sections and a propeller definition |
mesh |
mesh a parametric configuration from its mesh controls (strategy 1 or 2, gmsh) |
build |
preview a geometry's build, or run it with --apply |
accept |
record that a built geometry was inspected |
from-sidecar |
write the instruction of a geometry a matrix builds in the row |
refine |
refine or coarsen a panel mesh from its OBJ into a new geometry folder |
audit |
audit a panel mesh's topology, trailing edge and panel quality, alone or against the source it was made from |
inventory |
write |
degenerate |
derive a degenerate geometry, the thin blade first, from a blade mesh and write it beside the source |
build, accept and from-sidecar sit in pyfs-mesh because their output is the mesh the run uses, though from-sidecar reads CAD.
--warning-refusals and --warning-off stand before the verb, as for pyfs-workspace; the
verbs that take --verbose and --log-level read the console level of the workspace
settings files as pyfs-workspace does.
Morph control¶
pyfs-mesh morph MESH --morphing FILE --out OUTPUT accepts an OBJ only, a sector or a full
wheel, and writes a new OBJ with its boundaries file, the points files that file names and
<out>.morph.json. A saved .fsm is refused. The morphing file, read by morph, hub-rings,
repitch and collapse-te, and the [repitch] reference file are UTF-8 TOML; a byte order mark
at the start is read past, and a file that is not TOML is refused naming the file.
| Top-level key or table | Meaning |
|---|---|
blades |
Blade families, for every table that reads blades; a table's own blades wins |
hub |
Hub families, for every table that reads a hub; a table's own hub wins |
[hub_rings] |
Optional; applied first; see hub rings control |
[repitch] |
Applied second; see repitch control; without [hub_rings], its hub_method decides how the hub follows each blade |
[collapse_te] |
Applied third; see collapse trailing-edge control |
[wheel] |
Applied last, on a sector only |
The order is fixed and is not a key; the tables the file holds are applied, the others are not.
Another top-level key or table is warned and skipped. The steps pass their mesh, boundaries file
and points files through a private temporary folder; nothing is written beside the output until
every step has passed, and a file of the output that exists is refused. <out>.morph.json
holds the order, each step's record (what the verb alone writes as <out>.hub_rings.json,
<out>.repitch.json, <out>.collapse.json or the wheel's record), the digests of source and
output and the files written.
[wheel] key |
Meaning |
|---|---|
copies |
Optional whole number of copies, 2 or more; default the sector's angle about the axis, which must be 360/N within 0.05 degrees |
center |
Optional point of the rotor axis [x, y, z] in the mesh's unit; default the origin, warned when not stated |
axis |
The rotor axis when the file has no [repitch] rotor_axis; x, y, z, signed, or a vector |
blades, hub |
Optional, over the top-level keys; the hub's azimuth range is the sector's angle |
center is a rotor-axis point, independent of [repitch] reference_point, which can be a
scalar pitch-plane datum or an off-axis point. Neither is an alias or fallback for the other.
The wheel reuses pyfs-mesh sector-to-wheel with its default tolerance. Its seams must close:
the wheel's open edges must be the copies of the sector's open edges that are no seam, which a
wrong center, axis or copies breaks; otherwise the chain refuses. A seam edge is an open
edge whose ends, turned one copy either way, land within half the sector's shortest open edge
on an open node at each end, so a seam the wheel leaves open, or closes only in part, still counts as a seam; a
sector with open edges and no seam at all is refused.
Hub rings control¶
pyfs-mesh hub-rings MESH --morphing FILE --out OUTPUT accepts an OBJ only and writes a new OBJ,
its boundaries file and <out>.hub_rings.json.
[hub_rings] key |
Meaning |
|---|---|
rings |
Whole number of rings, 1 or more; the ring route of repitch needs at least two |
band_width |
Optional total height of the rings, in the mesh's unit; default rings times the median length of the hub edges that leave the root loop |
blades |
Blade families, over the top-level blades |
hub |
Hub families, over the top-level hub |
width in [hub_rings] is refused, naming band_width. The name describes the
band extent in both [hub_rings] and [repitch], but each route retains its own defaults,
units, capping and applicability; the routes do not promise equal meshes. Existing report
keys (width, width_stated) are unchanged.
Per blade, the root loop is the closed boundary the blade shares with the named hub; the rings
have as many nodes as the loop and are marched outward in a chart of the hub around the root
(the plane of its largest spread), normal to the loop with the normals smoothed along it, then
lifted onto the source hub. The hole is the hub faces the rings reach, plus one layer, plus any
pocket they enclose; it lies in one hub family. A face holding a node on an open boundary or on
another family, or taken by another blade, is never taken: rings that would need one, or that
fold, are refused, and the refusal names the first width at which the rings of every named
blade fit, as the width shrinks by a tenth at a time, down to a hundredth of it. Two holes may
touch; the hub nodes they share stay.
The band between the outer ring and the hole is triangulated by walking the two loops together
(or, where a jagged hole stops the walk, by clipping ears through one bridge; the record says
which), then remeshed by the remesh of refine with both loops frozen and every node projected
on the source hub, and paired into quadrilaterals as a quad-dominant family of refine is. When
the full remesh passes leave a cell turned against the source hub, fewer passes are tried, down
to none; the record states the passes kept, and a blade whose annulus kept fewer passes is
warned with its quad share, least scaled Jacobian and largest aspect.
Kept hub faces keep their order, and each blade's new faces take the place of its first face
taken: the rings from the root outward, then the band. An OBJ whose family returns after another
is written as the source has it, one g line for each run of faces, the new faces in the run of
the first face they replace. Kept nodes keep their text and their
order; nodes used only by the faces taken leave, and the new nodes follow the kept ones.
Every check runs in memory before any file is written, and a failed invariant refuses: each
blade's output hub holds exactly rings complete rings from its root; every kept node and face
is unchanged, in place and order, and the new faces sit where the first taken face was; the open
edges are the source's, no edge has more than two faces and every new cell runs its edges
against its neighbours'; the written bytes read back as the mesh in memory; and the boundaries
file reads back. A marking on a node or an edge the operation removes is refused. Quality is
warned, with its numbers, and the mesh is written: new cells that fold (their count and least
scaled Jacobian) or are turned against the source hub (their count), and a new node farther
from the source hub than the source's own chord deviation (the largest edge length times the
turn between the normals of its two faces, over eight; the worst node and its distance).
checks.passed is false when one is warned and checks.warnings lists them. The hub's area
against the source, the quality of the new cells and the largest distance of a new node to the
source hub are reported.
Collapse trailing-edge control¶
pyfs-mesh collapse-te MESH --morphing FILE --out OUTPUT accepts an OBJ only and writes a new
OBJ. A saved .fsm is refused with a message that the operation works on the OBJ.
[collapse_te] key |
Meaning |
|---|---|
blades |
Nonempty list of blade families, or "all" for every family with a declared blunt edge; under "all" a family whose declared edge is not a one-cell strip between two rims, such as a nacelle's base, or an entry marked by detection, which declares no rims, is warned and skipped |
base |
Optional list of the groups holding the strips, one for each blade in the order of blades |
Unknown keys are warned and skipped. blades defaults to the top-level blades of the file.
Of the [repitch] table of the same file only reference and rotor are read, for the
periodicity check below. On the boundaries route the strip is the faces wholly on the nodes
the blade's entries declare, and only an entry with an edge on the sides of that strip names a
rim; another marking of the blade, such as a flap line, is carried to its new position.
Each merged node takes the place in the node list of the first declared rim's node; when one
points set names both rims, of the rim holding the lowest node.
Without base the boundaries file beside the OBJ declares the rims; an OBJ with neither is
refused, saying what to provide. An OBJ that returns to a family after another is refused,
because the output writes each family as one block and that would change the face order.
A reference with several blades in the [repitch] table of
the same file makes the wheel periodicity a check; without one it is warned as not applying.
Every check runs in memory before any file is written, and a failed check refuses:
the face and node counts equal the source minus what was removed; no face the merge reaches
repeats a node or has zero area, no new pair of nodes shares a place, and no two used nodes that share a place
are moved apart, which refuses a hub with its own copy of a merged root node; each collapsed
blade has one
trailing-edge line with as many nodes as one rim, every edge of it shared by two faces; no
open edge appears or disappears except the removed rungs and no edge gains a third face;
the nodes away from the edge keep their text and order, and the faces away from it their
order and node order; each merged node is exactly at
the midpoint of its pair; the written bytes read back as the mesh in memory; and the written
boundaries file reads back through the declaration reader. A face near the edge that the merge
turns over (its normal against the source's) is quality, not a refusal: it is warned with the
count, the worst cosine and the family, face and place of the worst, the mesh is written,
checks.passed is false and checks.warnings lists it, inside pyfs-mesh morph as alone. The
total area against the source minus the strip, the smallest cosine between the normals before
and after and turned_faces are reported. <out>.collapse.json also holds the digests of source and output.
IGES grid control¶
pyfs-mesh iges-grid IGES... --grid FILE --out OUTPUT reads named IGES files and writes an OBJ
with one family per component, its boundaries file, one points file per trailing edge found
and <out>.json; pyfs-geom iges-convert IGES... --out OUTPUT writes one IGES of B-spline
faces with one NAME per component and <out>.json. Both use the gmsh kernel, a dependency of the package. The grid
control file's keys, the spacing laws, the name rule, the checks and the limits are in
Grid and convert a named IGES. An input refused writes nothing; quality is warned
with its numbers and never refused.
Repitch control¶
pyfs-mesh repitch MESH --morphing FILE --out OUTPUT accepts OBJ and FSM, retaining
the input kind. The standalone morphing control belongs beside the geometry; it
is not a matrix input identifier. Relative reference paths resolve from that file.
[repitch] key |
Meaning |
|---|---|
angle_deg |
Finite pitch change, in degrees; required |
max_angle_deg |
Positive limit, default 5, at most 5 |
blades |
Nonempty list of blade families, or "all" from the reference; default the top-level blades |
hub |
Nonempty list of hub families to rebuild; never inferred; default the top-level hub |
keep |
Optional kept-family list; all other unselected families are also kept |
axis |
"auto" (default) from the reference, or an inline origin/direction table |
axes.<family> |
Per-blade origin and direction overriding axis |
reference |
Reference TOML for automatic radial axes and wheel checks; its rotor must state axis, else the run is refused naming the missing key |
rotor |
Rotor table name when the reference declares several |
rotor_axis |
Direction of the rotor's rotation: x, y, z, signed, or a vector |
reference_point |
A coordinate along rotor_axis, which places the plane of the pitch axes, or a point [x, y, z] every pitch axis passes through |
hub_method |
How the hub follows each blade: "rings", "remesh" (OBJ only) or "auto" (default); see the hub routes below |
band_width |
Remesh only: the band's width in the mesh's unit, positive; default the root's largest move plus two local cells |
On the ring route repitch changes coordinates only. On either route the written OBJ holds the
source's faces in the source's order, including an OBJ whose family returns after another, which is
written as the source has it, one g line for each run of faces; on the remesh route each blade's
new faces sit in the run of the first face they replace (FlightStream results depend on face order).
Hub routes. "rings" moves the nodes of the complete quad rings around each root (at least two); it changes
coordinates only and is the only route on a saved .fsm, where "remesh" is warned and the
ring route runs. "remesh" changes the hub's faces around each root, on an OBJ: the band is the
hub faces a march of band_width from the old root reaches, in steps of at most one local cell,
plus one layer and any pocket they enclose, in one hub family; a face on an open boundary, on
another family or in another blade's band is never taken, and a band that would take one is
narrowed by a tenth at a time, down to a hundredth, and warned (none fitting refuses). The local
cell is the median length of the hub edges leaving the root; the default width is the root's
largest move by the turn plus two of them. The blades of a wheel are planned together: each
band keeps to its share of the gap to the nearest other root (half the least distance between
the two roots, less one local cell), so no band takes room another needs. A stated band_width
above the share is lowered to it and warned with both numbers; a share that leaves no room beyond
one local cell is warned, and the band holds the marched rows only (the root's move plus two
local cells, or less when band_width says so), never a negative width. The annulus from the
turned root (its nodes the blade's, never duplicated) to the band's unmoved boundary is filled
in two parts, in a chart of the hub. At least two rows are marched out from the turned root,
and more while the nearest point of the boundary leaves a row's height beyond them. Each root
node's rows are one local cell high, less where the boundary is near (a row's height is left
beyond the last row) and less where the root's sides at the node are short (at most twice the
shorter, as at a blunt trailing edge), smoothed over two nodes each way without any node
exceeding its own limit, so the rows thin only where they must. Where they do not fit, all
heights are thinned by a fifth at a time, while the thinnest stays at least the root's finest
spacing, before one row is dropped, and the last row keeps at least the least row height from
the boundary everywhere. The
rows are lifted onto the source hub and written as quads from the root outward, as hub rings
writes its rings, so the cells around the root have the source's size and one local cell of
depth, which the rim merge of collapse-te at a blunt trailing edge needs. The gap from the
last row to the boundary is triangulated as for hub rings and remeshed with both loops frozen
at every pass count of the fallback (8, 4, 2, 1, 0), every free node projected on the source
hub, and paired into quadrilaterals; fewer passes are tried only when the full count leaves a
cell turned against the source hub. Each remesh is then polished: a free node of a cell whose
least corner Jacobian against the source hub's normal, or shortest side over longest, is below
0.5 moves to the best of its neighbours' centroid and steps of a half, a quarter, a tenth and a
twentieth of its mean edge in eight directions, projected on the source hub, when that raises
its worst cell, for up to twelve sweeps; the loops never move. The source hub is closed under
each old root by triangles across the root loop, so that the part of the old footprint a turned
root uncovers has a surface for the rows and nodes there. This is done for the first width and
up to two more, each one local cell wider, while they fit and keep to the share, and then
again at the same widths with rows all of one height (a local cell, or the room the nearest
point of the boundary leaves). Each band is remeshed sized by the source hub's cells, then
sized from its two loops (at the band's nodes, the side lengths of the nearest inner and
boundary loop nodes weighted by the distances to them). Each band's target is a least scaled
Jacobian at least half the source band's and a largest aspect at most twice the source
band's, measured on the rows and the annulus together; the first candidate with no cell turned
against the source hub that meets its target is kept, and otherwise the one with the fewest
turned cells and, among those, the largest margin to its target (the lesser of the least
scaled Jacobian over the target's and the target's aspect over its own). A band that misses
its target is warned with both numbers, its rows and width, and the mesh is written. Kept
faces keep their place and order; each blade's new faces take the
place of its first face taken. "auto" takes "rings" where every named root has two complete
quad rings and "remesh" otherwise, but keeps the ring route, and its refusal naming the order
repitch then collapse-te, for a root that shows the closure triangle of a collapsed trailing edge
(every root edge on one quad, and one triangle the only other hub face at the root).
The record names each blade's hub_route and the hub_method asked. For the remesh,
hub_remesh.<blade> holds the width (asked, kept, shrunk from, the rule, the local cell, the
root's largest move and share_of_gap, null for a lone root), held_rows, row_height and
row_height_largest (the least and largest row height),
the candidates (width, passes, turned cells, least scaled Jacobian, largest aspect,
target_margin, quad share, rows, sizing), the kept band's rows (graded or
uniform) and sizing (source or loops), the faces taken and added, the hole's boundary nodes, the first
triangulation, source_band beside output_band (scaled Jacobian and aspect extrema, folded
cells, quad share, mean edge) with size_ratio, the mean edge of the new band over the source
band's, and target (least_scaled_jacobian, largest_aspect, met). A new band with a lower
least scaled Jacobian or a higher largest aspect than the
source band is warned with both numbers. On a remeshed wheel the blades must stay periodic; hub
bands that do not map node for node from one blade to the next are warned.
The report measures rigid-rotation residual, distance from the pitch axis, and
pitch change at five span positions including root and tip. It records source and
output hub counts, quality extrema (corner scaled Jacobian and edge aspect ratio),
folded cells, shared root seam, non-manifold edges, fixed boundaries and added
triangles. The ring route refuses an edge over two faces only at a node it moves (a hub ring or
a blade); one elsewhere, as where an airframe beside an installed rotor is imprinted on itself,
is left as it is. A reference with several blades, or several blades named with rotor_axis,
makes the wheel periodicity a check at 360 divided by the blade count, read on the blades
and hub only, so a wing or a fuselage in the file takes no part; a source whose blades and
hub were not periodic either is warned, not refused. Otherwise that check is warned and
skipped. Unknown control keys and absent keep entries are warned and skipped.
A blade with no axes entry and no axis takes its pitch axis from rotor_axis and
reference_point when the table states them: its span direction (the principal axis of its
nodes, sensed to the tip) projected on the plane perpendicular to rotor_axis, through the
hub centre in the plane a scalar places (the centroid of the hub's cut by that plane when the
cut closes, the centre of the circle fitted to it when it is an arc; the cut is joined across
each blade root) or through the point stated. pitch_axes in the record holds the centre,
the fit's radius and largest residual, and each blade's span and pitch-axis directions with
the distance by which its pitch axis passes outside its root loop, which is warned.
On the ring route the blade and hub face lists remain in source order, including the original FSM triangle partners. FSM trailing-edge groups, flags, base regions and wake termination indices are retained. OBJ sidecar point files must match source vertices or edge midpoints; their coordinates follow the corresponding output locations, and on the remesh route a marking on a node or an edge the band removes is refused. A broken input or a broken invariant (nonfinite coordinates, an edge over two faces, a kept node, face or open boundary that moved, a frozen loop node that moved, an unreadable control file) produces no mesh or report. The ring route refuses a hub without two complete quad rings with a remedy; it substitutes no triangulated replacement for a quad hub, which is what the remesh route is for. Interior projection retains the source FSM triangle-pair diagonals. Projection and smoothing leave the shared blade-root nodes under the rigid-rotation constraint.
Quality is warned with its numbers and the mesh is written; checks.passed is then false and
checks.warnings lists every warning: folded hub cells (the count and the least scaled
Jacobian beside the source's), reversed hub cells against the source (the count), moved
non-root hub nodes off the source hub (below), and on the remesh route new cells folded or
turned against the source hub, a new node beyond the source's chord deviation (the worst
node and its distance), a band that misses its quality target and a new band worse than the
source band it replaces (both with their numbers). checks.passed is false whenever
checks.warnings is not empty.
The printed checks and <out>.repitch.json include every moved hub node's
zero-based index, shared-root status, distance to the finite source triangles in
metres and distance divided by its local cell edge. The local edge is the shortest
edge among incident source hub cells. Non-root nodes beyond
NON_ROOT_SURFACE_TOLERANCE = 1e-8 local edges are warned with their count and the worst
node and its distance, and the mesh is written.
root_max_distance_to_source_hub_m and
root_max_distance_to_source_hub_over_local_edge report the rigid root's stand-off.
Above ROOT_STANDOFF_WARNING = 0.5 local edges, one warning states how far the root
stands off the source hub surface and how much the hub shape near the root changes.
This warning does not refuse the rebuild. The corresponding non_root_max_...
fields measure the largest non-root node departure from the source hub surface;
they do not bound distances between face interiors or measure enclosed volume.
Distances use the declared mesh unit converted to metres; an unstated unit warns
and assumes metres.
Refinement controls¶
Refinement files warn and skip the retired [periodic] and [trailing_edge]
tables and the family keys trailing_edge_direction, axial,
circumferential, axis and origin, including empty or malformed values. Use
[[perimeter]] for reference node lists and trailing-edge export. A row that
must stay unchanged is a separate family with method = "keep"; continuity
may still require changes along its shared curves.
Refinement audits each written level by default. refine --audit-off (also
available through pyfs-matrix) or refine_mesh(..., audit=False) skips that
call and returns a level with audit=None. Its refine.json records
"audit": "skipped (--audit-off)"; no audit file is written. The command prints
how to audit the level later with pyfs-mesh audit <level.obj>
--against <source.obj>. The skipped record does not prevent later inspection
or auditing (FR-3321).
prepare-to-refine --keep-within-component and
prepare_to_refine(..., keep_within_component=True) select one parallel and
one normal governing grid patch per original family, grouped by [components].
Each governor has the greatest total length of its direction's sides; ties use
source order. The prepared [refine] keep_within_component = true key enables
the same planner decision in refinement. refine --keep-within-component and
refine_mesh(..., keep_within_component=True) enable it for a hand-written file.
Python None reads the file key; False overrides it. Without the flag/key or
without components, existing layout governing is unchanged.
All grid patches of a component take its governors' factors per direction.
A member that states factors of its own other than its governors' is warned, naming
the factors it stated and the ones it takes.
A member with no refinement table, or with method = "keep", is copied
unchanged: it neither governs nor follows. Directions propagate through shared grid bands; disconnected patches use their
own orientation with a warning and recorded provenance. refine.json records
the two selected names under component_governors; inspection labels remain
GOVERNING PARALLEL and GOVERNING NORMAL. A non-boolean file key is warned and
skipped, using false.
Tube ring lengths include their closing edge when choosing a component governor. An inherited factor below a tube's representable minimum is raised to that minimum with a warning, as for directly stated factors (FR-3322).
Per-family trailing-edge outputs use a renamed stem when their filenames would
collide with level-wide files or another family's outputs. For example, family
nodes uses nodes_family, or nodes_family_2 if the former is already used.
The operation warns and records the mapping in refine.json under
renamed_family_outputs. OBJ family names remain unchanged; generated
boundaries declarations point to the renamed files.
The inventory command writes <mesh>.obj.boundaries.toml or
<mesh>.fsm.boundaries.toml, according to its input. An existing OBJ inventory
is never rewritten, including with --overwrite. The marking declaration
locator accepts <mesh>.boundaries.toml when the .obj. filename is absent.
Named boundary declarations¶
The marking loader reads an ordered table per trailing-edge entry and per base
family. The family must occur in boundaries; trailing-edge labels are free.
fs_build = "26.125"
boundaries = ["wing", "rim"]
[trailing_edges.tip]
file = "tip.te.txt"
type = "RELAXED"
wake_termination_nodes = "auto"
[base_regions.rim]
trailing_edges = "auto"
merge_into = "wing"
A trailing-edge entry requires type: STANDARD, RELAXED, JET_OUTFLOW or
VORTEX_SHEDDING. Replace file with detect = "auto" or
detect = { surfaces = ["wing"], sweep_angle = 30.0 } for detection, which
accepts only STANDARD. bluntness_angle (degrees) beside sweep_angle sets
SET_TRAILING_EDGE_BLUNTNESS_ANGLE before the detection; a build whose command
database has no row for that command (26.122 and later) refuses it. File matching defaults to tolerance = 0.0001 metres.
Termination nodes may name a points file instead of "auto": the package's
points file (a unit line, then x,y,z), or the solver-layout nodes file a refined
level writes, <level>.<family>.fs.nodes.txt, read in the [import] unit.
Each point must match exactly one mesh vertex within the tolerance.
thin_boundaries = ["Wing"] at the top of the file marks the named boundaries thin
(SET_THIN_BOUNDARIES); [] clears a saved selection (DELETE_THIN_BOUNDARIES), and an
absent key emits nothing. A setup's thin_boundaries is refused by name.
Base regions default to model = "EMPIRICAL" and cp = -0.2. Their rim is
"auto" or { file = "rim.te.txt", type = "STANDARD" }. A rim given as a file
takes the rim's termination nodes in the same table,
{ file = "rim.te.txt", type = "STANDARD", wake_termination_nodes = "rim.wake.te.txt" }
or "auto", marked as an entry's are, so a rim declared once carries them. A merge
destination must be another existing family and cannot itself be merged.
Trailing-edge entries and base regions are separate namespaces: [trailing_edges.Rim] and
[base_regions.Rim] may both exist and stay two declarations, and only the base region takes
the base family's edge ordering. Where the wheel route writes points files for both under one
name, the first keeps <out-stem>.<name>.te.txt and a later one takes its role in the name,
<out-stem>.base.<name>.te.txt, then a number; names that differ only in case are treated as
one name, so no file replaces another. Shared-edge warnings name the role when a label repeats.
Migration: each old unnamed trailing-edge file becomes a named entry (use its
file stem as the label). Move [wake_termination] to wake_termination_nodes
on the entry it serves, or the first entry if it served all. Replace base-region
autodetection with one named base table per family. The marking loader refuses
these old table forms with their translation. Matrix planning refuses all
marking declaration tables; only mark-boundaries consumes them.
[trailing_edges] none = true remains supported for a mesh with no trailing
edge, alone without named entries. State fs_build when declaring boundaries.
The surface names¶
Inventory reads OBJ groups holding faces in file order. The marking pass uses those names and publishes the saved FSM inventory after renames and base merges. Matrix rows refer to those saved names. Existing OBJ sidecars are never overwritten by inventory.
The unit¶
The OBJ sidecar states its source units; no unit is assumed:
fs_build = "26.124"
boundaries = ["Wing"]
[import]
units = "METER"
[trailing_edges.wing]
file = "wing.te.txt"
type = "STANDARD"
tolerance = 0.0001
The file matching tolerance is in metres. Points files declare their own length unit. The saved simulation carries its coordinate scale into the run.
Explicit CAD conversion is a separate route¶
CAD and CCS inputs belong to geometry build. The matrix opens the resulting FSM. Geometry build retains its own solver pass and its instruction format; the named OBJ declarations here belong to mark-boundaries.
A CCS file is another route¶
Use the CCS geometry build stage, then run its saved FSM.
The mesh operations of an import¶
Import operations belong to preparation. Move geometry construction to a
geometry instruction. Row TRANSLATE and ROTATE still act on the saved body
after the run's frames have been defined.
The boundary conditions of a raw mesh¶
Use the named declarations above with pyfs-mesh mark-boundaries. Each
trailing-edge entry has its own label and type. The marking pass checks the
saved result before publishing it; runs perform no per-point wake-edge
import-count verdict. An intentional absence of trailing edges is written:
fs_build = "26.124"
[trailing_edges]
none = true
Explicit termination points are named by wake_termination_nodes = "tips.wt.txt"
inside the trailing-edge entry. Use "auto" only where the build's recorded
evidence permits the automatic command. Preview does not establish support.
The points file¶
The wake-edge import matches a mesh edge by its MID-POINT: an edge is marked
when a point in the file lies within the import's tolerance of the edge's
mid-point, and a point farther than that from every mid-point marks nothing
and reports nothing. So a points file names edges by their mid-points, never
by their end vertices. Its first line names the length unit of its points (a
token of SET_SIMULATION_LENGTH_UNITS, OTHER excepted), and every later
line is one x,y,z mid-point:
METER
0.216872113,-0.002159825,0.223199974
0.250942335,-0.004761036,0.219139256
The points file is the package's, not the solver's: its unit is stated once, on the first line, since a mesh file does not carry one, and the run converts its points to the simulation's length unit and writes the file the solver imports.
It is checked before any seat is spent. When the row is bound, the file is
read and every point is checked against the mesh (read_trailing_edge_points
and matched_trailing_edge_points, in pyflightstream.workspace.wake_edges),
compared in the simulation's length unit. The first point farther than
tolerance from every mesh-edge mid-point is refused by its position, its
file line, its coordinates and its distance, and two points nearest one edge
are refused as well, since the solver would mark that edge once. A file of the
edges' end vertices fails this check at its first point. The checked points
come back in metres.
The marking pass writes any solver node files in its work folder and checks the saved result before publication. Matrix runs open that result and do not write marking files or apply per-run trailing-edge count verdicts.
Which build runs what, and what is measured¶
Marking checks the command evidence on the sidecar's declared fs_build
before applying. Unverified commands are refused by name. The saved-state
checks cover surfaces, trailing edges, termination counts and base regions;
see marking and publication.
The matrix does not repeat marking or certify a GUI-authored FSM.
What that content hash is, and what it leaves out¶
Stated here because this page is where a user is told to trust it, and a checksum whose rule is unstated cannot settle the question it exists for: two people holding what they believe is the same input file must be able to tell whether they really do.
The algorithm is sha256, and there is no other. Every digest this library
writes into a manifest comes from pyflightstream._digest, which holds the
algorithm as a value rather than as a sentence, so a tier 1 test spends it and
a second algorithm cannot arrive quietly.
The canonical form is the raw bytes of the staged file, read in blocks and
never decoded. One manifest field is not a file digest and is named here so
the rule is not over-read: recipe_sha256 records the recipe function's
SOURCE, and a source text is hashed as its UTF-8 encoding, which is the second
canonical form pyflightstream._digest states.
Nothing around the file enters the digest. Not the path it was staged from, not the file name, not its modification time, not the machine or the user that staged it, and not the order the inputs were staged in. Those are exactly the fields that differ between two runs which are otherwise the same run, so admitting one would make the manifest report two identical runs as different. They are absent by construction rather than by filtering: the digest reads bytes and reads nothing else.
Metadata embedded in those bytes is included. A timestamp, path or user name saved inside a mesh or other input changes the digest when it changes. Hashing does not parse, filter or normalize that content. The exclusions above concern external filesystem and process metadata only.
Read the consequence for a text mesh, because it is the one that surprises. An
OBJ is bytes like anything else, so the same mesh checked out with CRLF line
endings on one machine and LF on another is two different files carrying two
different digests. That is the digest being correct about the file rather than
wrong about the content: the solver reads the file, not an idea of it. A
.fsm artifact is binary and has no such ambiguity, which is a further reason
the supported pattern treats it as immutable. Where a comparison has to survive a
line-ending change, compare the parsed geometry rather than the manifest
digest.
The boundary inventory sidecar¶
A saved simulation carries its boundary names in the solver's own order, and a
workflow row cites boundaries by those names (MOVING_BOUNDARIES:
Blade1,Blade2). The order is a property of the file, so it is never stated
by hand: a setup artifact that carries mesh_order_list is
refused, and the order is written from the file itself:
pyfs-mesh inventory inputs/geometries/30_WB.fsm
writes inputs/geometries/30_WB.fsm.boundaries.toml, a boundaries list in the
file's order, and refuses to overwrite one that exists without --overwrite.
The sidecar sits beside the file, so a geometry kept in its own folder,
inputs/geometries/30_WB/30_WB.fsm, has it inside that folder, and the run reads it
from there. pyfs-mesh inventory reads an .obj's order from its groups
instead (above), and refuses any other file without a
mesh block (an .stl, or a file the solver never saved) by name, because it
has no block to read the order from.
A row whose .fsm has a sidecar is checked when the script opens the file: a
sidecar that disagrees with the file's own block is refused before any seat is
spent, naming both lists, and an agreeing one is recorded in the run record as
the inventory source (inventory_source: sidecar; mesh_block when the file
alone declared the names). The record also carries the names
themselves, inventory, in the file's order; the post reads a section
distribution's selection over them. The sidecar is what lets a name resolve
for a file whose mesh block a reader cannot open, and it is otherwise a
statement the run verifies rather than trusts.
Actions saved in the geometry¶
A saved simulation keeps the unsteady solver actions it was saved with. When
the script creates an action with the name of a saved one, the saved one
stays and the solver runs ITS command, so a geometry saved on a workstation
after an unsteady run carries that workstation's walltime clock, interpreter
path included, and every unsteady run of it on a cluster aborts when the
clock fires. pyfs-mesh inventory names each saved action, on every call,
with the command that removes them:
pyfs-mesh inventory inputs/geometries/30_WB/30_WB.fsm --clean
--clean reduces the file to its meshes and the boundary conditions
already applied. It sets the action count to 0 and removes
the action records, and it puts every other block back to the content a
freshly imported file holds, where that content is measured for the file's
build and length unit; everything else comes from the script. The blocks and
their fresh-import content were measured on the ten tier-3 geometries, fresh
imports saved by 26.120 (build 7012026) in metres, which hold the same
GLOBAL, MOTION, POST, WAKE, SOLVER, ACOUSTIC, STABILITY and
AEROELASTIC whatever the shape: those are the blocks reset, and each one
reset is named on standard error. Anything set by hand in them is discarded,
the reference point and frame of GLOBAL and the solver and wake settings of
SOLVER and WAKE included, since the script sets them again; the ten
geometries were all made by one preparation recipe, so the content is the one
common to those saves. Never reset:
MESH (the meshes, the boundaries, the trailing edges and the wake
termination marks), PHYSICS (the surface lists the boundary conditions are
set in), WRAPPER and GRAPHICS (which differ between fresh imports), and
CAD, CADCREATE and CADMESHING (measured on STL imports only). A file of
another build or unit, 26.124 included, has no measured fresh import: only its
saved actions are removed, every other block is kept, and the command says
so. That the solver opens and runs a cleaned file is owed by the licensed
validation round.
The file as it was is copied to 30_WB.fsm.bak-<stamp> beside it first, and
it is read again after the change: its boundary names and every block kept
must be as before and its action records must read as none, or the copy is
put back and the call refused. A file whose build is measured but which lacks
one of the blocks to reset is refused before anything is written, and a file
already clean is not written. An existing sidecar is kept, since the
boundaries it lists did not change, unless --overwrite is given too. To
clean every geometry of a workspace kept one per folder:
for d in inputs/geometries/*/; do n=$(basename "$d"); f="$d$n.fsm"; [ -f "$f" ] && pyfs-mesh inventory "$f" --clean; done
The plan warns too. pyfs-matrix plan reads the geometry of
every row whose run type is unsteady or unsteady_rotor, a continuation
included, with the same reader, and for each file carrying saved actions
prints a warning naming the rows that open it, the file, each action (name,
type, command) and the --clean command; a file whose action records cannot
be read is named as unreadable. The plan never refuses on that account: its
rows, its files and its exit status are those of the same plan without the
warnings.
The refinement file and the audit¶
This section is the reference of pyfs-mesh refine and pyfs-matrix
audit-mesh; the walk-through is
Refining or coarsening a mesh.
The two commands¶
pyfs-mesh refine MESH [FACTOR] [--families A,B] [--parallel F] [--normal F]
[--accept-remesh] [--accept-unknown] [--strict-factors] [--config FILE]
[--out DIR] [--overwrite]
pyfs-mesh audit OBJ [--against SOURCE] [--out FILE]
| argument | of | meaning |
|---|---|---|
MESH |
refine |
the source OBJ; it and its folder are never modified |
FACTOR |
refine |
the factor of every selected family, a finite number above zero |
--families A,B |
refine |
the families to change, comma separated (default: every family) |
--parallel F, --normal F |
refine |
the factor of one direction of every selected grid family: --parallel along the family's reference perimeter, --normal across it (on a multiblock family, of the patch sides running that way against the perimeter); refused for a remeshed family unless --accept-remesh is given. |
--accept-remesh |
refine |
remesh with FACTOR a family given --parallel or --normal, or stated method = "grid", whose grid is not recovered, and a later grid whose layout the blocks refuse (a shared curve counted apart), with a warning, in place of refusing it; the accept_remesh keyword of refine_mesh in Python |
--accept-unknown |
refine |
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, a table left with no factor is skipped, a bad tag gives the built one), an implicit refinement file that cannot be read, a family table or [components] member the mesh does not hold, and a --families name it does not hold; the accept_unknown keyword of refine_mesh in Python |
--strict-factors |
refine |
refuse a grid factor below the least its grid allows (one interval per side, or what a tube's caps carry); by default it is raised to that least with a warning; force_factors=False of refine_mesh in Python |
--config FILE |
refine |
the refinement file (default: <stem>.refine.toml beside the mesh) |
--out DIR |
refine |
where the level folder goes (default: the parent of the folder holding the source); the out_dir keyword of refine_mesh in Python |
--overwrite |
refine |
replace an existing level folder |
OBJ |
audit-mesh |
the OBJ to audit |
--against SOURCE |
audit-mesh |
the OBJ it was made from; without it only G1, G2 and G4 are judged |
--out FILE |
audit-mesh |
write the figures as CSV, one row per family and figure (the audit JSON is always written beside the OBJ, whatever --out says); --csv FILE is a deprecated alias. Refused when it names a file the command reads or writes: the OBJ, its boundaries file, its <stem>.te.txt or the points file the boundaries file names (MeshAudit.files_read), the OBJ's <stem>.refine.json, the <stem>.audit.json the command writes, and every one of these files of the --against source |
refine exits 0 when the level is written, whatever the audit says, and 2 when
the request is refused. audit-mesh exits 0 when every gate and check passes,
1 when one fails (the audit is still written) and 2 when its input is refused.
A refusal is printed on standard error, names the object, what was refused and
what to do, and ends with Nothing was written.: every refusal of the
arguments, the refinement file, the family names and the installed extras comes
before any family is resampled and before any file is written.
A level is written into a staging folder, audited there, and renamed
once complete, so an error leaves no level folder behind; with --overwrite
the existing level is replaced only then, and kept when an error comes first.
An option the refinement no longer offers is warned and skipped, never
refused: the [trailing_edge] and [periodic] tables of the refinement file,
trailing_edge_direction, and the keys axial, circumferential,
axis and origin of a family table. A family table that states factor
beside the last four is refined by factor; one that states only them is
skipped.
Where the factors come from¶
- FACTOR applies to every family
--familiesselects (default: every family).--paralleland--normalreplace it in that direction of each selected grid family; given alone, the factor of the other direction is 1. - When the command gives none of FACTOR,
--paralleland--normal, the factors are the[families.<name>]tables of the refinement file:--config FILE, or else<stem>.refine.tomlbeside the mesh. A family the file does not name is not changed.--familiesthen selects among the file's tables: an unselected family is not changed, and a selected name the mesh does not hold is refused, as on the FACTOR route. - With no factor on the command and no file, a file that states no family,
or a selection the file states no factor for, the command is refused. A
selection of no family is warned and skipped: no level is written, and
--warning-refusalsrestores the refusal. - A
[families.<name>]table whose factors are not read (every one when the command gives the factors, an unselected one under--families) is a warning naming it, andrefine.jsonlists it underignored_families_tables; anelementskey in it still applies.
The [refine], [components] and [[perimeter]] tables of the refinement file
are read whenever the file exists, whatever gives the factors.
The keys of the refinement file¶
The block below names every key at once; a real file holds the tables its own mesh needs, and every family it names must be a family of that mesh.
[refine]
tag = "fine"
elements = "triangles"
[families.Wing]
factor = 2
parallel_factor = 2
normal_factor = 1.5
method = "grid"
[families.Tip]
factor = 2
method = "remesh"
elements = "quad-dominant"
[components]
Blade1 = ["Blade1_side", "Blade1_tip"]
[[perimeter]]
file = "wing.nodes.txt"
export_te_per_family = true
te_families = ["Wing"]
aft = [1.0, 0.0, 0.0]
| table | key | value | meaning |
|---|---|---|---|
[refine] |
tag |
text | the level's name, <stem>_<tag>, in place of the factors |
[refine] |
filename |
text, with or without .obj |
the name of the level's folder and OBJ, in place of <stem>_<tag>; when both are stated the filename names the level and the tag is warned and skipped; a text that is not one file name is warned and skipped |
[refine] |
elements |
"triangles" (default) or "quad-dominant" |
the elements of every remeshed family that does not state its own |
[families.<name>] |
elements |
"triangles" or "quad-dominant" |
the elements of a remeshed family: quad-dominant pairs the remeshed triangles into convex quadrilaterals (angles 30 to 150 degrees, warp at most 10 degrees), never across an open boundary, the trailing edge or a ridge; refused with method = "grid", ignored (and said so in refine.json) on a family that "auto" resolves to a grid |
[families.<name>] |
factor |
number above zero | multiplies the intervals of each index direction of a grid; divides the target edge length of a remeshed family |
[families.<name>] |
parallel_factor, normal_factor |
number above zero | the factor of one direction of a grid, replacing factor there: along the family's reference perimeter and across it. They need no trailing edge. |
[families.<name>] |
method |
"auto" (default), "grid", "remesh", "grid_auto" or "keep" |
"auto" takes the grid when it is recovered and remeshes otherwise; "grid" refuses a family whose grid is not recovered, naming why; "remesh" remeshes it; "grid_auto" takes no factor: the family is refined as a grid with each factor from the governing family for that direction in its own grid-connected layout, choosing the largest perimeter and then source order when several govern; a mixed patch does not connect layouts, with parallel and normal directions propagated from that family through shared curves. Conflicting or unlinked directions warn and use the follower's own geometric reference; refine.json records directions as from <governing>, own reference: conflict or own reference: unlinked. The family is kept unchanged when it is not a grid or when no family is governing (warned) |
[families.<name>] |
governing_parallel, governing_normal |
boolean, default false | lead parallel or normal bands independently; one family may lead both. Each band takes its count from its directional governor, else the declared family of the largest perimeter; ties use source order. Grid-auto followers take each factor from their own layout's lead in that direction, falling back to the largest declared perimeter when that direction has no governor. Directions propagate through shared curves; conflicting governing patches retain their own geometric orientation, warned per patch. Undeclared families use "keep" and change only for continuity. Governing on a grid-auto or keep family is warned and skipped |
[families.<name>] |
governing |
boolean, default false | earlier spelling: true means both governing directions, with a warning; it remains accepted. On a "grid_auto" family governing is warned and skipped |
[components] |
NAME = [...] |
a non-empty list of family names | the members written as one family NAME of the output, their faces in the source's family order |
[[perimeter]] |
file |
non-empty path | a node list saved from an ANSA SET node window (Id, Name, X, Y, Z), relative to this refine file; any number of [[perimeter]] tables may be stated, and one list may hold the perimeters of every component, in any node order |
[[perimeter]] |
export_te_per_family |
boolean, default false | the list holds trailing edges: the level writes <level>.te.txt and <level>.<family>.te.txt from it, after component grouping |
[[perimeter]] |
te_families |
list of family or component names | the trailing edge of each named family is its rearmost line, the listed edges its surface lies forward of (a sharp trailing-edge fold within 78 degrees of forward), on the one listed perimeter of each piece that reaches furthest aft; the level writes <level>.<family>.te.txt for it by output family, holding that line alone (a listed line the family shares with the family ahead of it, such as a hinge, is the other family's), every coarsened interval present whatever the line's curvature. A name that matches no family is warned and skipped |
[[perimeter]] |
aft |
three numbers, not all zero; default [1, 0, 0] |
the direction from the nose to the tail, which tells the rearmost line of a family |
Variables: [vars]¶
A value used many times is declared once in a [vars] table and referenced
later in the same file as ${name}:
[vars]
f_wing = 0.35013
suffix = "0p350"
[refine]
tag = "R${suffix}"
[families.WingLH]
method = "grid"
factor = "${f_wing}"
[families.WingRH]
method = "grid"
factor = "${f_wing}"
| table | key | value | meaning |
|---|---|---|---|
[vars] |
a name of letters, digits and underscores, not starting with a digit | a number, text, boolean or a list of them | a text that is exactly ${name} takes the variable's value with its own type (factor = "${f_wing}" is the number 0.35013); ${name} inside a longer text is written as text (tag = "R${suffix}" is "R0p350"); a variable's value may reference another variable; a $ in any other form is plain text |
The references are replaced right after the file is read and before any
check, so every check and message above applies to the replaced value, and
refine.json records the replaced values. [vars] is never reported as an
unknown table. A reference to a name [vars] does not declare, a cycle of
references, and a [vars] entry whose name or value is not one of the above
are warned (an UnknownKeyWarning naming the key, the reference and the
declared names) and the value is read as written, so its own check then
decides; --warning-refusals refuses them.
Each of these is refused naming the file, the table and the key, and listing
the known keys: a table or key the list above does not hold, a family the mesh
does not hold, a family table (except keep or grid_auto) with neither factor nor parallel_factor nor
normal_factor, and parallel_factor or normal_factor on a family whose
method is "remesh" (unless --accept-remesh is given, which remeshes a family
whose grid is not recovered, with a warning). Under --accept-unknown a table
or key the list above does not hold, a family table and a [components] member
the mesh does not hold are warned and skipped instead. In [components], a member the
mesh does not hold, a family listed in two components, and a component named
after a family that is not one of its members are refused naming the component
and the family. A [[perimeter]] table that states no file, a file that is
missing, a node that matches no vertex of the mesh and a list that joins no
edge are warned and skipped.
A family with no table, or with method = "keep", is copied unchanged unless
continuity requires it to change. Keep takes no factor; factors in keep and
grid_auto tables are warned and skipped. A keep grid joins touching refined
grids at factor 1 and follows only the bands whose counts change. Declared
families lead before keep families. If every band retains its source count,
its vertices and faces are copied without resampling. Otherwise its
refine.json family record adds continuity with directions (parallel,
normal or both), bands (P/N labels), and because (lead family names).
A keep mixed family changes only in the FR-934 band beside a changed curve;
its record adds continuity: {"band": "remeshed", "because": [families]}.
Beside no changed curve it is copied unchanged.
Touching grids are cut into patches along their reference lines (trailing edges, listed perimeter lines, or an assumed longest side), but only along the reference edges themselves: an edge whose two ends are reference nodes without being a reference edge, such as each edge across a one-element strip between two reference lines, cuts nothing. Such a strip, with or without a table, keeps its neighbours whole along the stations; with no table it follows its band's parallel count and keeps its one interval across (FR-3399).
Prepare-to-refine uses this same planner with the OBJ and node list it writes.
Within each grid-connected group, the greatest total length of parallel sides
selects governing_parallel and the greatest total length of normal sides selects
governing_normal; ties retain source order. Only families whose every arc has
propagated directions become explicit method = "grid_auto" tables, preceded by
a # follows <parallel lead> (parallel) and <normal lead> (normal) comment.
Governing tables name their bands in a # leads P1, N2 comment.
Other grids retain explicit tables, and a
candidate the planner cannot refine as a grid here is declared auto with a
comment, including a tube excluded from a neighbouring sheet's layout.
The tag of a level¶
The level is named <stem>_<tag> unless [refine] filename names it. The tag
is [refine] tag when the file states one, used as given. Otherwise it is
built from the factors, p standing for the decimal point:
| refinement | tag |
|---|---|
| factor 2 on every family | R2 |
| factor 0.5 on every family | R0p5 |
| normal 1.5 and parallel 0.7 on every family | R1c1p5s0p7 |
factor 2 on Wing only |
R-Wing2 |
Wing at 2 and Tip at 1.5 |
R-Wing2-Tip1p5 |
| a selection whose built tag is longer than 32 characters | R-<n>fam-<hash> |
a selection using governing = true or method = "grid_auto" |
R-<n>fam-<hash> |
The letters of a built tag are c for the normal factor and s for the
parallel factor, the letters their earlier names gave, so a level keeps its
name across the rename of the keys.
A factor in a built tag shows at most 6 significant digits (2.0000001 and
2 both read 2, 0.0000123456 reads 1p23456e-05); refine.json holds
the exact factor under specs. For a short tag without a hash, two otherwise
identical selections whose factors agree to 6 significant digits build the
same tag, and the second level is refused as an existing one unless
--overwrite (overwrite=True) replaces it; give a [refine] tag to keep both.
Summary tags hash the exact factors, so matching rounded spellings do not
imply matching summary tags.
A built tag of at most 32 characters is the tag above unless the selection
uses a governing family or grid_auto. Those selections and longer tags use
R-<n>fam-<hash>, at most 20 characters for any selection: <n> is the number
of selected families and <hash> the first 8 hexadecimal characters of the
SHA-256 of the canonical selection, encoded as UTF-8. The canonical selection
holds one line per selected family, in the source's family order, joined by a
newline: the family's name, then every option its table states that changes
the level (factor, chordwise for the normal factor, spanwise for the
parallel factor, method, elements, governing, governing_parallel, governing_normal) as key=value pairs sorted by key and
separated by single spaces, for example Wing chordwise=1.5 factor=2
spanwise=2. The same selection gives the same tag on every run and machine,
and two selections that differ in a family or an option give different
canonical selections; the 8-character digest tells them apart and is not a
guarantee against collision. For such a tag refine.json lists the selected
families under tag_selection, in the source's order. A short tag tells
apart a family's factors only: two selections that differ only
in method or elements share it. A family name that cannot be part of a
folder name is refused when the tag is built from the names, and not when
the tag is the summary and the hash.
The files of a level¶
The level folder is <out>/<stem>_<tag>/ (--out, or out_dir in Python;
[refine] filename replaces <stem>_<tag>), and every file in it is written
through the package's one text route, without a carriage return.
| file | written when | content |
|---|---|---|
<stem>_<tag>.obj |
always | the level, its families in the source's order (a component in place of its members) |
<stem>_<tag>.te.txt |
a [[perimeter]] list exports trailing edges |
one mid-point per trailing-edge edge of the new mesh |
<stem>_<tag>.<family>.te.txt |
a [[perimeter]] list exports trailing edges or names te_families |
the same points for one output family |
<stem>_<tag>.nodes.te.txt, <stem>_<tag>.<family>.fs.te.txt |
the level has a trailing edge on a quad family | the trailing edges of every quad family, and of each, in the format the solver's wake-edge import reads when the FSM is marked |
<stem>_<tag>.nodes.txt, <stem>_<tag>.<family>.nodes.txt |
the same | the same trailing edges as ANSA node lists (Id, Name, X, Y, Z), the ids the level OBJ's vertex numbers |
<stem>_<tag>.fs.nodes.txt, <stem>_<tag>.<family>.fs.nodes.txt |
the same | the same nodes (end vertices, not mid-points) in the solver file's layout, in the level's unit; a boundaries file's wake_termination_nodes names one to mark them as wake-termination nodes |
<stem>_<tag>.obj.boundaries.toml |
the source has a sidecar, or a perimeter list exports trailing edges | updated inventory and preserved declarations, with component renames only |
<stem>_<tag>.refine.json |
always | what was done to each family |
<stem>_<tag>.audit.json |
always | the audit of the level against its source |
The trailing edges the level writes come from the [[perimeter]] lists of the
refine file; there is no fallback to marking declarations or to a
<stem>.te.txt beside the mesh. Relative paths resolve beside the refine
file, and the mid-points are written in the unit of the mesh ([import] units
of the OBJ sidecar, else metres).
The source sidecar is <mesh>.obj.boundaries.toml, falling back to the legacy
<mesh>.boundaries.toml. Refinement preserves its declarations, comments and
formatting, except component renames. It never selects the new points file for
marking: edit the level's [trailing_edges.<label>] file yourself. When a
perimeter list exports the trailing edges and the source declares none, the
level's boundaries file declares one [trailing_edges.<component>] table per
component, with file = "<level>.<component>.te.txt" and type = "STANDARD",
for you to edit before mark-boundaries; a source file that declares its own
trailing edges keeps them. With export_te_per_family, each
<level>.<family>.te.txt can be named by one such entry, with your chosen type
and fs_build.
refine.json states schema_version (2), source, level, config (the
refinement file read, or null), trailing_edge_files (the level points path,
or null), specs (the factors of each family), tag_selection (the selected
families, for a tag shortened to the summary and the hash),
components, ignored_families_tables (the families whose file table was not
read for its factors) and faces (the face count of each family of the output).
Each grid family also has directions, with integer parallel and normal
counts, and provenance, a histogram of the retained layout arc records.
An identical arc orientation shared by two patches of the same family counts
once; conflicting local orientations remain separate records. Standalone native
grids outside a planned layout have zero counts and an empty histogram. Copied
and remeshed families have no grid direction fields. These are counts of retained
arc records, not mesh intervals.
The provenance keys are listed_te, longest_side, sheet_index,
propagated_from:<family>, own_orientation_conflict and
own_orientation_unlinked.
The top-level layouts list records each layout once, with its families in
source order and its bands. Each band has a layout-local integer id, its
arcs (layout-local arc indices), the selected lead family and that lead's
local direction (parallel or normal). These are the planner's decisions
used for counting, retained even when all offered counts agree.
Each band also records its count, label and dominant_arc. Parallel bands
are labelled P1, P2, and so on; normal bands are N1, N2, and so on.
Within each direction, labels follow the lead family's source order, then
its arc order. The dominant arc is the lead family's arc that supplied the count.
Every arc in a band carries the same label in the planner, so repeated runs
on the same source and declarations give the same labels (FR-3300).
Its families entry holds, per family:
- a grid:
method("grid"),reason(the layout recovered),layout,ends,split,grid(the node counts before and after),intervals(chordwisefor the normal direction andspanwisefor the parallel one, before and after),faces(before and after),order("sweep"when the source's sweep was kept,"nearest"otherwise) andinterfaces(the nodes of each curve it shares); a grid whose reference perimeter came from a node list or from the mesh addstrailing_edge("perimeter"or"detected", where its trailing edge came from) andtrailing_edge_points, the mid-point[x, y, z]of each edge of that line on the source, which the audit of the level reads to count the source's trailing-edge chains; - a smooth tube is a grid whose circumferential direction is a periodic cubic
spline, with the seam at the lowest source node index of its first end
station and no trailing-edge points; a multiblock family reports
layout"multiblock",patches(their number),blocks(each patch'srowsandcolumnsbefore and after),arcs(the patch sides),order("nearest") andkept_sides(each patch side a factor below 1/m kept:patch,side,source_intervals,intervals,centroid,bbox_min,bbox_max; empty when none);--paralleland--normalapply to each patch side by its direction against the family's reference perimeter (parallel within 45 degrees of it, measured as the length-weighted mean of the absolute cosine against the nearest perimeter segment), each patch told by the pair of opposite sides that runs more along it (shared sides that disagree keep each patch's own orientation, warned per patch), and across a patch side the level is continuous, not smooth; - a grid resampled with the grids it shares nodes with (one layout) reports
grouped_with(those families), its ownlayout("sheet"or"multiblock"), and thepatches,blocks,arcs,kept_sidesandfacesof its own part of the layout, withorder"nearest"; - a remeshed family:
method("remesh"),reason(why no grid was taken),elements,quads,trianglesandquad_share(the element mode and its counts;elementson a grid says the key was ignored), the families remeshed together, the curve edges kept, the median ratio of edge length to target, the interfaces rebuilt on a grid's nodes, and the face counts before and after; a family remeshed at factor 1 that shares a curve with a refined side addsshared_edge_target_m, the minimum, mean and maximum of its target length at its nodes on that curve, in metres, for example{"min": 0.0021, "mean": 0.0034, "max": 0.0052}. The mesh's[import] unitssupplies the conversion. If no convertible mesh unit is stated, the record usesshared_edge_target_mesh_unitsinstead, with lengths in the source coordinates; - a neighbour the two-layer band would cover whole:
method"rebuilt_whole",reason"band_covers_family",bandandfaces(both the family's face count in the source), remeshed whole at factor 1 as if its table statedfactor = 1andmethod = "remesh", with one warning naming it; - a family the refinement does not change:
method"copied", or"unchanged"with the face count of its two-layerbandwhen a grid's nodes on a shared curve changed, andshared_edge_target_mas above.
A key may be added to refine.json or audit.json without changing
schema_version; a key is removed or changes type only with a new one.
refine.json uses schema version 2, which carries the conditional target
unit keys above; the audit schema remains version 1.
Reference perimeters and trailing edges¶
A grid family has a reference perimeter: the grid line its two directions are
measured from. --parallel runs along it and --normal across it. The line
is found, in this order, from the [[perimeter]] node lists of the refine
file, then from the mesh. A node list is saved from an ANSA SET node window
(Id, Name, X, Y, Z); each listed node is matched to the mesh vertex within a
quarter of that vertex's shortest edge, so rounded coordinates match. A family
takes the first line that recovers its grid, the exported lists first: the
whole of a list on the family, then each connected piece of it, then each
piece cut at its corners, so a trailing edge and a root listed together are
told apart. An incomplete list on a sheet is completed from the grid line
every listed edge lies on, with a warning naming the edges added.
- Trailing edge. A list with
export_te_per_family = trueis a trailing edge: the level writes its mid-points as<level>.te.txtand<level>.<family>.te.txt. A list withte_familiestakes, for each named family or component, its rearmost line: the listed edges its surface lies forward of, forward being againstaft(default +x), within 60 degrees, or within 78 degrees where the upper and the lower surface fold at a sharp trailing edge. That line is also the first tried to orient the family's grid. - No trailing edge.
--paralleland--normalneed none. A grid family, sheet or multiblock, with none listed takes the longest side of its boundary as its reference line, warns which, and does not write it as a trailing edge. - Warnings. A node that matches no vertex, a list that is missing or
joins no edge, and a
te_familiesname that matches no family are warned and skipped; the refinement goes on. - Record. The family's entry of
refine.jsonholdstrailing_edge("perimeter"or"detected") andtrailing_edge_points.
The pyfs-mesh commands for trailing edges¶
Three commands of pyfs-mesh prepare the lists and files above.
None needs a solver.
pyfs-mesh convert2midnodes NODES OUTPUT [--unit U] [--per-family MESH] [--accept-empty] [--overwrite]
pyfs-mesh identify-te OBJ [NODES] [--families A,B] [--max-angle DEG] [--aft X Y Z]
[--unit U] [--simulation-unit U] [--accept-empty]
[--all-families] [--overwrite]
pyfs-mesh prepare-to-refine OBJ [--max-angle DEG] [--aft X Y Z] [--overwrite]
| command | what it writes |
|---|---|
convert2midnodes NODES OUTPUT |
a .te.txt from an ANSA SET node list in any node order: the nodes are ordered along their lines, a long jump starts a new line, and each neighbouring pair gives one mid-point. --unit states the coordinates' unit (default METER). No mesh is needed. With --per-family MESH it writes <OUTPUT stem>.<family>.te.txt for each family of the OBJ instead, from the mesh edges joining two listed nodes. With --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 |
identify-te OBJ [NODES] |
the trailing edges of the OBJ in the format the solver imports: <obj stem>.nodes.te.txt for every quad family (quadrilaterals at least 80 percent of its faces; the others are warned and left out, and --all-families maps them too), or <obj stem>.<family>.fs.te.txt for each family named by --families, each beside the package's points file (<obj stem>.te.txt or <obj stem>.<family>.te.txt) that a boundaries file's [trailing_edges.<label>] file reads. Without NODES they are found from the mesh: each family is cut at its sharp edges into pieces, a piece's perimeter is its boundary and its sharp edges, and on the one perimeter of each piece that reaches furthest aft the rearmost edges that lie within --max-angle (default 45 degrees) of the plane across --aft (the yz plane by default) are kept, where the upper and the lower surface meet at a sharp trailing edge that fold is kept to the tip of a twisted blade (its faces within 78 degrees of forward) and the contour a closed tip cap meets the surface along is left out; a line of the family's perimeter (its boundary and sharp edges, cut where they branch, at a grid patch's corner and where they turn by more than 60 degrees) found for more than half of its edges is taken whole, its edges within --max-angle of the plane across --aft; the nodes are also written as <obj stem>.nodes.txt, the node list a refine file reads. With NODES, an ANSA SET node list, they are taken among its lines, on a refined level with merged families too. --aft is the nose-to-tail direction (default +x); --unit is the coordinates' unit (default the mesh's, else METER) and --simulation-unit the unit the solver reads the file in (default --unit). With --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 |
prepare-to-refine OBJ |
an optional first step of a refinement, from any OBJ: <stem>_patches.obj with every family cut at its sharp edges into <family>_<NNN>_grid patches (the quadrilaterals the refinement recovers as a grid) and <family>_<NNN>_mixed ones, numbered within the family from the largest extent along y; <stem>_patches.refine.toml with every patch at factor 1 (method = "grid" or "remesh"), [components] putting each family back together and a [[perimeter]] with te_families; and <stem>_patches.nodes.txt, the rearmost line of each grid patch, its edges within --max-angle of the plane across --aft (the yz plane by default), as an ANSA SET node list. The source is not modified; an earlier run is kept unless --overwrite is given |
In Python, prepare_to_refine of pyflightstream.workspace is the function
behind prepare-to-refine (The Python API).
What the audit judges¶
The audit reads the mesh, and the source when there is one, with numpy alone. A GATE is judged on its own terms, a RELATIVE CHECK compares a 95th percentile (linear interpolation between ranks) of the mesh with the source's, and a FIGURE is reported and never judged.
| gate | fails when |
|---|---|
| G1 | an edge is shared by more than two faces, two nodes sit at one position (within 1e-9 of the size, the diagonal of the bounding box), or a face has zero area (faces_of_zero_area): below 1e-12 of the size squared, or below 1e-3 of the median face area of its own family, so a sliver of a fine family is not hidden by the size of the whole mesh. A face with an angle under 1 degree is counted (faces_under_1_degree) and judges nothing, since a source's own trailing-edge or pole triangles may be that sharp. Each degenerate face, of either kind (the rule a remesh repairs by), is listed in audit.json under degenerate_faces |
| G2 | two neighbouring faces have opposite orientation, or a closed shell, including one spread across families, does not enclose a positive volume |
| G3 | the open boundary loops of the mesh are not the source's in number and in the opening each closes: a level loop matches one source loop, one to one, when every node of each lies within a quarter of the source loop's extent (its bounding-box diagonal) from the other's polyline |
| G4 | a trailing-edge point lies on no mesh edge, two points lie on one mesh edge (points_sharing_an_edge), the trailing-edge chains are not the source's in number, or a chain of the source ends where no chain of the level ends (a shortened line); the lines' total lengths are reported, not judged |
| G5 | two families that shared nodes in the source share none |
| G6 | a grid family written at factor 1 no longer has the source's faces in coordinates and order |
| relative check | fails when the 95th percentile exceeds |
|---|---|
| equiangle skewness | the source's plus 0.05 |
| quadrilateral warp | the larger of the source's and 10 degrees |
| size growth (the area ratio of two neighbours, across edges whose dihedral is below 30 degrees) | the larger of the source's and 2 |
Each check is made per family and on the whole mesh. A check is relative because the source is the accepted mesh: where a source already exceeds a practice, the limit is the source's own value (the larger of the source's and the practice's, as the table says), so the level is judged not to be worse than its source, and the audit still reports that the source is beyond the practice. Reported and never judged, per family and on the whole mesh: the face, triangle and quadrilateral counts, the aspect ratio (95th percentile and largest), the faces beyond the pre-processor's quality thresholds (aspect ratio above 8 and above 20, skewness above 0.5, warp above 10 and above 45 degrees, a quadrilateral angle under 45 degrees, a triangle angle under 30 degrees), a face quality ratio (a face's inscribed radius against its neighbours', the solver's user's manual calling below 2 good; the manual gives no formula, so the package's is its own reading), the faces whose aspect ratio exceeds 50, the trailing-edge triangles whose aspect ratio exceeds 50, and the faces lying on the plane y = 0.
Without --against only G1, G2 and G4 are judged and the rest is reported.
G6 is judged only for a level refine wrote, which names its grid families at
factor 1 (and each component whose every member is one) in its refine.json
under unchanged_grids; audit-mesh reads them from the level's
refine.json when it names that level and the source given with --against,
so a saved level is re-audited as refine audited it. The record's
trailing_edge_files selects its level and source points independently of
marking declarations. G4 reads the same
record for a family whose trailing edge refine detected: the source's chains
are the connected chains of its listed edges and the detected edges the record
lists under trailing_edge_points, together, so a detected line that a listed
edge continues is one chain.
audit.json holds schema_version, mesh, source, passed, gates and
checks (each with its name, family, verdict (pass, fail or
not judged) and values) and figures (per family and (whole mesh)). A
failed gate or check is also a warning: audit gate G3 failed on (whole mesh):
open_loops 2, source_open_loops 1, unmatched_loops 1. degenerate_faces
lists each face G1 counts degenerate: its family, its face index in
that family (from 0, in file order), its centroid, its area_ratio to
the family's median face area and its min_angle_degrees, for example
{"family": "F", "face": 11, "centroid": [3.5, 3.3e-07, 0.0], "area_ratio": 2.03e-06, "min_angle_degrees": 0.000115};
it is empty when there is none.
The Python API¶
Each of these is imported from pyflightstream.workspace.
| name | what it is |
|---|---|
refine_mesh(mesh, factor=None, *, families=None, parallel=None, normal=None, config=None, out_dir=None, overwrite=False, accept_remesh=False, accept_unknown=False, force_factors=True, progress=None) |
writes a level; parallel and normal are the two directional factors; accept_remesh remeshes with factor a family given a directional factor whose grid is not recovered, with a warning; accept_unknown warns and skips the entries --accept-unknown names; progress is called with one line per stage and family (the command prints them to stderr); returns a RefinedMesh; raises InputArtifactError on every refusal |
RefinedMesh |
frozen: folder (the level folder), obj (its OBJ), files (every file written, the OBJ first), report (the families entry of refine.json) and audit (the MeshAudit of the level) |
prepare_to_refine(mesh, *, max_angle=45.0, aft=(1.0, 0.0, 0.0), overwrite=False) |
the function behind pyfs-mesh prepare-to-refine: writes the patches OBJ, the refine file and the node list beside the source and returns a PreparedMesh |
wake_edges.write_trailing_edge_midnodes(source, path, *, unit="METER", overwrite=False) |
the function behind pyfs-mesh convert2midnodes: writes one mid-point per neighbouring pair of the node list's lines, under a line naming unit, and returns the path |
wake_edges.write_trailing_edge_midnodes_per_family(source, mesh, path, *, unit="METER", overwrite=False) |
the function behind convert2midnodes --per-family: one points file per family of mesh, the edges whose two ends are listed |
wake_edges.write_trailing_edges_identified(mesh, source=None, families=None, *, aft=(1.0, 0.0, 0.0), max_angle=45.0, unit=None, simulation_unit=None, overwrite=False, accept_empty=False, all_families=False) |
the function behind pyfs-mesh identify-te: writes the solver node files, the package points files and, without source, the ANSA node list, and returns their paths; without families it maps the quad families only, every family with all_families |
wake_edges.quad_families(families) |
the names of the families, a mapping of name to faces, whose faces are quadrilaterals for at least QUAD_FAMILY_SHARE (0.8) of them |
PreparedMesh |
frozen: obj, config (the refine file) and nodes (the node list) written, and patches, the patch names of each original family in order |
audit_mesh(mesh, *, against=None, unchanged_grids=()) |
audits an OBJ, writes <stem>.audit.json beside it and returns a MeshAudit; unchanged_grids names the grid families G6 compares (default: those the level's refine.json lists) |
MeshAudit |
frozen: mesh, source, gates and checks (each item with name, family, values, verdict, passed and line()), figures, path, degenerate_faces (as in audit.json), passed, failures, as_json(), summary() and write_csv(path); the static method MeshAudit.files_read(mesh) returns the files an audit of mesh reads, each with what it is (the OBJ, its boundaries file, its trailing-edge points files), a file that does not exist included |
derive_thin_blade(geometry, *, root_offset, overwrite=False, boundary=None) |
the function behind pyfs-mesh degenerate: derives the thin blade of a blade mesh (an .fsm or an OBJ), writes it beside the source and returns a ThinBlade; thin_blade_path gives the name it writes |
Limits of the refinement¶
- A grid that mixes cells is remeshed. A lateral grid that mixes
quadrilateral and triangulated cells is remeshed under
method = "auto"and refused undermethod = "grid"naming the reason; a family of quadrilaterals only is recovered as one grid, a smooth tube or a multiblock. - Quad-dominant levels can warn. The audit's growth and skewness checks read a quadrilateral beside a triangle as a size jump and a paired rhombus as skewed, so pairing can raise both figures; the tested two-family plate at factor 2 warned on both. A warning comes only from a figure above its limit; read the reported values.
- A multiblock patch side is continuous, not smooth. No spline crosses it.
- A remesh writes no degenerate face it can repair. A source polygon is
cut into triangles with no sliver where one can be avoided: a quadrilateral
along the diagonal whose smaller triangle is larger, a polygon whose fan
holds an angle under 1 degree from its best corner. After the remesh, a
triangle whose area is below 1e-3 of its family's median face area, or whose
smallest angle is under 1 degree, has its longest edge flipped with its
neighbour of the same family when that widens the worse of the two, else its
shortest edge collapsed. A node on an open boundary, a trailing edge or a
[[perimeter]]line, a ridge, an interface, a corner (where a curve ends, branches or turns), or fixed (shared with a family outside the remesh) is never moved nor removed: a face held by such nodes is left, listed by the audit underdegenerate_faceswhether its area or its angle made it degenerate, andrefinewarns with their count and theaudit.jsonpath; inspect those faces, or re-cut the source near them. The repair never touches a family with no degenerate face. - Factor 1. Under
method = "auto"a family at factor 1 is copied; a family that statesmethod = "remesh"is remeshed at any factor. - A component is audited against its members. A level written with
[components]is compared with the union of the members in the source, read from the level'srefine.json. - A triangulated tip cap is not part of a grid. A cap is part of a grid only
when it is a fan of triangles around one pole node or a zipper. Give any other
cap a family of its own in the pre-processor and merge it back with
[components], as in A solid blade kept structured by dummy families. - Grids that share nodes are resampled as one layout. Grid families of
quadrilaterals that touch, sheets and multiblock families, are cut together
into four-sided patches, the curves where two families meet among the patch
sides, so each shared curve is resampled once and both families hold its
nodes. Its interval count is
max(1, round(f m))from each family holding it,fthe family's factor in the curve's direction; two counts that differ are refused naming both families, the curve's end nodes and both counts. A family is refined as the structured grid it came from (one ANSA macro of a Nastran file is one such grid): an extra node a neighbour holds on the perimeter between them does not split it into more patches; its own corners, ridges and trailing edges and the curves it shares edge for edge with another grid family do. A cut no patch corner needs is joined across before counting: a line between patches of one family, with no ridge, trailing edge or shared curve on it, whose ends lie on the boundary where the patch sides run straight on, as from the nodes a family shares with a neighbour that holds an extra node between them, in one station interval or in every one. Such a family is counted over its whole run of intervals and coarsens like the same family beside a matching neighbour; the neighbour's extra nodes stay where they are. A tube, a family with triangles, and touching grids whose union has no layout of four-sided patches join none: of grids that share nodes the first in the source's family order is then a grid and a later one is remeshed, or refused naming both undermethod = "grid". - A level's boundaries file states the level's inventory. When the source's
boundaries file states
mesh_faces,boundary_facesormesh_sha256, the level's states each of them counted in the level's OBJ as written (per boundary in the level'sboundariesorder, after[components]) and its sha256, and its header comment names that sha256; a source file without them gives a level file without them. - Offline verification, not validation. The tests verify the geometry of a level offline. Whether a level gives the solver the result of a mesh made at that size in the pre-processor is a licensed comparison, reported for one rotor case.
Mesh format policy¶
The library's mesh seam is deliberately narrow: OBJ in and out. READING a mesh is a runtime capability through trimesh, because the trailing-edge extraction sits on the default path of a rotor campaign and a capability behind an extra makes the library promise what a default install cannot do. The geometry gate queries through the SPATIAL INDEX, rtree's bounds tree and scipy's kd-tree, both runtime dependencies as well. Two standing decisions bound any widening:
- More formats never enter through raw third-party APIs. If a workflow needs formats beyond OBJ, meshio joins as a conversion backend behind a project-owned adapter (decision D8): the adapter exposes only what the workflow needs, a license evidence card is committed at adoption time like every dependency, and validity checks stay with trimesh. The dependency assessment refused meshio on the committed weight budget, at five new distributions and 12.26 MiB against limits of one and five, one of them a syntax highlighter. Its route into this package is still through the adapter and still only if a workflow needs it.
- Until that need materializes, converting external formats to OBJ with your own tooling is the supported route.
The mesh frame¶
pyflightstream expects every mesh in x aft, y right, z up. A mesh built in another
axis-aligned right-handed frame declares it in the geometry's boundaries.toml sidecar,
as the optional top-level key mesh_frame, the direction the mesh's own +x, +y and +z
point to:
mesh_frame = ["forward", "left", "up"]
The words are aft, forward, right, left, up and down, in any case, and the
three name three different axes. An absent key is ["aft", "right", "up"], with no note.
- A declared frame other than the expected one is converted before the solver reads the
mesh: the vertices and normals of the OBJ are mapped into a copy in the simulation's
mesh_frame/folder, with the face order, the group names and the group order kept, and the solver opens that copy. The library file is not rewritten. - A left-handed declaration (a mirrored mesh) is refused, naming it.
- A saved simulation (
.fsm) that declares another frame is refused, naming the declaration: the solver's own file is not rewritten offline. So is a mesh format other than OBJ. pyfs-mesh mark-boundariesand the FSI route do not convert a mesh to the expected frame yet: an OBJ that declares another frame is refused there at plan, naming the declared and the expected frame.- The run record carries
mesh_frame(declared,matrix,source_sha256,converted_sha256). - Reference points (the moment point, rotor hubs and axes, probe lines) are always stated in the expected frame.
The definition is The mesh frame.
The four rotor facts a reference artifact once carried¶
The reference artifact refuses the retired fields rotation, blade_travel,
rpm_sign_installed and rpm_sign_isolated. The speed a row states is a
MAGNITUDE and the hand is rpm_sign on that rotor's own block, beside its
axis. The upgrading page
explains the historical row-sign convention. The argument that
related them is kept here, because it is what a reader setting up a new
rotor has to work out once. For the isolated-rotor reference case:
- The frame is x aft, y starboard, z up. On a port propeller, +y is inboard.
blade_travel = "inboard_down"is the datasheet's side-independent vocabulary: the blade at its inboard azimuth (the +y side of the disc) travels towards -z. That needs an angular velocity of negative sign about +x, which is the "positive rpm is inboard-up" sentence the datasheet states the other way round.rotationis the viewed-from-behind sense. An observer behind the aircraft looking forward has screen-right +y and screen-up +z; a point at screen-right moving down reads clockwise. So inboard-down on a port propeller is clockwise from behind; if the meshes' port and starboard assignment is the other way, it is counterclockwise, a one-word edit.rpm_sign_installed = -1was that sign about +x for the installed meshes, andrpm_sign_isolated = 1the sign for the isolated meshes, which were built the other way round; which of the two applies is a property of the mesh a row opens, which is why the row states it.
None of this was ever read by an emitter, and the sense of rotation does not determine the sign of the rotor speed on its own: the sign is the mesh's, the sense is the propeller's, and the row is where the two meet.
Applying named boundary declarations¶
Run pyfs-mesh mark-boundaries <mesh>.obj to preview the
declarations, then add --apply on a licensed machine. The verb requires a
current OBJ inventory, explicit [import] units, and fs_build. Each named
file entry becomes one import; detection remains STANDARD only. Source points
are matched before import operations and carried through their scale, rotation,
translation and mirror transformations in metres. Explicit termination nodes
use the written OBJ vertex indices and are refused after vertex-changing
operations. Explicit termination nodes are selected and marked before the
merges of merge_into. A mark made before SURFACE_COMBINE is saved on the
same node after it on FlightStream 26.124, 26.125 and 26.127, measured by the probes of
reports/compat/CMP-26124_2026-10-26_marking.yaml,
CMP-26125_2026-10-26_marking.yaml and CMP-26127_2026-11-06_marking.yaml, so the two are marked together on those
builds; on any other build explicit nodes with a merge_into are refused,
naming those builds.
The output .fsm.boundaries.toml contains only inventory fields and
marked_by; it carries no import or marking declarations. The original
.obj.boundaries.toml remains the authoring source. The matrix refuses
declaration tables; the marking verb refuses unnamed forms with their
named-table translation.
What this policy is not¶
It is not a promise to wrap the GUI. Steps stay GUI-only until the solver's scripting interface documents a command for them; when that happens, the command enters the database with its citation and the step graduates from this page to the reference.
Matrix geometry¶
Refinement inspection PDFs¶
prepare-to-refine --visual-inspect writes <stem>_patches.inspect.pdf beside
the prepared OBJ. refine --visual-inspect (API refine_mesh(visual_inspect=True))
writes <level>.refine-governors.pdf beside the level's refine.json and includes
it in level.files; the name differs from the <mesh>.inspect.pdf that
visual-inspect writes, so neither replaces the other.
Preparation groups pages by original family; refinement groups them by output
family or component. Each has a colored patches page followed by a directions
page in the same top, front, side and isometric views.
The refinement PDF opens with its governor pages, read from the layouts bands
and component_governors of refine.json. A summary page tabulates each
governing family, its direction, its bands with their counts, its factor in that
direction and the number of families it governs. Factor comparison pages follow
it, at most 35 rows each, sorted by family: one row per refined family and
direction with the family that governs it (itself when it leads), its requested
factor (spanwise for PARALLEL, chordwise for NORMAL, else factor), the
governor's factor, its intervals before and after summed over its patches, the
achieved factor (intervals after over intervals before, 3 decimals) and its faces
before and after. The direction of each patch axis is the planner's direction of
the arc along it; an axis without one shows ?. A row is flagged in bold red with
* when some patch's intervals after differ from its intervals before times the
governor's factor by more than half an interval, which rounding to whole intervals
cannot explain, for example a factor raised to the least the grid allows. A family
without interval axes (copied, unchanged or remeshed) is one row with direction
- and its method under Governed by. One page follows per governing
family and direction, in name order, parallel first: the whole mesh in faint grey
with grey perimeters, the governing family filled in a strong color, and every
family it governs in that direction filled in a color of its own. The page title
names the PARALLEL or NORMAL direction; the views carry no labels, and the legend
names each colored family, the governing one first in bold. A family is governed when
one of its patches holds an arc of a band the governing family leads, or, under
keep_within_component, when it is another refined grid of the component the
governing family governs; its component does not matter. The title states
"
Direction pages have light grey faces, faint mixed patches, blue parallel arcs and orange normal arcs. The reference is the trailing edge, else the longest side. Directions and P/N labels come from the planner. A band's dominant arc is thicker and its label bold and framed; following arcs carry the same label. The legend names governing patches and what they lead. Refinement annotates continuity changes from its saved record.
An InputArtifactError after refinement reads the mesh attempts to write
<stem>.refine-refusal.pdf beside the source, even without --visual-inspect.
Its first page shows the refusal and the whole mesh, highlighting the families
and red nodes or points supplied by the refusal. Per-family pages follow.
Absent location data highlights nothing. The error ends with the PDF path;
if drawing fails, a warning accompanies the original refusal. No level folder
is created by a refused refinement.
A matrix row names the saved simulation that marking produces. The order in which planning reads its inventory, the stale-input refusals and the raw OBJ imports kept by FSI rows are in matrix geometry.
Repitch accepts a reference installation-axis table, for example
axis = { shaft = "X", vector_wrt_global = [2, 0, 0] }. It normalizes the
physical shaft and projects blade1.zero into its disk plane, using the same
frame convention for automatic pitch axes, the hub chart and wheel checks.
A datum parallel to the shaft cannot define the blade plane and must be fixed.