Repository navigation
Releases
v0.10.0 — Seven Witnesses
oxiflow 0.10.0 — Stable Ecosystem (J10)
Stabilisation milestone before the mesh cycle: seven validated reference examples, the FEM invariant audit, a stricter API with SemVer and MSRV checks in CI, and the open debts settled. Full details in CHANGELOG.md.
Highlights
- Seven reference examples (#173), each checked against its validation reference, with result plots and SVG animations:
- competitive frontal analysis;
- transient heat transfer;
- Gray–Scott 1D;
- Burgers boundary layer;
- Terzaghi consolidation;
- magnetic diffusion;
- a lahar front running into a lake, on coupled grids.
- Integrators.
VectorFieldstates run on every integrator.- Newton is iterated on the banded path.
- BDF2 has its sparse builders.
- The finite-difference Jacobians are assembled per format, with parallel dispatch.
- Boundaries and context.
- Constrained nodes and boundary regions.
- A public
Dirichletcondition. - c(x, t) coefficients.
- Shared context values.
- Multi-domain runs.
- Phase 1 of the orchestrator is parallelised.
- Domains can be described by data (
DomainSpec). - Domain identifiers and interfaces are checked.
- Each coupling receives one context per side of its interface.
- Stability. The explicit integrators own the advective stability check. The implicit integrators are no longer held to a Courant number of 1.
- Security. The
vtkfeature no longer depends onvtkio. Three RUSTSEC advisories are gone from the dependency tree.
Breaking changes
In 0.x a minor release may break the API. Each change is described under Breaking: in the changelog.
UniformGrid1D::newreturnsResult<Self, OxiflowError>(#189).IntegratorSpec::BDF2gainssparse_thresholdandjacobian_bandwidth(#133).FluxDivergenceOperatorgains the required methodmax_wave_speed(#228).CouplingOperator::applytakes a&CouplingContextinstead of a&ComputeContext(#231).Scenario::validaterejects an initial state whose size does not match the mesh (#212). This is a change of behaviour, not of signature.
Fix without its own issue
DanckwertsInlet diverged as soon as κ = D / (v Δx) > 1, that is (n − 1) / Pe > 1 on a uniform grid. The inlet value was recomputed from its own previous value at each evaluation, with a factor −κ. It is now set from its neighbour, and the fix came with the constrained-node work of #201 (973e2ed). No bug issue was opened for it.
Full Changelog: v0.10.0...v0.9.0
v0.9.0 — Mudflow Momentum
Summary
Per-site parallel dispatch calibration, a four-model Criterion benchmark suite, a new physically-representative lahar model, and SVG reference plots for all four benchmark models.
Added
Parallel dispatch (DD-014, DD-048) Per-site calibration rather than a single crate-wide threshold — measured, not assumed, for every site:
| Site | Default threshold | Crossover measured |
|---|---|---|
fd.rs stencils |
49_999 |
10M–30M nodes |
langmuir_multi row loop |
1_000 |
100–1,000 |
lahar_multifield friction/erosion loop |
1_000 |
100–1,000 |
lahar_multifield flux divergence |
10_000 |
1,000–10,000 (unstable at 1,000) |
Shared ParallelThreshold/calibrate_parallel_threshold mechanism (src/solver/parallel.rs) added for future src/-internal sites.
Criterion benchmark suite (#53) benches/oxiflow_parallel (renamed from oxiflow_benchmarks), four models — diffusion_1d, viscous_burgers, langmuir_multi, lahar_multifield.
Lahar multi-field model (DD-032, #139) Woodhouse, Hogg & Phillips' shallow-layer equations, reduced to 1D: four coupled conservative quantities — mass, momentum, solids, and bed elevation — rather than three, since the bed genuinely evolves and feeds back into the flow. Rusanov flux with MinMod-limited MUSCL reconstruction, full Pouliquen-Forterre + Chézy blended friction, Shields-threshold erosion, Soulsby/Richardson-Zaki hindered-settling deposition. Validated against three independent regimes: an early-inertial scaling law (0.3% error), a Chézy-drag-dominated scaling law (7.7% at t=10s), and a qualitative slump-and-stall pattern for constant-Coulomb friction, matching the paper's own documented behaviour.
SVG reference plots (#145) One dedicated example per benchmark model, each matching its literature figure or chrom-rs's own chromatogram output: diffusion_1d_plot, viscous_burgers_plot, langmuir_multi_plot, lahar_multifield_plot.
Changed
- Criterion bench target renamed
oxiflow_benchmarks→oxiflow_parallel. - CI:
clippy/test --features paralleljobs enabled (previously commented out pending real use of the feature).
Not in this release
Full changelog
See CHANGELOG.md for the complete entry.
Install:
[dependencies]
oxiflow = "0.9"v0.8.0 — Computational Optimisation
Highlights
GPU-readiness lands: a gpu feature flag built on the invariants DD-026 fixed back in v0.3.0, backed by wgpu (Vulkan/Metal/DX12).
wgpu; no stable release of wgpu declares support for Rust 1.80.
Added
gpufeature:solver::gpu::GpuContext(adapter/device acquisition),to_gpu_bytes()(CPU↔GPU boundary conversion)OxiflowError::GpuUnavailable
Changed
- MSRV 1.80 → 1.84
GPU-READYannotation and column-major layout docs corrected onContextValue- Zero rustdoc warnings across all features
Known limitations
- No real-GPU CI test (no GPU hardware in CI runners)
BDF2Solverstill lacks sparse builders (carried from v0.6.0)
Full changelog: see CHANGELOG.md
v0.7.0 — Nonlinear Time Integration
Highlights
This release activates #86 's long-anticipated Option A: iterated Newton correction for oxiflow's implicit integrators. Backward Euler,
Crank-Nicolson, and BDF2 previously performed exactly one frozen-Jacobian correction per step — exact for affine problems, only first-order-accurate otherwise. They can now iterate to a configurable convergence criterion, with a choice of Jacobian refresh strategy and iteration budget, while every existing zero-config call site reproduces the pre- #109 behaviour exactly.
IntegratorSpec — the serialisable config DTO introduced in v0.6.0 for BackwardEuler — is extended to carry this new Newton configuration, and gains matching CrankNicolson and BDF2 variants of its own.
Alongside this, a known-but-untested #86 limitation (how the perturbed Jacobian interacts with a Dirichlet boundary condition) finally gets
dedicated test coverage, and #81 (Runge-Kutta-Nyström for second-order-in-time problems) is formally closed — deferred, per its own
stated trigger, since no acoustics use case has landed yet to justify it.
What's Changed
Iterated Newton core
- New
solver::methods::newtonmodule:NewtonConvergence(ResidualOnly/CombinedOr/CombinedAnd),JacobianStrategy(ModifiedFrozen/FullNewton/ModifiedWithStagnationCheck), and the generic convergence loop shared by every implicit integrator (#109, #110) OxiflowError::NewtonNotConverged { iterations, residual }
Wiring into the implicit integrators
BackwardEulerSolver/CrankNicolsonSolvergainwith_newton_convergence(),with_jacobian_strategy(),with_max_newton_iterations()builders;theta_method_step_newton()routes through the generic loop (#111)BDF2Solvergains the same three builders;bdf2_step_newton()routes its own residual through the generic loop. The startup/bootstrap step is unaffected — it always uses the non-configurable single-correction path (#112)stiff_jacobian_convergence()— the tolerance every zero-config constructor uses internally, distinct from NewtonConvergence::default(), calibrated againstfinite_difference_jacobian`'s known catastrophic-cancellation floor on very stiff affine problems
IntegratorSpec extension
IntegratorSpec::BackwardEulergainsnewton_convergence,jacobian_strategy,max_iterationsfields (#114)- New
IntegratorSpec::CrankNicolsonvariant, symmetric toBackwardEulerin every field (#115) - New
IntegratorSpec::BDF2variant — Newton fields only, deliberately no sparse fields (BDF2Solverhas no sparse builders to map) (#116) NewtonConvergence/JacobianStrategygainserde::Deserializeunder theserdefeature
Test coverage & housekeeping
- Dedicated test for the perturbed-Jacobian × Dirichlet boundary-condition interaction, closing a gap documented since DD-033 / v0.4.0 (#113)
- #81 (RKN for second-order-in-time problems) closed: deferred with Option A (order reduction) recorded as the provisional default — no code change, no acoustics use case has landed to justify Option B
Known gaps carried forward
- Sparse dispatch (
theta_method_step_adaptive, #103) is not yet Newton-aware — configuring both a sparse backend and a non-default
Newton budget onBackwardEulerSolver/CrankNicolsonSolversilently keeps the sparse path single-shot BDF2Solverstill has no sparse builders (pre-existing #103 gap)
FEM Invariants Status
| Invariant | Description | Status this release |
|---|---|---|
| INV-1 | Mesh abstract, PhysicalState carries no grid assumptions |
Unaffected |
| INV-2 | DiscreteOperator abstract, integrators generic over scheme |
Unaffected |
| INV-3 | CouplingOperator supports distinct domains, moving interfaces |
Unaffected |
| INV-4 | All public traits object-safe | Unaffected — Solver, BoundaryCondition remain object-safe with the new builders (builders return Self, not &mut dyn Solver) |
Full Changelog: v0.6.0...v0.7.0
v0.6.0 — Sparse and Persistence
v0.6.0 — Sparse Linear Algebra & Persistence
Sparse linear algebra and persistence: a faer-backed sparse solver path for implicit integrators, a crash/checkpoint snapshot mechanism, HDF5-backed loading of experimental tabulated data, XML VTK export for ParaView/VisIt, and the first config-driven integrator selection DTO.
See CHANGELOG.md for the full list.
New feature flags: sparse, vtk — see README.
Full Changelog: v0.5.0...v0.6.0
v0.5.0 — Spatial Discretisation
Highlights
Spatial discretization layer for oxiflow (INV-2): two sibling traits — DiscreteOperator (FD, context-free) and FluxDivergenceOperator (FV, WENO, limiters, adaptive selection — needs physical parameters) — plus three explicit FluxBoundary treatments (Periodic, Truncation, GhostCell) and the DiscretizedModel<Op> composite that wires any of them into PhysicalModel.
operators::fd—UpwindGradient,CenteredGradient,CenteredLaplacianoperators::fv—FVCenteredFlux,FVUpwindFlux(cell-average semantics)operators::weno—WENO3,WENO5(Jiang-Shu substencils, WENO-Z nonlinear weighting for critical-point accuracy)operators::limiters—MinMod/VanLeer/Superbee, MUSCL reconstructionoperators::adaptive—AdaptiveFlux, Péclet-gated WENO/limiter blendFluxBoundary::GhostCell+BoundaryCondition::ghost_value— real boundary physics via a method-of-images ghost-cell convention, exact at every depth for a Robin condition
Six design decisions closed this milestone: #12 (amendment), #92, #95, #96, #98, #100 (+ amendment 1).
What's Changed
FEM Invariants Status
| INV | Description | Status |
|---|---|---|
| INV-1 | Mesh abstrait | ✅ Active |
| INV-2 | DiscreteOperator générique | ✅ Active |
| INV-3 | CouplingOperator inter-domaines | ✅ Active |
| INV-4 | API plugin-safe | ⬜ Pending |
Full Changelog: v0.4.0...v0.5.0
v0.4.0 — Time Integration
Highlights
This release delivers the full J4a integrator suite: every major family of time-stepping scheme — explicit, implicit, multi-step, adaptive, and operator-split — is now implemented behind a common SteppableSolver/ Solver abstraction, alongside the dense linear-solver backend implicit methods depend on and the multi-domain orchestration that puts them to work together.
- Explicit:
RK4Solver(4-stage, order 4), alongside existing Forward Euler - Implicit:
BackwardEulerSolver(order 1) andCrankNicolsonSolver(order 2), sharing a theta-method core and a new denseLinearSolverbackend (NalgebraDenseSolver) - Multi-step:
BDF2Solver(order 2), introducing bounded-history support inSteppableSolver - Adaptive:
DoPri45Solver(Dormand-Prince, 7-stage FSAL, order 5) with a shared PIStepSizeController, activatingStepControl::Adaptive - Operator-split:
OperatorSplittingSolver(Strang scheme, n ≥ 2 operators) for IMEX-style composition of physical models sharing one state — the first formalization of temporal/operator coupling as distinct from the cross-domain spatial coupling (INV-3) - Orchestration:
MultiDomainOrchestratorenters real use, validated by a first end-to-end lahar–lake integration test
Added
SteppableSolvertrait — single-stepstep()primitiveRK4Solver,BackwardEulerSolver,CrankNicolsonSolver,BDF2Solver,DoPri45Solver,OperatorSplittingSolverLinearSolvertrait +NalgebraDenseSolver(dense LU)StepSizeController— PI step-size control with source-agnostic error normCompositeModel— sums multiplePhysicalModelcontributions on a shared
state; bookkeeping carrier and monolithic reference solution for IMEXSteppableSolver::history_depth()/historyparameter, andsolve_fixed_step()default method factoring out the fixed-step loopIntegratorKind::ImexMultiDomainOrchestratorintegration test (lahar–lake prototype)
Changed
SteppableSolver::step()now takes ahistory: &[ContextValue]parameter (no behaviour change for one-step solvers)BoundaryConditionnow requiresSend + Sync— additive, no impact on existing implementations
Fixed
ForwardEulerSolverboundary-condition handlingRK4Solverboundary conditions now applied at every stage, not once per step; floating-point accumulation corrected in multi-stage state combination
Design decisions
Read #13, #82, #86, #87, #88, #89 and #90 to get the rationale.
Full changelog: v0.3.0...v0.4.0
v0.3.0 — Domain Bridge
What's Changed
Added — Multi-Component & Multi-Domain Coupling (J3)
PhysicalQuantityindexed enum (src/context/quantity.rs) — variantsConcentration { component },Temperature,Pressure,Velocity { component },Custom { name, component }with idiomatic single-component constructors (DD-010, #10)MultiDomainState(src/context/state.rs) — composite keyHashMap<(DomainId, PhysicalQuantity), ContextValue>; explicit entry JSON serialisation for external tool readability (DD-010, #38)Interface(src/coupling/mod.rs) — typed source/target domain boundary with optional label (DD-011, #11)CouplingOperatortrait (src/coupling/mod.rs) —RequiresContext + Send + Sync, object-safe, INV-3 active from this release (DD-011, #11)Scenario::with_coupling()builder — registers operator and interface atomically (#73)Scenario::context_requirements()now aggregates coupling operator variables (J3, #73)- Integration test
tests/coupling_proto.rs— proto lahar–lake validates the INV-3 structural contract (J3 exit criterion, #73)
Feature flags
serde—PhysicalQuantityandMultiDomainStateserialisable;serde_jsonadded to dev-dependencies (#69)
FEM Invariants Status
| INV | Description | Status |
|---|---|---|
| INV-1 | Abstract Mesh — PhysicalState carries no grid assumptions | ✅ Active (v0.1.0) |
| INV-2 | Abstract DiscreteOperator — integrators generic over the scheme | ⬜ Pending (v0.5.0) |
| INV-3 | CouplingOperator — inter-domain coupling only via formal trait | ✅ Active (v0.3.0) |
| INV-4 | Plugin-safe API — all public traits object-safe for third-party crates | ⬜ Pending (v2.0.0) |
Full Changelog: v0.2.0...v0.3.0
v0.2.0 — Nerve System
What's Changed
📖 Documentation
- feat(v0.2.0): Complete Context — boundary conditions, calculator chain, built-in calculators (#72) @biface
🔧 Maintenance
- feat(v0.2.0): Complete Context — boundary conditions, calculator chain, built-in calculators (#72) @biface
FEM Invariants Status
| INV | Description | Status |
|---|---|---|
| INV-1 | Mesh abstrait | ✅ Active |
| INV-2 | DiscreteOperator générique | |
| INV-3 | CouplingOperator inter-domaines | |
| INV-4 | API plugin-safe |
Full Changelog: v0.1.0...v0.2.0
v0.1.0 — Bedrock
What's Changed
📖 Documentation
🔧 Maintenance
FEM Invariants Status
| INV | Description | Status |
|---|---|---|
| INV-1 | Mesh abstrait | ✅ Active |
| INV-2 | DiscreteOperator générique | ⬜ |
| INV-3 | CouplingOperator inter-domaines | ⬜ Pending |
| INV-4 | API plugin-safe | ⬜ |
Full Changelog: ...v0.1.0