Version history

ember roughly follows semantic versioning starting at 0.1.0. However, until 1.0.0, minor releases may make breaking changes to the public API without a deprecation period.

0.6.0 (2026-11-28)

  • Add cut.structured_traverse: a blade-free traverse cut as one structured 2D block, hub to casing by once round the pitch, built from the grid’s own lines. Where a block’s grid lines cross the cut cleanly, each node is interpolated along one grid edge, as a vertex of cut.unstructured is; only where they cross it part-way, as near an O-grid’s nose, is the sheet filled from the cut’s triangles. An inclined cut that crosses one block near the hub and the next near the casing is built a spanwise surface at a time, every row but the one at the interface exact. Far more accurate and faster than cut.unstructured followed by cut.interpolate_to_structured

  • Add untwist to cut.structured_traverse: slide each row of the sheet round so its columns lie at constant theta rather than following grid lines that twist round the annulus, the data interpolated along the rows by monotone cubics at a multiple of the theta density. Off by default, as it costs accuracy where flow features twist with the grid

  • Add cut.structured_multiblock: any cut, through blades and tip gaps too, as a list of structured 2D blocks built from the grid’s own lines. Where the cut makes one sheet it is that of cut.structured_traverse; where it meets a solid, the sheet is split at the solid, and a tip gap meshed in blocks of its own comes back as a block of its own. A grid of several blade rows is cut a row at a time

  • Remove cut.structured_meridional: cut.structured_multiblock gives the same blade-to-blade cut on the spanwise lines, as fast, and also cuts through O-grids and tip gaps without NaN padding. It raises where the cut misses the grid, rather than returning an empty Grid

  • Remove cut.interpolate_to_structured: cut.structured_traverse and cut.structured_multiblock give a structured cut directly from the grid’s own lines, far more accurately

  • Remove cut.signed_distance, whose sign, taken from the nearest segment, could change away from the cut; the cuts measure their own

  • Make cut.CUT_EXTEND private

  • UnstructuredBlock now wraps a 1D Block rather than subclassing one: the flow is set and read through nodes, and the faces are given to the constructor, UnstructuredBlock(nodes, i_face). set_faces, faces, n_vert and empty are replaced by i_face and n_node, and the array operations that raised are gone

  • Move cut.triangulate_to_unstructured(block) to UnstructuredBlock.from_structured(block), which raises ValueError rather than AssertionError for a block that is not 2D

  • cut.unstructured returns a list, one UnstructuredBlock per blade row it crosses, each with its own row’s metadata, rather than one block joining every row with the metadata of the last block it crossed. It raises ValueError where the cut misses the grid, as the structured cuts do, rather than returning None

  • Speedup every cut along a curve of more than one segment: its distance field is screened in smaller tiles, against pieces of the curve set up once, so a mid-span cut through a radial impeller’s O-grid takes 20 ms rather than 32 ms to find where it crosses the grid

  • Fix Grid.rows splitting a grid into one row per block wherever its periodic patches failed to pair, or its blocks had none: rows are now separated by mixing planes only, so a grid with none is one row, and a patch that fails to pair, a grid with mixing planes but no inlet or outlet, or a block joined to no row raises ValueError. Cusp patches join blocks within a row, as periodic ones do

  • Add Grid.snap_periodic: move every periodically paired node onto the mean of its copies, so nodes a mesher meant to coincide do so exactly

  • Rename average.mass_band to average.streamtube, which says what it returns, and its axis argument to along, as it names the axis the mass fraction runs along, the opposite sense to axes in the averaging functions

  • Support trailing axes in average.mass_average and average.area_average: fields stacked on a last axis are averaged separately in one pass, the face weights computed once

  • Remove average.flow_conserved_nd and average.total_area_nd: average.flow_conserved and average.total_area give the same in SI

  • Fix average.streamtube copying through a node that one end of the band fell within round-off of, which made a strip of faces with next to no area

  • Fix average.mix_out returning a NaN state as converged: a NaN residual now raises RuntimeError, and nothing is printed. A non-positive AR or a cut with circumferential projected area raises ValueError

  • Speedup average.mix_out about tenfold: Newton steps with a backtracking line search, held on the subsonic or supersonic branch of the cut, converge in three to seven steps where a fixed relaxation took about 160. Its tolerance is floored at float32 resolution of the flows, so a cut below Ma=0.02 or so no longer fails to converge

  • Fix average.mix_out choosing between its subsonic and supersonic solutions by an unweighted mean over the nodes, so that clustering nodes into the boundary layers could turn a supersonic mixed-out state subsonic. The branch is now that of the mass-averaged Mach number through the cut, and a supersonic state that would lower the entropy, as across a strong shear layer, gives way to the subsonic one. Transonic cuts may now mix out supersonic, with a lower loss, where they mixed out subsonic. A choked cut, with neither, says so in its RuntimeError

  • Add supersonic to set_iterative.set_ho_s_rhoVm_Vt_Beta, to solve for the supersonic meridional branch, everywhere or element by element, and with it support AR != 1 in average.mix_out for a supersonic mixed-out state, which raised NotImplementedError

  • Add axes to average.mix_out, as in the averaging functions: with axes=(1,) each strip of faces along axis 1 is mixed out on its own, a pitchwise mix-out giving one state per strip along the span. One solve serves every strip, each with its own line search and branch, some twenty times faster than mixing out the strips one by one; the whole-cut mix-out is the case of a single strip. A strip that fails raises, naming it

  • Remove ember.fluxes: its flux tensors serve only ember.average, where they are now private, one face flux for structured and unstructured cuts alike. The dimensional get_flux, the 1D line fluxes and the get_flux_nd dispatcher go with it, used by nothing but their tests

  • Fix average.mix_out accepting a cut that is not a surface of revolution when its faces’ theta area cancels round the pitch, as a cut wavy in x does: the gross theta area of the faces, not their total, must now be below 1e-3 of their meridional area

  • Fix the zero-net-flux checks in average.mass_average and average.streamtube depending on the scale of the case: the net flow is now compared with the gross face flow. Nodal data of the wrong shape for the block raises ValueError

0.5.0 (2026-11-25)

  • Make ember.outlet.calc_radial_equilibrium(patch) a method OutletPatch.calc_radial_equilibrium()

  • Fix Grid.resample leaving nodes unmatched across periodic and cusp interfaces between blocks, at any factor but a whole number: critical indices are now carried across every patch including mixing planes

  • Grid.resample places new coordinates on monotone cubics through the old grid lines, not straight lines, so a stretched grid stays smoothly stretched and a curved wall is not faceted

  • Add mult to Grid.resample, block_util.resample and util.resample: each segment between critical indices gets a multiple of that many cells, for rounding to a multigrid depth

  • Add ceilings to elliptic.winslow_sweeps: the most length of each cell of the lines out from a wall, as floors is the least, each sweep pulling in a node further than that from the one inside it

  • Add ember.unstructured.UnstructuredBlock storing flow data at the vertices of a triangulated surface, replacing the old Block.triangulated flag which duplicated data at shared vertices

  • Fix average.mass_average raising on an unstructured cut

  • cut.interpolate_to_structured carries the coordinates, conserved variables and metadata of the cut, but not solver fields such as the wall distance; average.mix_out no longer shares the cut’s patches

  • A cut along a single straight segment, in cut.unstructured and cut.structured_meridional, now runs along the whole of its line across every block it reaches, rather than stopping near the segment’s ends

  • Speedup cut.unstructured and cut.structured_meridional: calculating distances only near the cut line in single precision; fused kernels for both cut types in single precision; a straight cut does no search over segments

0.4.10 (2026-11-19)

  • Add optional spacing floor to elliptic Winslow sweeps that enforces a minimum spacing on wall-normal grid lines

  • Raise an error during Winslow sweeps if a coordinate becomes NaN or infinite, instead of hanging forever

0.4.9 (2026-11-17)

  • Add a relaxation factor to elliptic Winslow sweeps to suppress instability

  • Instead of erroring when a block does not divide evenly into the specified multigrid levels, warn and allow blocks to run with fewer levels than requested

  • Fix mixing out stalling on constant-radius cuts with swirl

0.4.8 (2026-11-09)

  • Add merged to Grid.align_cart_unstr, set_primitive_cart_unstr and set_conserved_cart_unstr, to accept a point cloud holding the coincident nodes where blocks meet only once

  • Add Block.Omega_wall, the per-face wall angular velocity in rad/s

0.4.7 (2026-11-07)

  • Add an orthogonality option to the compiled elliptic smoothing kernel

0.4.6 (2026-10-31)

  • Add Solver.n_step_dt, the number of steps between time step updates, defaulting to 5

  • Add Grid.add_polar_source, the polar source without the time step pass

  • Add orth and slide_wall to elliptic.winslow_sweeps, to square the grid at a wall and to slide wall nodes only part of the way

  • Add BaseSolver.restart, a copy of a solver without its start-up ramp to continue a solution; the built-in solver has none and returns itself

  • Fix block_util.concatenate refusing three or more blocks that have no Omega, by no longer setting one on the result when neither input has it

  • Add a workdir argument to BaseSolver.run, where that run keeps its files, for a solver that runs outside the process; the built-in one ignores it

  • Add ignore_inviscid to Grid.calculate_wdist, to leave slip walls out of the walls distance is measured to

  • Add ConvergenceHistory.check_steady and fluc_mdot, the relative rms of mass flow over the end of the march

  • Never match patch coordinates tighter than sixteen steps of their storage precision, so a face small against its radius pairs in float32

  • Fix cuts ending on a sloped endwall, arc length along a cut through scattered vertices, and gaps in a cut skewed by more than a pitch

0.4.5 (2026-10-13)

  • Allow the pitchwise node distribution of a surface-of-revolution patch to change along the span; a fast path remains for same distribution up span

  • Add some kernels for 2D mesh generation in ember.elliptic

  • Exchange flow field across non-matching patches during a solve

  • Fix a bug where patches attached twice when extending the collection

  • Make grid line snapping of meridional guesses optional via a flag

0.4.4 (2026-09-30)

  • Add ember.average.mass_band, the part of a structured 2D cut carrying a given band of mass fraction, such as a midspan streamsurface

  • Fix ember.cut.interpolate_to_structured putting nodes in empty space when cutting through a solid

  • Add Reichardt wall function

  • Fix bug with halved interior viscous stresses and heat fluxes

  • Apply the wall-law stress on the wall face itself, not on the face above the wall cell, and stop masking the wall cell’s viscous force

  • Add a prescribed transition property Block.fac_lam, to scale interior turbulent viscosity down and wall function toward laminar

  • Add Solver.sf2_T, a separate weight on the temperature limb of the adaptive smoothing sensor, defaulting to sf2

0.4.3 (2026-09-16)

  • Match periodic patches on a difference in theta, instead of wrapping each face separately, relax tolerance slightly

  • Divergence check now raises on negative pressure

  • Add endwall bands to mixing plane exchange, reducing the mean relaxation approaching the hub and casing by a specified factor, and turning off the harmonic relaxation entirely

0.4.2 (2026-09-12)

  • Add Jameson-style adaptive smoothing

  • Allow cusp patches over partial j ranges

  • Add affordances for faces collapsing to zero area: wall function clipping and NotWallPatch to exempt collapsed nodes from the wall distance calculation

  • Add a soft-start reconfiguration method BaseSolver.soft()

0.4.1 (2026-09-10)

  • Promote cut.signed_distance to public API

  • Made performance improvements to cutting functions

0.4.0 (2026-09-01)

  • Multigrid now applies a uniform coarse correction to the fine nodes, instead of linearly interpolating through the coarse cell centers. This is more stable on clustered grids.

  • The equation-of-state-agnostic fluid base class is now public as Fluid, renamed from _Fluid, and carries the shared from_dict/to_dict and change_* contract.

  • Trimmed the realgas_fit public surface to fit, sample_coolprop, FitResult and FitInfo; legfit2d is now private, and the pure Legendre/coordinate helpers move to the ember._realgas_poly leaf module.

0.3.0 (2026-08-31)

  • Selective frequency damping is available again.

  • Add OutletPatch.P_throttle, the static pressure level a throttled outlet has been adjusted to. It is equal to the initially prescribed pressure plus the mass flow PID correction. Also for consistency renamed the throttle pressure correction from P_throttle to dP_throttle in ConvergenceHistory.

  • Delete Block.xlen_sq_nd and Block.conserved_cell_nd, calculate them inline in the Fortran kernels instead.

  • Add RealFluid real-gas equation of state and fitting module, following Wheeler (2024) polynomial entropy fit.

  • Make Block.cp_nd a nodal array rather than a scalar, pass fields of viscous and thermal transport properties to the source term kernels.

  • Add to_dict and from_dict to fluid classes.

  • Add Fluid.get_kappa thermal conductivity to the fluid API.

  • Add change_visc() to fluid clasess, returning a new instance with viscosity scaled up or down. Perfect gases simply alter their scalar viscosity; real gases carry a scale_visc factor that multiplies the true fitted viscosity.

  • Exchange viscous/thermal halos via six face arrays instead of a full volume array.

  • Run the change limiter (Solver.dampin) before implicit residual smoothing (Solver.sf_resid) rather than after, fused into the kernel already traversing the volume. IRS is linear and the limiter is nonlinear in a global block mean, so the two orderings do not commute: at the default sf_resid=1.0, dampin=25 the residual differs by ~19% of the field scale, growing with sf_resid. The converged answer is unchanged, only the path to it, and the fusion is worth -6% serial and -11% at 100-rank saturation.

  • Block.scratch is now the sole scratch array, and all transient workspace for the Fortan kernels is carved out of it.

  • Various performance improvements to reduce memory footprint.

0.2.0 (2026-08-18)

  • Renamed ember.set_iter to ember.set_iterative.

  • Removed BlockRestart and its helpers.

  • Removed ember.geometry; its functions are now private helpers of their callers.

  • Made ember.struct and the Plot3D I/O module private.

  • Removed Grid.apply_rotation. It assumed a mesh topology — that j=-1 is the casing — of any grid handed to it, which is not ember’s to assume, and its tip_gap and shroud row types were in any case indistinguishable: every wall already takes its block’s Omega, so tip_gap overrode five faces with the value they already had and left the casing turning with the blade. Set Block.Omega for the frame, and add a RotatingPatch only for a wall that is not at that speed.

  • Pruned dead code from ember.util and made its single-caller helpers private.

  • Replaced the reflecting mixing plane with the non-reflecting one.

  • Solver is now a frozen immutable class, derive a variant with dataclasses.replace instead of assigning.

  • Changed Solver defaults: cfl 0.4 to 5.0, dampin None to 25, sf_resid 0.0 to 1.0, and n_levels 0 to 3.

  • Block.flat is now a property, and flattens in Fortran order.

  • Split interp_from into Grid.interp_from_arrays and Grid.interp_from_grid, and transfer primitives rather than conserved variables to prevent datum offset errors.

  • Generalised non-reflecting patches to any surface of revolution.

  • Added OutletPatch.Kp and OutletPatch.Ki, exposing the throttle gains set by set_throttle.

  • Added InletPatch.Po, InletPatch.To, InletPatch.Alpha, InletPatch.Beta and OutletPatch.P, reading back the currently prescribed boundary state in physical units.

  • Added wall_yplus for y+ post-processing.

  • Added Block.memory_usage.

  • Added Block.freeze(), returning an immutable copy.

  • Added block_util.repeat_pitchwise, viewing a periodic passage as a cascade. A periodic solver computes one passage, which is rarely all anyone wants to look at: the passage-to-passage picture is what shows a wake meeting the next leading edge, or a shock crossing a pitch. Returns one copy per passage rather than a concatenated block, and drops patches, a rotated copy being a view of the flow rather than a member of a connected grid.

  • Added util.unwrap_meridional, giving the conformal coordinate m' = int dm/r that a blade-to-blade view is drawn on.

  • Fixed mix_out returning slightly different states for a cut and its k-reversed twin. The Newton loop now iterates to its fixed point instead of stopping at the first iterate inside atol, cutting that difference from ~3e-4 to ~2e-6.

  • Added precompiled wheels for macOS (arm64) and Windows (AMD64), alongside the existing Linux (x86_64) wheels.

  • Fixed mass_average raising on a partial reduction. The averaging already honoured the axes argument, but the zero-flux guard beneath it assumed a scalar, so averaging over the pitch alone and keeping the span raised about an ambiguous truth value instead of returning a profile.

  • Fixed matvec broadcast dispatch order for (ni,1,1) matrices.

  • yaml_util now uses libyaml’s CSafeLoader/CSafeDumper where available for speed.

  • Fixed YAML being read and written in the locale’s encoding rather than UTF-8, so a file carrying a degree sign or a non-ASCII name round-tripped losslessly only by coincidence of environment.

  • Fixed YAML writing a Path raising RepresenterError on Windows.

  • Fixed the sign of the cusp seam correction.

  • Restored the smooth-then-damp order in update_residual.

  • Fixed the mixing-length viscosity returning -inf on flows with no resolved shear when built with gfortran 13.

0.1.0 (2026-08-06)

  • First public release on the Python Package Index.