| doc_id | DOC-REF-API-002 |
|---|---|
| revision | 1.2 |
| status | controlled_candidate |
| applicable_version | 0.2.12 |
| reviewer | GPT-6 Luna — WP11 contract review (2026-10-25) |
| approver | Owner — WP11 policy decision (2026-10-25; not release approval) |
This page describes the public API surface of QF Solver 0.2.12.
Reviewed by GPT-6 Luna on 2026-10-25 against the WP11 acceptance scope. The
Owner decision dated 2026-10-25 approves the documented result contract and
work-package boundaries; it does not approve release publication or scientific
qualification. This reference remains controlled_candidate pending separate
release-document control.
New integrations should import from qf_solver:
from qf_solver import check_mesh, load_model, save_result, solve_modelThe standard flow is load_model -> check_mesh -> solve_model -> save_result.
The complete symbol inventory, signatures, stability categories, and exception
contract are maintained in the qf_solver API contract.
The package version is available without importing implementation modules:
from qf_solver import __version__
print(__version__)The solveur namespace remains a compatibility facade for existing 0.2.x
applications. The recommended CLI is qf-solver; legacy entry points remain
available during the 0.2.x compatibility period. The current compatibility
plan schedules removal of the legacy solveur-ef launcher for 0.3.0; this is
a plan, not a removal in 0.2.12.
JSON v1 inputs remain supported where the documented schema permits them. CLI commands and stable exit codes are part of the public interface. Interface stability does not qualify every element, analysis or material combination; the active 0.2.8 consolidated registry and separate mixed-workflow/capability records define those boundaries.
qf_solver.read_inp(path) remains PROVISIONAL; it covers only the documented
bounded Abaqus/CalculiX subset and is not a full-format compatibility claim.
Version 0.2.11 introduced rotating_modal and campbell JSON
routes with EXPERIMENTAL maturity. They are not part of the published
0.2.10 API contract. Their complex result schemas are provisional
and must not be treated as stable for downstream integrations. Package
publication does not promote numerical maturity or schema stability. See the rotating-modal
scope and Campbell scope.
Version 0.2.12 adds the provisional WP-D02 stress-recovery wrappers described
in the public API contract. Their
qf-dynamic-solid-stress/v1 payload is explicitly experimental and not assessed
for qualification; its bounded element/material scope is not a general
stress-recovery guarantee.
The family-aware mixed HDF5 functions are also PROVISIONAL and
EXPERIMENTAL_BOUNDED: they cover the documented schema-v1.0 TET4/WEDGE6/HEX8
result-storage path only. Internal implementation symbols under solveur are
not stable API exports unless listed in the API contract.
The ordinary SolveResult, ModalResult, DynamicResult, and HarmonicResult
objects expose to_dict() and are written by save_result; they do not share
one versioned result schema or a generic result deserializer. The experimental
modal-Newmark and reduced-harmonic DTOs have separate versioned contracts and
from_dict() methods. Do not infer cross-version round-trip compatibility
where the individual result contract does not declare it.
save_result(result, path) refuses to replace an existing path by default.
Call save_result(result, path, overwrite=True) when replacement is intended.
The CLI exposes --overwrite on commands that write a JSON result or report
through this API. This explicit option preserves the replacement capability;
callers that depended on implicit replacement must opt in during migration.