FSI workspace inputs¶
Campbell study before a run¶
Compare structural natural frequencies with rotor speed without a solver run:
pyfs-workspace fsi campbell f001 --rpm 0 600 3 --modes 2 --workspace study
This reads study/inputs/fsi/f001.toml through the same calibrated beam binder as
planning. Supplied and calculated models work; external structural programs have
no beam model for this study. START must be nonnegative, STOP greater than START,
and COUNT an integer of at least three. Existing products require --overwrite.
The command lists post/fsi/f001/campbell.csv, southwell.csv and campbell.json.
The Campbell table is the diagram data: RPM, angular speed, mode number, family,
frequency in Hz and frequency per revolution (NA at zero speed). Southwell fits
the first mode of each family available at every speed. Missing families are named
on the console and in the JSON, rather than fitted across a gap. The JSON records
the input SHA-256, sweep, file names and linearly interpolated 1 through 6 Omega
crossings between successive samples of matching family-labelled modal slots.
This interpolation does not track eigenvectors through modal exchanges.
These are structural model only, no aerodynamic damping results, not a coupled
stability prediction. The CLI example is exercised with a synthetic supplied beam
in test_p0440_campbell_cli_writes_workspace_study.
Structural products after a run¶
Ordinary pyfs-matrix post writes structure/<point>_deflection.csv for
admitted coupled points. Rows contain blade number, station radius in metres,
deflection in metres and elastic twist in degrees. The decoder uses the
recorded configuration's node ordering and embedding, undoing the wing or
rotor frame before decoding each station's translations. The configuration
digest must match the run's recorded input. Direct morphing uses the applied
station_displacements_m stored in state.json, whose configuration digest
must also match. It never decodes mesh-vertex rows as structural stations.
An older direct state without these station rows produces a named skip.
A coupled unsteady_rotor point that exported its section cuts every step
also gets structure/<point>_placement_check.csv: per blade and step, how far
the cuts lie from the blade at its prescribed azimuth and at its import
azimuth, and whether the step is misplaced; post warns, naming the misplaced
steps. Its definition of record is
the placement check of a coupled blade.
When present, the recorded fsi_convergence_log.csv is retained as
structure/<point>_history.csv. Products record source digests. Keep the
coupled run's working folder available for post; no structural solve is
repeated to reconstruct missing output. The workspace regression example
uses a tip deflection of 0.008 m and tip twist of 0.016 radians and checks
the resulting CSV through the ordinary campaign post stage.
Structural quantities before a run¶
Calculated [sections] accepts exactly one contour source: sections_m
(a physical contour at each station), airfoil (one unit-chord contour),
or naca (a four-digit designation such as "0012"). Airfoil and NACA
contours are scaled by each station's chord_m and placed about
pitch_axis_chord_fraction (default 0.25). chord_panels controls NACA
panels per side (default 40). For example, replace sections_m in the
calculated input with naca = "0012" to use the same symmetric section
at every station. The workspace tests resolve and plan both contour forms.
Run pyfs-matrix plan matrix.fs --workspace . --fs-version 26.124 after
selecting an FSI input. Each coupled point in plan.json has an fsi object:
station_properties, natural_frequencies_hz, mode_kinds,
excitation_frequency_ratios, and warnings. The properties are the effective
calibrated properties; a quasi-steady sector uses the row's rotational speed.
The existing rotating beam model includes centrifugal stiffness. No licensed
solver is launched by this calculation.
The frequency ratios cover once-per-revolution and blade-passing excitation.
A ratio above 0.3 warns that a quasi-static structural response may be
inadequate. This screen does not establish dynamic stability or native
coupling accuracy. A fixed wing has zero rotational excitation. A uniform
four-metre cantilever with bending stiffness 200000 N m2 and mass per length
3 kg/m has a first bending frequency of approximately 9 Hz; quadrupling
its bending stiffness doubles that frequency. The workspace regression test
executes this example through plan_campaign.
The workspace calibration example creates complete calculated and supplied inputs for the same synthetic solid blade, then checks their equivalence with one explicit matrix factor.
Place one structural configuration in inputs/fsi/f001.toml. A matrix row selects
it in VAR_NAMES_VALUES:
FSI: f001 / FSI_BENDING_STIFFNESS_N_M2_FACTOR: 1.15
The resolver attaches the effective FsiConfig and provenance to the case. The
existing run writer places config.json and fsi-provenance.json in the point's
working directory and records both hashes. The source artifact is also hashed;
changing it after resolution requires planning again. The geometry library is
never used as a destination for these generated files.
This configuration uses the existing solid homogeneous Euler beam. It adds no shell, spar, hollow-section, shear-center or second structural model.
Which workflows accept FSI¶
| Workflow | FSI in this release |
|---|---|
unsteady_rotor |
Accepted and warned: the coupling block is emitted before START_SOLVER, below, and the plan warns that the solver applies the morph of a rotating blade at its imported azimuth. A saved simulation and symmetry copies are accepted and warned too (a saved sector with copies). |
steady, unsteady without rotor motion |
Accepted: the fixed-wing route (FSI-G), below. |
qsteady_rotor |
Accepted on a periodic SECTOR: the rotating blade at the row's speed, below, through the structural nodes or, on 26.125, by direct mesh morphing. Refused on a whole wheel. |
On 26.124 and 26.125 a mapped rotating blade is morphed at its imported azimuth:
after each structural call the surface is the un-rotated blade carrying the
displacement, and the next time step restores the rigid rotated blade. The
morph replaces the rotation instead of composing with it, so a coupled rotor
number of that route is not yet the result of the deformed rotating blade. The
plan emits the route and says so in a warning on every coupled unsteady_rotor
row; the vendor has the reproduction.
Quasi-steady sector FSI¶
A qsteady_rotor row with SYMMETRY PERIODIC (one blade meshed, its free
stream turning about the shaft at the rotor's speed) couples that blade on the
steady route. The blade is held still; the STRUCTURE turns: the configuration
the run stages as the point's config.json takes omega_rad_per_s from the
row, |RPM| pi / 30, the speed its free stream turns at, whatever the FSI
input wrote (an input stating another non-zero speed is warned, the row's
wins; fsi-provenance.json records the move), so an RPM sweep couples each
point at its own speed. Each coupling call solves the rotating blade under
the loads of the solve before it: the centrifugal tension and its
stiffening, the propeller moment and the in-plane centrifugal softening, with
the configured coupling_relaxation on every call. The run folder is marked
fsi_quasi_steady_rotor, which routes the structural program to that steady
rotating solve; a steady export on a rotating configuration is refused without
it.
What the route fixes, as the fixed-wing route does: the blade's boundary ID,
the structural nodes placed inside its sections, the MULTI_QUADRATIC
kernel, at most 50 coupling iterations, the row's whole export block in the
aeroelastic post-processing script, EXECUTE_AEROELASTIC_ANALYSIS last and
the process stopped after the solver prints that the analysis ended.
Because the blade does not move, its frame is the one it was meshed in, and
the scripted import stores the structural nodes in the reference frame. So
the route couples blade one at azimuth 0 with its datum on Z, on a shaft
along X through the origin (where the rotor blade frame, x the shaft and z
the span, is the reference frame), with blade_count = 1 and one section
distribution over blade one cut on XY in a frame the run created that
coincides with the reference (the rotor's hub frame, SMRP, at the origin).
Anything else is refused, named, rather than converted. A sector turning at
0 rev/min is refused: the route exists to apply the centrifugal loads.
Direct mesh morphing¶
On a build that runs it (26.125), the sector can be coupled by the solver's
direct mesh morphing instead of the structural-node import. The FSI input
states it in its [config] table:
[config]
blade_count = 1
omega_rad_per_s = 0.0
morphing = "direct"
The script then emits SET_DIRECT_AEROELASTIC_MESH_MORPHING <frame> RIGID, in
the frame the blade's sections are cut in, in place of
IMPORT_AEROELASTIC_STRUCTURAL_NODES and its node file; every other line, and
every staged file, is the mapped route's, and the staged config.json carries
"morphing": "direct". Before each structural call the solver writes
FSInodes.txt, the blade's surface vertices at their undeformed positions
(RIGID), one row each with its normal and force. The structural program writes
one displacement per row back to FSIDisp.txt, in that order: the beam
solution at the vertex by the rigid-section kinematics the mapped route encodes
at its three nodes per station (the flap along the section normal, plus the
twist times the vertex's chordwise distance from the elastic axis), blended
linearly between two stations and held at the end station beyond the first and
the last, relaxed as on the mapped route. The displacements are totals from the
undeformed surface: on 26.125 two coupling cycles moved the surface by exactly
what was written. A call with no FSInodes.txt, or whose node list
changed length since the previous call, is refused. Its declared node count
must match the complete table, and every node row must contain nine finite
numbers. A truncated or malformed row refuses the call rather than shifting
the displacement rows onto different vertices.
A coupled unsteady_rotor blade takes the same route (FR-3404): the direct
command, in the blade's rotating frame, replaces the node import before
START_SOLVER, and every call of the march writes one row per listed vertex,
zeros while the wake develops and the relaxed beam solution after. The row
carries the rotor warning above. Where the
command database records the command documented and not verified on the row's
build, the plan warns, naming the command and the build, and emits it.
morphing = "direct_deflected" takes the same route with DEFLECTED
aerodynamic nodes: the command names DEFLECTED, the solver lists the vertices
where the surface already is, and on 26.125 it applied what was written to that
deflected surface (from the second coupling cycle on), so each call writes its
increment over the total it wrote before. The route is not verified, and the
plan warns.
Solver-frame compensation (26.127)¶
On 26.127 the two Direct routes of a coupled unsteady_rotor blade do not
apply the written rows in the blade's rotating frame. With the blade at
azimuth psi about +X at a call (call N runs at the start of time step N),
the solver was measured to place a listed vertex at:
| Route | The solver lists | It places a vertex at |
|---|---|---|
Direct RIGID ("direct") |
the import geometry X0 turned by -psi |
X0 + R(-psi) d, from the import geometry |
Direct DEFLECTED ("direct_deflected") |
X0 |
R(psi) X0 + R(-psi) d |
d is the written row and R(a) a turn by a about +X. Written as the beam
field u, RIGID shows the blade at its import azimuth whenever the field is
not zero, and DEFLECTED turns the in-plane part of u by -2 psi relative to
the blade, so the lag of the surface swings at twice the rotor frequency.
The compensation writes the rows that put every vertex at R(psi) (X0 + u),
the blade where its motion puts it, deformed by u. It is off by default. The
FSI input turns it on in its [config] table:
[config]
morphing = "direct_deflected"
solver_frame_compensation = true
and the setting is stated only in the FSI input; the matrix carries no key for it. With it on:
- RIGID turns the listing back by
+psitoX0, evaluatesuthere, and writes the field from the import geometry in every phase,d = R(psi) (R(psi) (X0 + u) - X0); the rows are not zero while the wake develops, since they carry the blade's turn. On 26.127 a zero RIGID field would leave the blade at its import azimuth (X0 + R(-psi) dwithd = 0), so the structural start (wake_development_revolutions,FSI_START_REV,FSI_START_ITER) governs when the deformationustarts, and the compensated RIGID field carries the rigid turn from call 1. - DEFLECTED writes
uturned by+2 psi,d = R(2 psi) u.
The structural state, the convergence log and the twist check keep u.
fsi-provenance.json records frame_compensation: the value, its origin
(matrix, file, or default where a row's cell was skipped) and whether the
run's build applies it (effective, with the reason where it is skipped).
The compensation applies to an unsteady_rotor row on a Direct route on
26.127, with the rotor turning about +X. Requested on another build, on the RBF
route (the structural-node import), on another workflow or on a rotor turning
about -X, which were not measured, the plan warns, naming the setting and the
reason, and the run writes the field uncompensated. Nothing is refused.
The RBF route (the default, through the structural nodes) of an
unsteady_rotor row on 26.127 is emitted with one warning: the solver places
the morphed blade at its import azimuth once a non-zero field is written, and
Direct DEFLECTED with this compensation (solver_frame_compensation = true in
the FSI input's [config]) is the route that keeps the blade in place, deformed
by the beam. The compensation itself does not apply to RBF.
Refused by the plan, each naming the remedy: a direct route on steady and
unsteady (a fixed wing couples through its structural nodes), on a wheel, in
a frozen replay, and on a build that does not run the command. Leaving
morphing out, or stating "mapped", uses the mapped displacement route.
Fixed-wing FSI¶
A steady row, or an unsteady row with nothing turning, couples a fixed
wing. The FSI input states [config.wing], and the structure is then one wing
clamped at its first station:
mode = "calculated"
material = "ti-6al-4v-grade5-annealed"
[config]
blade_count = 1
omega_rad_per_s = 0.0
[config.wing]
self_weight = true
gravity_m_per_s2 = [0.0, 0.0, -9.80665]
span_axis = "+Y"
origin_m = [0.25, 0.0, 0.0]
[sections]
station_radii_m = [0.0, 2.0, 4.0]
chord_m = [1.0, 1.0, 1.0]
geometric_pitch_deg = [0.0, 0.0, 0.0]
geometry_source = "Synthetic lens sections about the quarter chord, in metres"
sections_m = [
[[0.25, 0.0], [0.0, 0.06], [-0.25, 0.08], [-0.75, 0.0], [-0.25, -0.08], [0.0, -0.06]],
[[0.25, 0.0], [0.0, 0.06], [-0.25, 0.08], [-0.75, 0.0], [-0.25, -0.08], [0.0, -0.06]],
[[0.25, 0.0], [0.0, 0.06], [-0.25, 0.08], [-0.75, 0.0], [-0.25, -0.08], [0.0, -0.06]]
]
- The stiffness and mass along the span come from the same section and
material tooling a calculated blade uses:
[sections]gives one closed contour per station, in metres, chordwise toward the leading edge and normal toward the suction side, about the wing's pitch axis. A supplied configuration states the distributions under[config.blade]instead. The stations are distances along the span fromorigin_m, the reference-frame point on the pitch axis;span_axisis+Yfor a right wing and-Yfor a left one. The package's frame is x aft, y right, z up, so a station's section axes are -x and +z, turned nose up by itsgeometric_pitch_deg. - The loads are the aerodynamic sectional loads the solver exports, plus
the wing's own weight: the running mass under
gravity_m_per_s2, a vector of the reference frame, -z at standard gravity by default. The angle of attack and the sideslip turn the free stream, never the body, so they never turn gravity; a model mounted in another orientation states its own vector. With its centre of gravity off the elastic axis (cg_offset_chordwise_m,cg_offset_normal_m), the weight twists the section too. A wing at rest has no centrifugal load, and none is applied: a[config.wing]configuration stating a speed, or more than one structure, is refused. self_weight = falseremoves the weight, for a wind-tunnel model whose weight the balance and the support carry. It is on by default.- The sections the loads come from are one distribution of the row's
pproc, over the wing's one family, on the XZ plane, in a frame with the
reference axes whose origin sits on the wing's
origin_malong the span. The MRP frame of a reference whose moment point is on that plane is one:
[sections]
count = 40
include_symmetry = false
[[sections.distributions]]
families = ["Wing"]
frame = "MRP"
planes = ["XZ"]
Another distribution, another plane or a frame elsewhere is refused rather
than converted. The surface list holds the family's boundary ID, the nodes
are placed inside the wing's sections and stored in the reference frame,
and the kernel is MULTI_QUADRATIC, as below.
- A steady row ends its script at EXECUTE_AEROELASTIC_ANALYSIS, with at
most 50 coupling iterations; the solver stops the loop itself once its
displacement residual converges. The row's exports all run in the
aeroelastic post-processing script, after the loads the structural call
reads, so the files left after the run are those of the last coupling
iteration. Each point is its own process, and a local run stops the solver
once it prints Aeroelastic solver run time; a submitting executor refuses
such a script, because the process never exits by itself. The probe points,
the pproc's volume section and the loads selections are refused on this
route.
- An unsteady row couples once per time step inside the march
(SET_AEROELASTIC_COUPLING_IN_UNSTEADY ENABLE, one coupling iteration per
step) and writes the deformed surface, fsi_surface.vtk, after every
structural call; the row's own exports stay at the end of the march.
- Each structural call solves the clamped beam once and relaxes the written
displacement by phases.coupling_relaxation (0.4 unless the configuration
states it). Its row in fsi_convergence_log.csv states the phase
fixed_wing.
The convergence log fsi_convergence_log.csv of every route ends with tip_flap_signed_m: the tip
flap deflection in metres with its sign, the sign the displacement file
FSIDisp.txt carries, positive along the section's normal toward the
suction side, so a wing bending down under its own weight reads negative.
tip_flap_m stays its magnitude; on a rotor both name the blade of largest
magnitude. A frozen replay leaves both empty.
CDo, the profile drag coefficient of the loads export, reads zero in a
coupled run because the solver prints it so. On 26.124 the spreadsheet exported at the head of a coupled point's
one pass of the aeroelastic post, before the post updates anything and
before the structural call, already reads zero, where the rigid solve of the
same wing reads 0.0098384. The package's order of operations does not cause
it, and nothing the package emits changes for it.
The export's moment column of an XZ cut is read as positive about +y, which
is nose up on either wing, by analogy with the blade's XY cut. On 26.124
the route converged and mapped 1052 of 1052 vertices, and
on that symmetric NACA 0012 wing the reading agrees in sign at the integral
(+7.49 against +17.13 N m) and not in magnitude (44 percent), which a symmetric
section cannot decide. On a cambered NACA 4412 wing the
magnitude is confirmed: the summed cut moments are 1.00825 of the solver's
moment about the same line, at least as close to 1 as the summed cut forces
are to the lift (0.99033), and the coupled point gives the same verdict
(1.00791 and 0.99045), with the moment point on the quarter chord and the
cuts in its frame. The export's moment is not about the section's quarter
chord when the frame is elsewhere
(the definitions page),
so the wing's route adds X_QC Fz - Z_QC Fx, the lever of the section's forces
in the cut's frame, which gives the moment about the quarter chord wherever
the frame sits. That is zero for a frame on the section. Where the blade carries
its section contours, which are drawn about the pitch axis, the moment then
moves from the quarter chord to that axis, so the beam receives the moment about
its pitch axis at any chord fraction. A typed blade without contours states no
pitch axis on the chord, and it is read as the quarter chord, with a warning
that another pitch-axis position is unsupported. Supply section_contours_m
about the pitch axis to locate that axis on the section.
The contour transfer assumes a single element: the solver's exported quarter chord must equal the geometric quarter chord of that contour. This does not hold for the measured multi-element section, so multi-element pitch-axis moments are unsupported. The configuration has no element-count field; every contoured wing therefore warns about this assumption and retains the geometric transfer. Check the solver's quarter-chord location against the contour before relying on the torsion load.
The rotor_frame and section_frame routes also warn: the exported moment's
reference point relative to the pitch axis is unverified for those embeddings.
The rotor projection retains the negated export; the section-frame route
retains the export. Neither applies the wing's reference-point transfer.
Section-axis force components alone do not establish a moment reference.
Validate these routes with displaced-frame load exports before relying on their
torsion loads. These warnings disclose unsupported reference assumptions; they
do not establish a corrected moment for those cases.
The offline tests hold the emitted script, the weight against the cantilever's closed form q L^4 / (8 E I) and the absence of any centrifugal term.
Automatic workspace coupling¶
Selecting FSI: f001 on an unsteady_rotor row prepares the existing
driver's complete input interface (planned with the warning above). Planning derives the node CSV and
ordering map from the effective configuration, resolves blade boundaries and
rotating frames, and records the emitted section-load order in
fsi_family_map.json. The run writer stages and hashes these files, the native
loads-export callback and the Python callback beside config.json.
The native script imports one identical blade-local node file per blade, in
blade order, assigns those boundaries/frames, keeps
SET_AEROELASTIC_ITERATIONS 1 and enables coupling before ordinary
START_SOLVER. Each synchronous callback refreshes the sectional loads in
Newtons and invokes the existing pyfs-fsi step. The interpreter is the one
preparing the run, with its existing pythonw.exe sibling on Windows. The
package must remain available to that interpreter on the execution host.
The initial automatic route is deliberately bounded:
- A fresh OBJ/STL mesh import creates
NEW_SIMULATION; the selected native length unit must beMETER; other node-file units are not yet established for this adapter. A saved simulation (.fsm) is coupled too (FR-3408): see a saved sector with copies below. - Exactly one moving rotor resolves to its blades. Missing blades and ambiguous rotor selection are refused. With periodic or mirror symmetry copies, the blades the rotor names are coupled and the copies are left to the solver, with a warning (FR-3408, below).
- The existing structural
rotor_frameconvention requires shaft X and blade datum Z. The declared geometry and structural pitch must describe that same physical blade; this adapter does not infer a new basis or re-pitch the mesh. - Exactly one XY section distribution per blade must be emitted in blade order, each in that blade's own rotating frame. Duplicate cuts, aggregated families, other planes or additional distributions are refused instead of attributed to the first matching blade.
- Positive structural angular velocity must match the resolved row's speed; a declared structural time increment must match the solver clock. Raw commands/custom flags that could alter the mapping are not accepted on this initial automatic route.
- Zero-speed coupling and continuation are named refusals. Continuation needs compatible structural state and inherited section-order evidence; creating fresh maps beside a stopped run would not establish that evidence.
A saved sector with copies¶
An unsteady_rotor row whose geometry is a saved simulation, such as a
periodic sector of one blade, a spinner and a nacelle with six copies, is
planned and built (FR-3408), each step warned:
- The boundary ID is read from the saved file. Each boundary record of the file's mesh block opens with the boundary's ID, and the surface list takes the coupled blade's ID from there, by the blade's name.
- The section order is read from the saved file. The surface sections a
saved file carries stand ahead of the row's own distributions in the loads
export, so
fsi_family_map.jsonopens with them as one family, namedsaved-file sections, which the structural solve does not read. Their count is read from the file's post block. Where that block is not a shape the reader knows, the map holds the row's blades alone, the warning says the count could not be read, and a structural call refuses an export with more sections than the map holds. - The warning says that the ID and the order are taken from the saved file and not proved by a fresh mesh import.
- Symmetry copies. The blade the row's rotor names (
families_blades, for exampleBlade1) is coupled in its own rotating frame; its copies are left to the solver's symmetry. How the solver treats the copies of a coupled blade is not measured, and the plan says so. A run of a six-blade periodic propeller sector, on 26.126 only, diverged after the first non-zero structural call on two routes.
The surface before each structural call¶
export_surface_before_call = true under [config] (off by default) makes
the aeroelastic post-processing script of an unsteady_rotor row also export
the surface, after the loads, as fsi_before_call.vtk (FR-3408). The solver
runs that script before each structural call, so the file is on disk when the
call starts, and the call copies it into its archive,
fsi_archive/call_NNNN/fsi_before_call.vtk: the blade as the solver held it
just before that call. The row's per-step surface export
(EXPORT_UNSTEADY_AFTER_ITER) shows the blade after the call, so the two
together give the blade position before and after each call. Another
workflow warns and skips the option.
[config]
blade_count = 1
omega_rad_per_s = 46.797679864567904
export_surface_before_call = true
The pproc entry¶
For example, the corresponding pproc entry for a one-blade rotor whose family
is Blade1 is:
[sections]
count = 50
include_symmetry = false
[[sections.distributions]]
families = ["Blade1"]
frame = "LOCAL_AXIS"
planes = ["XY"]
For multiple blades, select the rotor's blades so LOCAL_AXIS expands them in
the declared blade order. The structural blade_count must include every
explicit blade. A separate [settings.aeroelastic] table is not required.
The existing FSI tutorial remains the manual interface for
other carefully configured native cases. pyfs-fsi step --dir /absolute/path
executes one driver call when current loads and maps already exist. Outputs
FSIDisp.txt, structural state, convergence logs and per-call archives remain
in that point directory. Stale solver iterations are refused. Changing a
calibration requires a new resolved point and regenerated nodes.
What the coupled route fixes itself¶
These pieces are shared by every coupled route
(pyflightstream.cases.fsi_workspace):
- The surface list holds the boundary ID. The solver stores
ASSIGN_AEROELASTIC_SURFACESas written and maps the boundaries whose ID matches, while a script cites a boundary by its position in the geometry tree. An OBJ import numbers its boundaries from 2, an STL import from 1, so an OBJ blade at position 1 is surface 2, the ID its motion holds. A saved simulation states each ID on its boundary record, and the ID is read from there (FR-3408). Any other geometry is refused rather than guessed: a wrong ID maps no vertex, in silence. - The structural nodes sit inside the blade. When the configuration
carries the blade's sections (a calculated blade does; a supplied blade may
state
section_contours_munder[config.blade], one closed polygon of chordwise and normal metres per station), the nodes are placed on each section's camber line: the elastic-axis node at the configured elastic axis's chord fraction (30 % when that lies outside 20 to 50 %), the leading-edge and trailing-edge nodes at 10 % and 90 %. The plan refuses a node set with any node outside its section, or inside it by less than max(1 mm, 10 % of the local thickness), naming the node. Node order, roles and row count do not change, so the FSIDisp rows keep their meaning. A supplied blade without sections keeps the offset layout, which is not checked: there is no geometry to check it against. - The morphing kernel is
MULTI_QUADRATICunless the row's setup statesaeroelastic_rbf_type. The package's structural nodes are a beam line, and on one beam lineWENDLAND_C2delivered 64 % of an imposed bend at the leading edge and 1.4 % at the trailing edge, a nose-up shear of up to 14 deg, and the coupled run diverged;MULTI_QUADRATICdelivered the bend to 3 mm. - The node frame. On 26.124
IMPORT_AEROELASTIC_STRUCTURAL_NODESdoes not store its frame argument: the saved node block always states the reference frame. A route whose nodes must turn with the blade saves the built simulation, patches that one field to the rotating frame's index (patch_structural_node_frame, which changes that field and nothing else) and opens the patched file. One node block holds one frame, so a rotor with one rotating frame per blade cannot be stated this way. - Exports that must show the deformation run in the aeroelastic
post-processing script. In unsteady the solver runs it twice per step,
before the structural call and after the morph, writing the same file
names, so the file left after a step is the deformed one. A Tecplot or VTK
surface export carries the morphed vertices; a triangulation export and
SAVEASkeep the reference ones. - A steady coupled script ends at
EXECUTE_AEROELASTIC_ANALYSIS. In a script the analysis returns at once: an export after it runs before the analysis iterates, and aCLOSE_FLIGHTSTREAMafter it ends the analysis. The exports go in the post-processing script, which the solver runs after every coupling iteration, the last one included, and the run is complete when the solver printsAeroelastic solver run time, after which its process is stopped.
The rotating structural solve includes the in-plane centrifugal softening of the flap, mu Omega^2 sin^2(beta) w: a flap along the section normal at pitch beta moves the section in the rotor plane, where the centrifugal field pulls it outward. It iterates with the twist in the same inner loop.
These wiring checks do not establish native two-way rotor deformation, convergence or aerodynamic validity. The native interface evidence includes callbacks with unsteady coupling enabled, but an undeformed final saved node state; the older rotary-boundary morphing limitation is also retained in the FSI tutorial. Saved-FSM/continuation usability and native coupled validation remain open release acceptance work, not an implied success from staging or command acceptance. The supplied zero-omega examples below are valid structural inputs for offline checks, not runnable coupled rotor rows.
Supplied distributions¶
Use mode = "supplied", put existing FsiConfig scalars under [config], and
put the complete existing BladeProperties arrays under [config.blade].
Station radii are metres, strictly increasing, and all arrays have the same
length. Mass per length is kg/m; EI and GJ are N m²; principal mass inertias per
length are kg m. The existing config validators check finite values, station
counts, positive mass/stiffness/chord and nonnegative principal inertia.
mode = "supplied"
[calibration]
bending_stiffness_n_m2 = 1.05
[config]
blade_count = 2
omega_rad_per_s = 0.0
[config.blade]
station_radii_m = [0.1, 0.5]
chord_m = [0.04, 0.04]
mass_per_length_kg_per_m = [1.0, 2.0]
inertia_major_kg_m = [0.001, 0.002]
inertia_minor_kg_m = [0.0001, 0.0002]
bending_stiffness_n_m2 = [10.0, 20.0]
torsion_stiffness_n_m2 = [5.0, 10.0]
elastic_axis_offset_chordwise_m = [0.0, 0.0]
elastic_axis_offset_normal_m = [0.0, 0.0]
cg_offset_chordwise_m = [0.0, 0.0]
cg_offset_normal_m = [0.0, 0.0]
geometric_pitch_deg = [0.0, 0.0]
The example distributions are synthetic, not a material or airframe dataset.
With the row factor 1.15 above, effective EI is [11.5, 23.0]; it is not the
product of the file's 1.05 and the row's 1.15.
Calculated solid sections¶
mode = "calculated" reads section contours and the established material
dataset. The section coordinates are chordwise/normal metres about the pitch
axis; sections_m contains one closed polygon per station. The existing section
integrator computes area, centroid, principal inertias and the Prandtl torsion
constant. Do not also provide [config.blade] in this mode.
mode = "calculated"
material = "ti-6al-4v-grade5-annealed"
[config]
blade_count = 2
omega_rad_per_s = 0.0
[sections]
station_radii_m = [0.1, 0.5]
chord_m = [0.04, 0.04]
geometric_pitch_deg = [0.0, 0.0]
geometry_source = "Synthetic rectangular sections in SI units"
torsion_grid_cells = 16
sections_m = [
[[-0.02, -0.002], [0.02, -0.002], [0.02, 0.002], [-0.02, 0.002]],
[[-0.02, -0.002], [0.02, -0.002], [0.02, 0.002], [-0.02, 0.002]]
]
The existing Grade 5 dataset retains its source, annealed condition and tabulated
shear modulus. Calibration never rewrites the source material database. A custom
[material] table instead states every Material field and a [material.source]
table with document, table, condition, url and consulted. The material
checks require finite positive density/E/G and -1 < poisson_ratio < 0.5.
Sections from the mesh¶
In place of the contours, [sections] can ask for the sections to be cut from the
blade's own mesh:
[sections]
source = "mesh"
stations = 16 # required with source = "mesh"
torsion_grid_cells = 64
stations is required. An input with source = "mesh" and no stations states no
usable sections, and the plan stops on it asking for stations = <n>. The radii,
chords, pitches and contours come from the mesh; station_radii_m, chord_m,
geometric_pitch_deg, sections_m, airfoil or naca stated beside
source = "mesh" are warned and skipped.
The sections belong to the geometry. The plan reads
inputs/geometries/<geometry>/<geometry>.<family>.beam.toml, beside
<geometry>.boundaries.toml, where <family> is blade one's name in the mesh
(Blade1, say). When the file is missing, the plan cuts the row's mesh (an OBJ or a
saved simulation .fsm) and writes it:
- The mesh is read in metres (an OBJ in the unit its sidecar's
[import] unitsstates, a saved simulation in the unit it stores) about the hub of the rotor the row couples (a flat row'sROTOR_ORIGINwhere it states one, as the run places the blade frames), the shaft along x and blade one along +z, the frame the contour check below reads the mesh in. - The stations are
stationsradii evenly spaced from the first closed cut at the root to the last at the tip. A cut is the plane normal to the span; the triangles it crosses are chained into loops through the mesh's own edges, and the loop around the beam axis is the section (any other piece of the cut is warned). Faces within 10 deg of normal to the span, the flat caps of a tip or a root, are not cut. A trailing edge left open in the mesh is closed by the segment joining its two sides. - A station whose cut does not close is cut at the nearest radius that closes, within half the distance to each neighbouring station; the file states the radius used and the plan warns. A station with no closed cut in that window is warned and left out. Fewer than two usable stations stop the plan: there is no beam.
- In each section the trailing edge is the thinner end of the longest chord (the
middle of the segment closing an open one) and the leading edge is the vertex
farthest from it; the chord is their distance, and the geometric pitch is the
angle of the line between them, toward the leading edge
(-sin b, -cos b, 0). The leading edge being a vertex of the mesh, the pitch is resolved to the mesh's spacing at the nose: half that spacing over the chord, in radians. - The contour is the cut's own points, stated toward the leading edge and toward the suction side in metres about the pitch axis, so the contour check of the next section finds every contour on the cut.
The file records the mesh's sha256, the station count, the hub it was cut
about (hub_m) and the factor that took the mesh to metres (metres_per_unit).
With the same four it is used as it is, hand edits included. With another sha256,
another count, another hub (a file the command below wrote about the mesh's
origin, read by a row whose rotor sits elsewhere) or another unit (a corrected
[import] units), or when it does not read as sections, it is warned, kept as
<geometry>.<family>.beam.toml.bak, and the sections are cut again. A .bak
already there is first renamed .bak-<its modification time, UTC>, so no earlier
file, hand edits included, is overwritten.
The beam is built from the file exactly as from stated contours. The run's
fsi-provenance.json records the file in beam_sections (its name and sha256) and
names it in its blade_mesh record as beam_toml and beam_toml_sha256; the
blade's provenance names it as the geometry file its contours were read from.
pyfs-fsi beam writes the same file on demand, for each family
named, cutting about the mesh's origin (a row whose rotor sits on the origin reuses
it as it is):
pyfs-fsi beam inputs/geometries/rotor/rotor.obj --families Blade1 --stations 16 --visual-inspection
--visual-inspection also writes <geometry>.<family>.beam.pdf beside it: the
blade drawn as pyfs-mesh visual-inspect draws a mesh, with every section placed on
it, then each station's contour with its chord line and its pitch axis.
Contours placed on the mesh cut¶
The package places each contour with its origin on the pitch axis, at the
station's radius along the span, turned by the station's pitch. A contour
written about another point (the quarter chord, say) then puts the beam's
section, and so its elastic and mass axes, beside the blade's real section.
On an unsteady_rotor or qsteady_rotor row that imports an OBJ, the plan
cuts blade one's group of the mesh at every station and compares the cut with
the placed contour: where the two lie more than 5 mm apart
(CONTOUR_PLACEMENT_TOLERANCE_M, the distance between the perimeter centroids
of the two curves in the section plane), one warning names each such station,
its radius and its offset toward the leading edge and toward the suction side.
Nothing is refused; the beam is built from the contours as stated.
pyflightstream.fsi.sections.place_on_mesh_cut(config, vertices, faces,
source=..., target=...) writes the FSI input source to target with its
[sections] table stating the contours moved by those offsets as sections_m
(in place of sections_m, airfoil or naca) and geometry_source saying
they were placed on the mesh cut, with a comment line opening the table that
names the key the contours replaced (the naca designation, the airfoil, or
the earlier sections_m); every other line is kept, and source is written
only when target is the same path. It returns the contours it wrote.
config is the configuration source resolves to. contour_mesh_offsets
returns the offsets themselves. The mesh is read with
pyflightstream.fsi.sections.obj_group_surface(path, "<blade group>"). The
example writes, in a temporary folder, an FSI input and an OBJ whose Blade1
sections sit 4 mm toward the suction side of the stated contours, then places
the contours on the mesh cut:
import math
import tempfile
from pathlib import Path
from pyflightstream.fsi.sections import obj_group_surface, place_on_mesh_cut
from pyflightstream.workspace.fsi_setup import load_fsi_setup
radii, pitches = [0.3, 0.6, 0.9], [30.0, 20.0, 10.0]
fsi_input = "\n".join([
'mode = "calculated"', 'material = "ti-6al-4v-grade5-annealed"',
"[config]", "blade_count = 2", "omega_rad_per_s = 100.0", "[sections]",
f"station_radii_m = {radii}", "chord_m = [0.2, 0.15, 0.1]",
f"geometric_pitch_deg = {pitches}", 'naca = "4412"',
"pitch_axis_chord_fraction = 0.25", 'geometry_source = "NACA 4412"',
"torsion_grid_cells = 16", "",
])
with tempfile.TemporaryDirectory() as folder:
source = Path(folder) / "f001.toml"
source.write_text(fsi_input, encoding="utf-8")
config = load_fsi_setup(source)
points, triangles = [], []
for radius, pitch, contour in zip(radii, pitches, config.blade.section_contours_m):
beta, first, n = math.radians(pitch), len(points) + 1, len(contour)
for z in (radius - 0.02, radius + 0.02):
for c, s in contour:
x = -c * math.sin(beta) - (s + 0.004) * math.cos(beta)
y = -c * math.cos(beta) + (s + 0.004) * math.sin(beta)
points.append(f"v {x} {y} {z}")
for i in range(n):
a, b = first + i, first + (i + 1) % n
triangles += [f"f {a} {b} {b + n}", f"f {a} {b + n} {a + n}"]
mesh = Path(folder) / "rotor.obj"
mesh.write_text("\n".join(["o Blade1", *points, *triangles]) + "\n", encoding="utf-8")
vertices, faces = obj_group_surface(mesh, "Blade1")
placed = place_on_mesh_cut(
config, vertices, faces, source=source, target=Path(folder) / "f002.toml"
)
assert len(placed) == len(radii)
Calibration and provenance¶
Every factor is dimensionless, finite and positive. Omission selects the file
factor or unity. An explicit matrix value, including 1.0, replaces the file
factor exactly once. The accepted property names are:
| Level | Names |
|---|---|
| Supplied or calculated distributions | mass_per_length_kg_per_m, inertia_major_kg_m, inertia_minor_kg_m, bending_stiffness_n_m2, torsion_stiffness_n_m2 |
| Structural orientation | geometric_pitch_deg |
| Existing offsets | elastic_axis_offset_chordwise_m, elastic_axis_offset_normal_m, cg_offset_chordwise_m, cg_offset_normal_m |
| Calculated material only | density_kg_per_m3, youngs_modulus_pa, shear_modulus_pa, poisson_ratio |
The pitch factor scales each signed structural angle in degrees once; zero stays
zero. For example, file factor 2.0 replaced by
FSI_GEOMETRIC_PITCH_DEG_FACTOR: 1.5 maps [-60, 20] to [-90, 30],
not [-180, 60]. It changes the spinning beam section orientation used to
generate structural nodes and project loads, while retaining the section
properties, radii and node order. It is not an angular offset and does not
rotate the section contours again or re-pitch the aerodynamic mesh. Keep the
aerodynamic geometry consistent with the intended structural orientation and
regenerate the node file and ordering map from the effective configuration.
This parameter alone does not establish coupled aerodynamic validation.
A matrix key is FSI_ + the uppercase property name + _FACTOR. Source and
derived calibration on the same dependency is refused: density plus mass or
mass inertia, E plus EI, or G plus GJ. For isotropically derived G, E/Poisson
calibration also cannot be combined with a separate G or GJ calibration. The
legacy config.stiffness_scale_factor must be unity in workspace artifacts.
When the source tabulates G, changing E or Poisson ratio preserves that tabulated G. Only a material declaring isotropically derived G follows E / (2 (1 + nu)). The two contracts remain distinct even with unity calibration.
fsi-provenance.json contains the source path/hash, unscaled config, effective
config, every factor and whether it came from unity, file or matrix. Calculated
inputs also retain base/effective material properties and the section algorithm
provenance. Effective properties are validated again, including the ordering of
major and minor principal inertia. No solver executes while loading or planning
these inputs.
Structural start¶
An unsteady_rotor coupled row develops a rigid wake first: the start governs
when the deformation starts, and until then the beam field is zero, so the
aerodynamics settles before the structure moves. Every route writes that zero
field, except Direct RIGID with the solver-frame compensation on, whose written
field carries the blade's rigid turn from call 1 (see the solver-frame
compensation above). The input file sets the start as
[config.phases] wake_development_revolutions. A row can replace it, for that
row only, with one of two matrix keys:
| Key | Unit | Meaning |
|---|---|---|
FSI_START_REV |
revolutions | Revolutions of rigid wake development, for example FSI_START_REV: 2 |
FSI_START_ITER |
time steps | The first time step whose coupling call may deform the blade (a non-zero beam field), for example FSI_START_ITER: 144 |
FSI_START_ITER converts to revolutions with the row's clock: DELTA_THETA,
or DELTA_TIME with the rotor speed of the FSI input. With DELTA_THETA: 5
(72 steps a revolution), FSI_START_REV: 0.5 and FSI_START_ITER: 36 give
the same first non-zero call. A row with both keys is warned, naming both, and
FSI_START_ITER is used. A value is finite and positive, as a factor is; a
blank cell or - states nothing. fsi-provenance.json records the key, its
value, the effective revolutions and the file value it replaced.
The start is the phase schedule of the unsteady_rotor route. On another
workflow, on an input of mode = "external", and for FSI_START_ITER on a
row with no turning clock, the key does not apply: it is warned and skipped.
Frozen displacement inputs¶
An FSI artifact can set frozen_displacements_file = "frozen.txt" at its
top level. The path is relative to that artifact. Resolution checks the mapped
node count and finite translations; staging verifies its recorded digest before
copying it into the point folder. Direct vertex morphing is refused for this route.
allow_configuration_change = true explicitly permits the driver's existing
configuration-change handling. Both controls are absent or false by default.
FSI rows retain raw OBJ imports and read named declarations from
<mesh>.obj.boundaries.toml through the strict marking loader. Each import
uses the same D3 emitter and VERIFIED command gate as mark-boundaries; on a
coupled row the gate warns, naming each marking command documented and not
verified on the row's build and the build, and the commands are emitted.
Every other matrix row requires a prepared .fsm.