{
  "stages": [
    {
      "id": "matrix",
      "label": "Read matrix rows",
      "source": "cases/matrix.py",
      "symbol": "read_matrix",
      "inputs": [
        "matrix file"
      ],
      "outputs": [
        "matrix rows"
      ],
      "parameters": "path: str | Path, *, active_only: bool=True",
      "returns": "list[MatrixRow]",
      "source_sha256": "e49037294a7f873916eeb99c2a68cfe690d61995103500fa5ae3340248a41c9e"
    },
    {
      "id": "resolve",
      "label": "Bind input library",
      "source": "workspace/matrix.py",
      "symbol": "resolve_matrix",
      "inputs": [
        "matrix rows",
        "geometry",
        "reference, setup, pproc and build"
      ],
      "outputs": [
        "resolved campaign"
      ],
      "parameters": "path: str | Path, workspace: CampaignWorkspace, *, name: str, fs_version: str | None, recipes: Mapping[str, str], fs_exe: str | Path | None=None, ignore_missing_families: bool=True, rows: list[MatrixRow] | None=None",
      "returns": "ResolvedMatrix",
      "source_sha256": "cc899ef45233048aee2d89894b253c6b2e0b2566c9f460563de5e1861ac04aaf"
    },
    {
      "id": "plan",
      "label": "Plan without solver",
      "source": "run/_plan.py",
      "symbol": "plan_campaign",
      "inputs": [
        "resolved campaign"
      ],
      "outputs": [
        "plan receipt and scripts"
      ],
      "parameters": "campaign: Campaign, workspace: CampaignWorkspace, *, recipes: dict[str, ScriptRecipe] | None=None, write_plan: bool=True, name_from: str | None=None, builds: Mapping[str, SolverBuild] | None=None, versions: Mapping[str, str] | None=None, matrix_path: str | Path | None=None, accept_unregistered_build: bool=False, setup_inspections: Sequence[dict[str, object]] | None=None, inflow_fft: bool=False, accepted_builds: Collection[str]=(), planned_order: Mapping[str, Sequence[str]] | None=None, row_builds: Sequence[str | None] | None=None",
      "returns": "CampaignPlan",
      "source_sha256": "949dc34a71631645269a8580c1a1d496631f39567873e4c4b8561c5133bb7c26"
    },
    {
      "id": "run",
      "label": "Execute campaign",
      "source": "run/_campaign.py",
      "symbol": "run_campaign",
      "inputs": [
        "resolved campaign",
        "plan receipt and scripts",
        "executor and assessor"
      ],
      "outputs": [
        "run records and solver exports"
      ],
      "parameters": "campaign: Campaign, executor: Executor, workspace: CampaignWorkspace, *, assess: OutcomeAssessor, recipes: dict[str, ScriptRecipe] | None=None, resume: bool=False, force_rerun: Sequence[str] | None=None, preflight: bool=True, builds: Mapping[str, SolverBuild] | None=None, name_from: str | None=None, quiet: bool=False, accept_unregistered_build: bool=False, sweep_csv: object=None, accepted_builds: Collection[str]=(), redo_submitted: bool=False, parallel: int | str | None=None",
      "returns": "list[RunRecord]",
      "source_sha256": "7d521490f28567ec1da9657fa9df8798071f80cb678f96b48fe46999b040a7be"
    },
    {
      "id": "collect",
      "label": "Collect submitted work",
      "source": "run/collect.py",
      "symbol": "collect_once",
      "inputs": [
        "run records and solver exports"
      ],
      "outputs": [
        "collected run records"
      ],
      "parameters": "workspace: CampaignWorkspace, *, interval: float=DEFAULT_SETTLE_INTERVAL_S, sleep: Callable[[float], None]=time.sleep, observer: Callable[[Iterable[Path]], dict[str, Stamp | None]]=observe, assessor: Callable[[RunRecord, Path], tuple[RunStatus, str | None]] | None=None, sims: Collection[str] | None=None, writes: CollectWrites | None=None",
      "returns": "CollectReport",
      "source_sha256": "69a424c580f1c37747f19a1463c08dfbede1509303536f7b495bbff62b02f8af"
    },
    {
      "id": "post",
      "label": "Build engineering products",
      "source": "post/products.py",
      "symbol": "write_campaign_products",
      "inputs": [
        "collected run records",
        "pproc and recorded definitions"
      ],
      "outputs": [
        "product tables, provenance and post log"
      ],
      "parameters": "workspace: CampaignWorkspace, *, warning_refusals: bool | None=None, overwrite: bool=False, archive: bool=False, archive_stamp: datetime | None=None, matrix_stem: str | None=None, check_frozen: bool=False, sims: Collection[str] | None=None, keep_unrebuilt: bool=False",
      "returns": "list[Path]",
      "source_sha256": "b5c5fc1da80c08329976f2892bf65a89011c8737d5045fd702836f062264ba30"
    },
    {
      "id": "refine",
      "label": "Refine source mesh",
      "source": "workspace/_refine/_level.py",
      "symbol": "refine_mesh",
      "inputs": [
        "source mesh and refinement settings"
      ],
      "outputs": [
        "geometry"
      ],
      "parameters": "mesh: str | os.PathLike[str], factor: float | None=None, *, warning_refusals: bool | None=None, families: Sequence[str] | None=None, parallel: float | None=None, normal: float | None=None, config: str | Path | None=None, out_dir: str | Path | None=None, overwrite: bool=False, keep_first_row: object=None, progress: Callable[[str], None] | None=None, accept_remesh: bool=False, accept_unknown: bool=False, force_factors: bool=True, visual_inspect: bool=False, keep_within_component: bool | None=None, audit: bool=True, chordwise: object=None, spanwise: object=None",
      "returns": "RefinedMesh | None",
      "source_sha256": "4e619bcdcbdc447f748eccb76797e0e407b3d1134f68f2f6f20bac20cf8dcc9f"
    }
  ],
  "cases": [
    {
      "id": "steady-polar",
      "title": "Steady wing polar",
      "workspace": "examples/using-CLI/steady-wing-polar/matrix.fs",
      "api": "examples/using-API/steady_wing_polar.py",
      "stages": [
        "matrix",
        "resolve",
        "plan",
        "run",
        "collect",
        "post"
      ],
      "products": "Steady polar coefficients, sections and provenance",
      "example_sha256": {
        "workspace": "d4ca5d4c811b6b74cfa4c5602b81165ddac60a60a576f11f663ca6fb3d6147c3",
        "api": "cd387231f0b0ebc3bc3b4281195cdf2a42769895b592442a6bc558b4bffede36"
      }
    },
    {
      "id": "unsteady-rotor",
      "title": "Unsteady isolated propeller",
      "workspace": "examples/using-CLI/unsteady-isolated-propeller/matrix.fs",
      "api": "examples/using-API/unsteady_isolated_propeller.py",
      "stages": [
        "matrix",
        "resolve",
        "plan",
        "run",
        "collect",
        "post"
      ],
      "products": "Windowed rotor coefficients and configured unsteady reductions",
      "example_sha256": {
        "workspace": "d4b54434c877ba6d23a0dcd9f305a8d7133f530d124f74611413512e471818d7",
        "api": "78b2fcddc1d0c18e09e022410e19b4d9f9db3ba797313056263064c2065d9428"
      }
    },
    {
      "id": "mesh-refinement",
      "title": "Campaign with mesh refinement",
      "workspace": "examples/using-CLI/mesh-refinement-campaign/matrix.fs",
      "api": "examples/using-API/mesh_refinement_campaign.py",
      "stages": [
        "refine",
        "matrix",
        "resolve",
        "plan",
        "run",
        "collect",
        "post"
      ],
      "products": "Comparable polar tables for the original and refined mesh",
      "example_sha256": {
        "workspace": "eccbb4b7ee4144a8097abd45faea13bef5d49e38a8203e0f21bde1e8cfb616ca",
        "api": "e574cb3ff658eb9e217f7344077b6e2715543f4e5a994265474897acb6604ae6"
      }
    }
  ],
  "edges": [
    {
      "source": "matrix",
      "target": "resolve",
      "artifact": "matrix rows"
    },
    {
      "source": "resolve",
      "target": "plan",
      "artifact": "resolved campaign"
    },
    {
      "source": "resolve",
      "target": "run",
      "artifact": "resolved campaign"
    },
    {
      "source": "plan",
      "target": "run",
      "artifact": "plan receipt and scripts"
    },
    {
      "source": "run",
      "target": "collect",
      "artifact": "run records and solver exports"
    },
    {
      "source": "collect",
      "target": "post",
      "artifact": "collected run records"
    },
    {
      "source": "refine",
      "target": "resolve",
      "artifact": "geometry"
    }
  ]
}
