Skip to content

Releases

v0.10.0 — Seven Witnesses

Choose a tag to compare

@github-actions github-actions released this 06 Nov 09:01
61450e0

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.
    • VectorField states 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 Dirichlet condition.
    • 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 vtk feature no longer depends on vtkio. 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::new returns Result<Self, OxiflowError> (#189).
  • IntegratorSpec::BDF2 gains sparse_threshold and jacobian_bandwidth (#133).
  • FluxDivergenceOperator gains the required method max_wave_speed (#228).
  • CouplingOperator::apply takes a &CouplingContext instead of a &ComputeContext (#231).
  • Scenario::validate rejects 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

Choose a tag to compare

@github-actions github-actions released this 16 Sep 11:55

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 parallel jobs enabled (previously commented out pending real use of the feature).

Not in this release

  • Dirty-flag caching (DD-015, #52) — closed without implementation this sprint.

Full changelog

See CHANGELOG.md for the complete entry.

Install:

[dependencies]
oxiflow = "0.9"

v0.8.0 — Computational Optimisation

Choose a tag to compare

@github-actions github-actions released this 03 Aug 18:02

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).

⚠️ MSRV raised: 1.80 → 1.84 — required by wgpu; no stable release of wgpu declares support for Rust 1.80.

Added

  • gpu feature: solver::gpu::GpuContext (adapter/device acquisition), to_gpu_bytes() (CPU↔GPU boundary conversion)
  • OxiflowError::GpuUnavailable

Changed

  • MSRV 1.80 → 1.84
  • GPU-READY annotation and column-major layout docs corrected on ContextValue
  • Zero rustdoc warnings across all features

Known limitations

  • No real-GPU CI test (no GPU hardware in CI runners)
  • BDF2Solver still lacks sparse builders (carried from v0.6.0)

Full changelog: see CHANGELOG.md

v0.7.0 — Nonlinear Time Integration

Choose a tag to compare

@github-actions github-actions released this 30 Jul 14:08

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::newton module: 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 / CrankNicolsonSolver gain with_newton_convergence(), with_jacobian_strategy(), with_max_newton_iterations() builders; theta_method_step_newton() routes through the generic loop (#111)
  • BDF2Solver gains 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 against finite_difference_jacobian`'s known catastrophic-cancellation floor on very stiff affine problems

IntegratorSpec extension

  • IntegratorSpec::BackwardEuler gains newton_convergence, jacobian_strategy, max_iterations fields (#114)
  • New IntegratorSpec::CrankNicolson variant, symmetric to BackwardEuler in every field (#115)
  • New IntegratorSpec::BDF2 variant — Newton fields only, deliberately no sparse fields (BDF2Solver has no sparse builders to map) (#116)
  • NewtonConvergence / JacobianStrategy gain serde::Deserialize under the serde feature

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 on BackwardEulerSolver/CrankNicolsonSolver silently keeps the sparse path single-shot
  • BDF2Solver still 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

Choose a tag to compare

@github-actions github-actions released this 21 Jul 12:02

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

Choose a tag to compare

@github-actions github-actions released this 17 Jul 06:29

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, CenteredLaplacian
  • operators::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 reconstruction
  • operators::adaptive — AdaptiveFlux, Péclet-gated WENO/limiter blend
  • FluxBoundary::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

Choose a tag to compare

@github-actions github-actions released this 25 Jun 16:26

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) and CrankNicolsonSolver (order 2), sharing a theta-method core and a new dense LinearSolver backend (NalgebraDenseSolver)
  • Multi-step: BDF2Solver (order 2), introducing bounded-history support in SteppableSolver
  • Adaptive: DoPri45Solver (Dormand-Prince, 7-stage FSAL, order 5) with a shared PI StepSizeController, activating StepControl::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: MultiDomainOrchestrator enters real use, validated by a first end-to-end lahar–lake integration test

Added

  • SteppableSolver trait — single-step step() primitive
  • RK4Solver, BackwardEulerSolver, CrankNicolsonSolver, BDF2Solver, DoPri45Solver, OperatorSplittingSolver
  • LinearSolver trait + NalgebraDenseSolver (dense LU)
  • StepSizeController — PI step-size control with source-agnostic error norm
  • CompositeModel — sums multiple PhysicalModel contributions on a shared
    state; bookkeeping carrier and monolithic reference solution for IMEX
  • SteppableSolver::history_depth() / history parameter, and solve_fixed_step() default method factoring out the fixed-step loop
  • IntegratorKind::Imex
  • MultiDomainOrchestrator integration test (lahar–lake prototype)

Changed

  • SteppableSolver::step() now takes a history: &[ContextValue] parameter (no behaviour change for one-step solvers)
  • BoundaryCondition now requires Send + Sync — additive, no impact on existing implementations

Fixed

  • ForwardEulerSolver boundary-condition handling
  • RK4Solver boundary 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

Choose a tag to compare

@github-actions github-actions released this 03 Jun 05:32

What's Changed

Added — Multi-Component & Multi-Domain Coupling (J3)

  • PhysicalQuantity indexed enum (src/context/quantity.rs) — variants Concentration { component }, Temperature, Pressure, Velocity { component }, Custom { name, component } with idiomatic single-component constructors (DD-010, #10)
  • MultiDomainState (src/context/state.rs) — composite key HashMap<(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)
  • CouplingOperator trait (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 — PhysicalQuantity and MultiDomainState serialisable; serde_json added 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

Choose a tag to compare

@github-actions github-actions released this 02 May 13:01

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

Choose a tag to compare

@github-actions github-actions released this 12 Apr 13:26
8e0f006

What's Changed

📖 Documentation

  • Complete core architecture — context, model, solver, mesh, docs (#64) @biface

🔧 Maintenance

  • Complete core architecture — context, model, solver, mesh, docs (#64) @biface

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