Skip to content

Requirements

This is the draft SRS v0. Pending means the requirement is not yet verified as implemented. L1 describes capabilities; L2 describes observable behavior. The verification method states how each requirement is to be checked. Empty code and test anchors are owed work, not evidence of implementation.

UID Parent HID Level Status Verification method Statement Rationale Derives from Code Test
FR-1 - WKSP-1 L1 pending analysis Provide solver-independent workspaces and commands. Workspace foundation - - -
FR-2 FR-1 WKSP-1.1 L2 pending test A workspace has an init.toml naming exactly one solver. Workspace identity FR-1 - -
FR-3 FR-1 WKSP-1.2 L2 pending test cfd-workspace init --solver <solver> selects the workspace solver and refuses unknown solvers and existing init.toml files. Workspace initialization FR-1 - -
FR-4 FR-1 WKSP-1.3 L2 pending inspection User commands belong to the cfd-<name> family; cfd-qa and cfd-manual are excluded. CLI scope FR-1 - -
FR-5 - ARCH-1 L1 pending analysis Provide a solver-agnostic first level with solver adapters above it. Separation of concerns - - -
FR-6 FR-5 ARCH-1.1 L2 pending test The core never imports a solver adapter. Dependency direction FR-5 - -
FR-7 FR-5 ARCH-1.2 L2 pending test A licence-free mock adapter exercises the adapter contract offline. Offline verification FR-5 - -
FR-8 FR-5 ARCH-1.3 L2 pending test Each adapter passes a conformance suite covering init.toml, s, r and p translation, execution, point classification and neutral results. Shared contract FR-5 - -
FR-9 - RUN-1 L1 pending analysis Support named matrices and durable run records. Campaign workflow - - -
FR-10 FR-9 RUN-1.1 L2 pending test Named matrices use s, r and p input files for all inputs, including solver-specific inputs, translated to the selected solver. Workspace inputs FR-9 - -
FR-11 FR-9 RUN-1.2 L2 pending test A run registry records runs and their association with inputs and matrices. Traceability FR-9 - -
FR-12 FR-9 RUN-1.3 L2 pending test Each point is classified as converged, iteration limit or failed; a successful process exit alone does not establish convergence. Honest outcomes FR-9 - -
FR-13 FR-9 RUN-1.4 L2 pending test Results carry explicit axes and references. Interpretable results FR-9 - -
FR-14 FR-9 RUN-1.5 L2 pending test HPC submission uses an inputs/hpc/h<id>.toml profile and offers --hpc and --local choices. Execution choice FR-9 - -
FR-15 - SU2-1 L1 pending analysis Provide an SU2 adapter. First solver - - -
FR-16 FR-15 SU2-1.1 L2 pending integration test The SU2 adapter defaults to pysu2 and allows selection of an executable route using a .cfg file and SU2_CFD; when pysu2 cannot import it falls back to that route. User choice FR-15 - -
FR-17 - REF-1 L1 pending analysis Provide a common small 2D reference case across solvers with neutral results. Comparison and usability - - -
FR-18 FR-17 REF-1.1 L2 pending integration test Run the common reference case on each solver and compare neutral result fields without requiring numerical identity. Common case FR-17 - -
FR-19 - ROAD-1 L1 pending analysis Extend solver support in the roadmap. Solver sequence - - -
FR-20 FR-19 ROAD-1.1 L1 implemented integration test Support FlightStream through the cfdbender facade. Facade FR-19 - tests/tier1_offline/test_p0000_fts_plan_parity.py; tests/tier1_offline/test_p0000_fts_run_parity.py; tests/tier1_offline/test_p0000_fts_reader.py
FR-23 FR-20 ROAD-1.1.1 L2 implemented test A FlightStream workspace has the same files and folders as a pyflightstream workspace plus root init.toml. Workspace parity FR-20 - tests/tier1_offline/test_p0000_fts_plan_parity.py::test_p0000_fts_init_parity
FR-24 FR-20 ROAD-1.1.2 L2 implemented test Every command and flag of pyfs-matrix and pyfs-workspace is available through cfd-matrix and cfd-workspace with arguments forwarded unchanged and pyflightstream's own help. CLI parity FR-20 - tests/tier1_offline/test_p0000_fts_plan_parity.py
FR-25 FR-20 ROAD-1.1.3 L2 implemented test cfdbender imports pyflightstream only through its facade module, using only public names and never from the core. Import boundary FR-20 - tests/tier1_offline/test_p0000_fts_architecture.py
FR-26 FR-20 ROAD-1.1.4 L2 implemented test FlightStream support is an optional extra and its absence is refused with the install line. Optional dependency FR-20 - tests/tier1_offline/test_p0000_fts_boundaries.py (absence refusal)
FR-27 FR-20 ROAD-1.1.5 L2 implemented test Planning through cfdbender produces byte-identical scripts and plan.json to pyflightstream. Plan parity FR-20 - tests/tier1_offline/test_p0000_fts_plan_parity.py::test_p0000_fts_plan_parity
FR-28 FR-20 ROAD-1.1.6 L2 implemented integration test Running, collecting and post-processing through cfdbender produce byte-identical outputs to pyflightstream. Product parity FR-20 - tests/tier1_offline/test_p0000_fts_run_parity.py
FR-29 FR-20 ROAD-1.1.7 L2 implemented test A neutral reader maps every pyflightstream run status to cfdbender's classifications. Neutral results FR-20 - tests/tier1_offline/test_p0000_fts_reader.py
FR-21 FR-19 ROAD-1.2 L1 implemented test Support ESI OpenFOAM workspaces as refined by FR-36 through FR-40. Solver adapter FR-19 src/cfdbender/solvers/openfoam/ tests/tier1_offline/test_p0000_openfoam_adapter.py
FR-36 FR-21 ROAD-1.2.1 L2 implemented test Initialize and plan tracked alpha points with deterministic case translation. Reproducible plans FR-21 src/cfdbender/solvers/openfoam/init.py; src/cfdbender/solvers/openfoam/_config.py tests/tier1_offline/test_p0000_openfoam_adapter.py::test_p0000_openfoam_init_plan_deterministic_alpha
FR-37 FR-21 ROAD-1.2.2 L2 implemented test Execute serial cases through a launcher with the configured ESI environment. WSL execution FR-21 src/cfdbender/solvers/openfoam/_execute.py tests/tier1_offline/test_p0000_openfoam_adapter.py::test_p0000_openfoam_launcher_and_environment; tests/tier1_offline/test_p0000_requirement_traceability_review.py::test_openfoam_launcher_executes_in_point_directory
FR-38 FR-21 ROAD-1.2.3 L2 implemented test Classify only with valid force and final SIMPLE evidence, distinguishing convergence, iteration limit and failure. Evidence-based status FR-21 src/cfdbender/solvers/openfoam/_history.py; src/cfdbender/solvers/openfoam/init.py tests/tier1_offline/test_p0000_openfoam_adapter.py::test_p0000_openfoam_run_collect_post; tests/tier1_offline/test_p0000_openfoam_review.py
FR-39 FR-21 ROAD-1.2.4 L2 implemented test Collect named force coefficients with references and ESI body minus z pitch direction. Interpretable results FR-21 src/cfdbender/solvers/openfoam/_history.py; src/cfdbender/solvers/openfoam/_config.py tests/tier1_offline/test_p0000_openfoam_adapter.py::test_p0000_openfoam_esi_pitch_reference_direction; tests/tier1_offline/test_p0000_openfoam_adapter.py::test_p0000_openfoam_run_collect_post
FR-40 FR-21 ROAD-1.2.5 L2 implemented test Generate a deterministic NACA 0012 gmsh mesh with named patches. Reference mesh FR-21 tools/kit/openfoam_naca0012_mesh.py tests/tier1_offline/test_p0000_openfoam_mesh.py
FR-22 FR-19 ROAD-1.3 L2 pending integration test Support Fluent after OpenFOAM. Solver roadmap FR-19 - -
FR-30 FR-19 ROAD-1.4 L1 implemented test Support XFOIL workspaces as refined by FR-41 through FR-44. Solver adapter FR-19 src/cfdbender/solvers/xfoil/ tests/tier1_offline/test_p0000_xfoil_plan.py; tests/tier1_offline/test_p0000_xfoil_execute.py
FR-41 FR-30 ROAD-1.4.1 L2 implemented test Initialize and plan deterministic per-alpha scripts for NACA or tracked coordinate inputs. Reproducible plans FR-30 src/cfdbender/solvers/xfoil/init.py; src/cfdbender/solvers/xfoil/_config.py tests/tier1_offline/test_p0000_xfoil_plan.py::test_p0000_xfoil_init_plan_deterministic_sweep; tests/tier1_offline/test_p0000_xfoil_plan.py::test_p0000_xfoil_airfoil_digest_and_panel_transition_options
FR-42 FR-30 ROAD-1.4.2 L2 implemented test Execute a saved script through a launcher and guest executable in the point directory. WSL execution FR-30 src/cfdbender/solvers/xfoil/_execute.py tests/tier1_offline/test_p0000_xfoil_launcher.py::test_p0000_xfoil_launcher_execution_keeps_point_cwd
FR-43 FR-30 ROAD-1.4.3 L2 implemented test Require a successful exit and valid requested-alpha polar row for convergence; otherwise classify failed. Evidence-based status FR-30 src/cfdbender/solvers/xfoil/init.py; src/cfdbender/solvers/xfoil/_polar.py tests/tier1_offline/test_p0000_xfoil_execute.py::test_p0000_xfoil_no_requested_polar_row_is_failed; tests/tier1_offline/test_p0000_xfoil_execute.py::test_p0000_xfoil_invalid_polar_cannot_converge; tests/tier1_offline/test_p0000_xfoil_execute.py::test_p0000_xfoil_run_collect_post_sweep; tests/tier1_offline/test_p0000_xfoil_execute.py::test_p0000_xfoil_classification_does_not_use_iteration_limit
FR-44 FR-30 ROAD-1.4.4 L2 implemented test Collect printed polar coefficients with unit references and explicit axes. Interpretable results FR-30 src/cfdbender/solvers/xfoil/_polar.py tests/tier1_offline/test_p0000_xfoil_execute.py::test_p0000_xfoil_run_collect_post_sweep
FR-31 FR-19 ROAD-1.5 L2 pending integration test Support AVL after XFOIL. Solver roadmap FR-19 - -
FR-32 FR-19 ROAD-1.6 L1 implemented integration test Support QPROP as refined by FR-49 through FR-52. Solver roadmap FR-19 src/cfdbender/solvers/qprop/ tests/tier1_offline/test_p0000_qprop_plan.py; tests/tier1_offline/test_p0000_qprop_run.py
FR-53 FR-19 ROAD-1.9 L1 pending integration test Support XROTOR and QMIL after AVL. Solver roadmap FR-19 - -
FR-33 FR-19 ROAD-1.7 L1 implemented test Support PyFR workspaces as refined by FR-45 through FR-48. Solver adapter FR-19 src/cfdbender/solvers/pyfr/ tests/tier1_offline/test_p0000_pyfr_adapter.py
FR-45 FR-33 ROAD-1.7.2 L2 implemented test Initialize PyFR workspaces and plan a deterministic case.ini from Mach, Reynolds and alpha with the gmsh mesh staged; planning the same row twice is byte-identical. Reproducible plans FR-33 src/cfdbender/solvers/pyfr/_config.py tests/tier1_offline/test_p0000_pyfr_adapter.py (test_p0000_pyfr_plan_twice)
FR-46 FR-33 ROAD-1.7.3 L2 implemented test Run PyFR mesh import then the solver through a launcher in the point directory under the host process and memory guards. WSL GPU execution FR-33 src/cfdbender/solvers/pyfr/_execute.py tests/tier1_offline/test_p0000_pyfr_adapter.py (test_p0000_pyfr_run_collect)
FR-47 FR-33 ROAD-1.7.4 L2 implemented test Classify converged when the two halves of the averaging window agree within the row tolerance, iteration_limit when the window is too short or disagrees, and failed on a nonzero exit or a non-finite value. Evidence-based status FR-33 src/cfdbender/solvers/pyfr/init.py tests/tier1_offline/test_p0000_pyfr_adapter.py (test_p0000_pyfr_run_collect); tests/tier1_offline/test_p0000_pyfr_adapter.py (test_p0000_pyfr_window_halves_decide_stationarity)
FR-48 FR-33 ROAD-1.7.5 L2 implemented test Collect window-averaged Cl and Cd from the fluid-force file with chord 1, dynamic pressure 0.5 and the window recorded; the pitching moment is not available. A swapped force column must change the result. Interpretable results FR-33 src/cfdbender/solvers/pyfr/_history.py tests/tier1_offline/test_p0000_pyfr_adapter.py (test_p0000_pyfr_mutant_axes)
FR-49 FR-32 ROAD-1.6.1 L2 implemented test Slice a three-dimensional blade OBJ at a chosen number of radial stations, cosine or uniform, on the unrolled cylinder or on planes that follow the blade's skew, and recover radius, chord, pitch angle and unit-chord section shape under a stated convention. Blade geometry to sections FR-32 src/cfdbender/geometry/blade_sections.py tests/tier1_offline/test_geom_blade_sections.py::test_geom_blade_sections_recover_chord_and_beta; tests/tier1_offline/test_geom_blade_sections.py::test_geom_blade_sections_shape_is_unit_chord_with_upper_side_first
FR-50 FR-32 ROAD-1.6.2 L2 implemented test Plan QPROP points from a blade OBJ under inputs/geometry or a polars-2D set, with V, RPM or J, pitch, density, viscosity, speed of sound and the section count as matrix conditions, translating to byte-identical files and refusing any 2D solver other than xfoil. Reproducible QPROP plans FR-32 src/cfdbender/solvers/qprop/init.py; src/cfdbender/solvers/qprop/_config.py; src/cfdbender/solvers/qprop/_sections.py tests/tier1_offline/test_p0000_qprop_plan.py::test_p0000_qprop_plan_translate_twice_is_byte_identical; tests/tier1_offline/test_p0000_qprop_plan.py::test_p0000_qprop_solver_2d_refusal_names_the_accepted_values
FR-51 FR-32 ROAD-1.6.3 L2 implemented test Produce missing section polars by running XFOIL through the XFOIL adapter's execution path at each section's local Reynolds and Mach number, fit the per-station QPROP section parameters, retry a failed section with a narrower alpha range, then reuse the nearest good section and record it. Section polars FR-32 src/cfdbender/solvers/qprop/_execute.py; src/cfdbender/solvers/qprop/_polar.py; src/cfdbender/solvers/xfoil/_execute.py tests/tier1_offline/test_p0000_qprop_run.py::test_p0000_qprop_run_makes_missing_polars_with_xfoil_and_writes_the_prop_file; tests/tier1_offline/test_p0000_qprop_run.py::test_p0000_qprop_xfoil_failure_retries_with_a_narrower_alpha_range; tests/tier1_offline/test_p0000_qprop_run.py::test_p0000_qprop_xfoil_failure_twice_reuses_the_nearest_good_section; tests/tier1_offline/test_p0000_qprop_files.py::test_p0000_qprop_polar_fit_recovers_the_analytic_parameters
FR-52 FR-32 ROAD-1.6.4 L2 implemented test Run QPROP and collect J, CT and CP in QPROP's and the standard normalisation with efficiency, thrust, torque and power, reading its table by header names and classifying converged only with a parsed operating row. Interpretable results FR-32 src/cfdbender/solvers/qprop/_output.py; src/cfdbender/solvers/qprop/init.py tests/tier1_offline/test_p0000_qprop_run.py::test_p0000_qprop_collect_returns_both_normalisations_and_the_standard_ones; tests/tier1_offline/test_p0000_qprop_files.py::test_p0000_qprop_table_is_parsed_by_header_names; tests/tier1_offline/test_p0000_qprop_files.py::test_p0000_qprop_mutant_swapped_ct_cp_is_detected
FR-35 FR-19 ROAD-1.7.1 L2 pending integration test Run a power-off flapped high-lift CLmax campaign across fidelities: XFOIL or MSES polars, SU2 or OpenFOAM RANS sweeps in alpha and flap setting, and PyFR scale-resolving runs at the points near CLmax. Multi-fidelity CLmax FR-33 - -
FR-34 FR-19 ROAD-1.8 L2 pending integration test Support a lattice Boltzmann solver (OpenLB candidate) after PyFR. Solver roadmap FR-19 - -
NFR-1 - PLATFORM-1 L1 pending analysis Support Linux and Windows. Platform scope - - -
NFR-2 NFR-1 PLATFORM-1.1 L2 pending integration test Support the SU2 wrapper on Windows with WSL accepted. Native Windows wrapper support is UNVERIFIED. Platform route NFR-1 - -
NFR-3 NFR-1 PLATFORM-1.2 L2 pending integration test Verify compatibility across the locally observed SU2 8.6.0 and cluster 8.3.0; this compatibility is UNVERIFIED. Version difference NFR-1 - -
NFR-4 - PROCESS-1 L1 pending inspection Develop behavior with tests written before implementation. Test driven development - - -
NFR-5 - DOCS-1 L1 pending test Provide a documentation site showing every requirement. Accessible specification - - -
NFR-6 - LIC-1 L1 pending inspection Release cfdbender under the MIT licence. Licence decision - - -
NFR-7 - STABLE-1 L1 pending inspection Before 1.0.0, at least three solver adapters pass the conformance suite and the dependency is inverted so pyflightstream imports cfdbender. Stable release conditions - - -