Skip to content

pyflightstream.workspace.fsi_external_setup (provisional)

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

Resolve an FSI input of mode = "external" to the program it names (FR-462).

The input names a structural program of the user's own and its node file, both under the workspace's inputs/fsi/, the files the program reads and writes, and the one family the program's structure couples to. The plan reads it, refuses what FR-1093 names, counts the nodes, and hashes the program, the node file and every declared input, so the archiving step (pyfs-fsi external) can verify at every call that it runs what the plan hashed.

Advanced

pyflightstream.workspace.fsi_external_setup.ExternalFsiInput

Bases: BaseModel

The inputs/fsi/f<id>.toml of an external structural program (FR-1090).

Attributes:

Name Type Description
mode {'external'}

The mode.

external table

executable, arguments, structural_nodes, inputs, outputs, timeout_s.

coupling table

families (one), max_iterations, convergence_threshold.

pyflightstream.workspace.fsi_external_setup.FsiExternalSetupError

Bases: PyflightstreamError, ValueError

An external FSI input cannot name a program the plan can hash and the step can run.

pyflightstream.workspace.fsi_external_setup.resolve_external_fsi

resolve_external_fsi(path: str | Path) -> ExternalStructure

Read, check and hash an external FSI input (FR-1090, FR-1093, FR-1095).

Parameters:

Name Type Description Default
path str or Path

The FSI input file, under inputs/fsi/.

required

Returns:

Type Description
ExternalStructure

The program, its node file and declared inputs, hashed.

Raises:

Type Description
FsiExternalSetupError

show_console or morphing stated, a key the input does not define, a program, node file or declared input outside inputs/fsi/ or absent, a node file with no node, more than one coupled family, or a declared input or output that is not a bare file name or is named, without case, as a file the archiving step owns (:data:~pyflightstream.fsi.external.STEP_NAMES, call.json among them).