Skip to content

pyflightstream.fsi.errors (stable)

Generated from the docstrings at build time: every one of the 1 names in the __all__ of pyflightstream.fsi.errors has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

Exception vocabulary of the fluid-structure coupling layer.

Pipeline role: the errors every module of the coupling raises when the data it was handed cannot describe a blade. Its own module for the same reason as :mod:pyflightstream.probes.errors: several modules of this subpackage raise it (nodes, loads, beam, driver, kinematics, centrifugal), so a class defined in any one of them would make the others import a sibling for its exceptions, and one defined in the package __init__ would be a cycle for the modules that __init__ imports.

The common FSI error base lets callers catch structural errors across the subpackage.

Advanced

pyflightstream.fsi.errors.FsiInputError

FsiInputError(
    *args: object, problems: tuple[str, ...] = ()
)

Bases: PyflightstreamError, ValueError

Data handed to the coupling cannot describe a blade.

A shape that does not match the node map, a station count that disagrees with the configuration, a displacement file that belongs to another layout, a non-finite value where a length or a load is required.

It keeps ValueError as a base, so code that already wrote except ValueError around a coupling call catches exactly what it caught before; what changes is that except PyflightstreamError now catches it too.

Defined here (AD-10) because TWO LAYERS name it: the coupling (fsi) and the sectional loads parser of the results row, which moved there so the results row imports nothing of fsi. Import it from :mod:pyflightstream.fsi.errors or the catalog, as before.

Preserve exception arguments and expose individual resume mismatches.

Parameters:

Name Type Description Default
*args object

Diagnostic arguments accepted by ValueError.

()
problems tuple of str

Individual persisted-array mismatches, empty for other refusals.

()