Skip to content

pyflightstream.workspace.sixdof_setup (provisional)

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

Resolve a row's SIXDOF: d<id> key to its 6DOF input (FR-461).

The key names inputs/sixdof/d<id>.toml, the way FSI: f<id> names inputs/fsi/f<id>.toml: the plan reads it, validates it (:class:~pyflightstream.cases.sixdof.SixDofSpec), resolves each custom force's file under the same folder and hashes the input and those files, so the run record keeps what moved the body.

Advanced

pyflightstream.workspace.sixdof_setup.ResolvedSixDof dataclass

ResolvedSixDof(
    source: Path,
    source_sha256: str,
    spec: SixDofSpec,
    files_sha256: dict[str, str] = dict(),
)

A resolved 6DOF input: the validated spec, its source and the digests (FR-1088).

provenance

provenance() -> dict[str, Any]

Return what sixdof-provenance.json records.

The file is hashed into the run record (FR-3090), so the source is named by its file name, not its absolute path, and source_sha256 keeps the identity.

pyflightstream.workspace.sixdof_setup.SixDofSetupError

Bases: PyflightstreamError, ValueError

A row's 6DOF input cannot describe a body free to move here.

pyflightstream.workspace.sixdof_setup.resolve_row_sixdof

resolve_row_sixdof(
    inputs_dir: str | Path,
    variables: Mapping[str, Any],
    *,
    workflow: str,
    pol: str = "",
) -> ResolvedSixDof | None

Resolve SIXDOF: d001 from the matrix free cell, refusing what FR-1086 and FR-1087 name.

Parameters:

Name Type Description Default
inputs_dir str or Path

The workspace's inputs folder.

required
variables mapping of str to object

The row's free-cell variables.

required
workflow str

The row's run type.

required
pol str

The row's POL, named in refusals.

''

Returns:

Type Description
ResolvedSixDof or None

The resolved input, or None when the row states no SIXDOF.

Raises:

Type Description
SixDofSetupError

A code that is not d and a name, a file outside inputs/sixdof/ or absent, an input the model refuses, a run type other than unsteady, a row also stating FSI, a mirrored row freeing a lateral freedom, or a custom force file that is not a file of inputs/sixdof/.