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 ofcut.unstructuredis; 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 thancut.unstructuredfollowed bycut.interpolate_to_structuredAdd
untwisttocut.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 gridAdd
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 ofcut.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 timeRemove
cut.structured_meridional:cut.structured_multiblockgives 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 emptyGridRemove
cut.interpolate_to_structured:cut.structured_traverseandcut.structured_multiblockgive a structured cut directly from the grid’s own lines, far more accuratelyRemove
cut.signed_distance, whose sign, taken from the nearest segment, could change away from the cut; the cuts measure their ownMake
cut.CUT_EXTENDprivateUnstructuredBlocknow wraps a 1DBlockrather than subclassing one: the flow is set and read throughnodes, and the faces are given to the constructor,UnstructuredBlock(nodes, i_face).set_faces,faces,n_vertandemptyare replaced byi_faceandn_node, and the array operations that raised are goneMove
cut.triangulate_to_unstructured(block)toUnstructuredBlock.from_structured(block), which raisesValueErrorrather thanAssertionErrorfor a block that is not 2Dcut.unstructuredreturns a list, oneUnstructuredBlockper 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 raisesValueErrorwhere the cut misses the grid, as the structured cuts do, rather than returningNoneSpeedup 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.rowssplitting 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 raisesValueError. Cusp patches join blocks within a row, as periodic ones doAdd
Grid.snap_periodic: move every periodically paired node onto the mean of its copies, so nodes a mesher meant to coincide do so exactlyRename
average.mass_bandtoaverage.streamtube, which says what it returns, and itsaxisargument toalong, as it names the axis the mass fraction runs along, the opposite sense toaxesin the averaging functionsSupport trailing axes in
average.mass_averageandaverage.area_average: fields stacked on a last axis are averaged separately in one pass, the face weights computed onceRemove
average.flow_conserved_ndandaverage.total_area_nd:average.flow_conservedandaverage.total_areagive the same in SIFix
average.streamtubecopying through a node that one end of the band fell within round-off of, which made a strip of faces with next to no areaFix
average.mix_outreturning a NaN state as converged: a NaN residual now raisesRuntimeError, and nothing is printed. A non-positiveARor a cut with circumferential projected area raisesValueErrorSpeedup
average.mix_outabout 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 convergeFix
average.mix_outchoosing 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 itsRuntimeErrorAdd
supersonictoset_iterative.set_ho_s_rhoVm_Vt_Beta, to solve for the supersonic meridional branch, everywhere or element by element, and with it supportAR != 1inaverage.mix_outfor a supersonic mixed-out state, which raisedNotImplementedErrorAdd
axestoaverage.mix_out, as in the averaging functions: withaxes=(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 itRemove
ember.fluxes: its flux tensors serve onlyember.average, where they are now private, one face flux for structured and unstructured cuts alike. The dimensionalget_flux, the 1D line fluxes and theget_flux_nddispatcher go with it, used by nothing but their testsFix
average.mix_outaccepting 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 areaFix the zero-net-flux checks in
average.mass_averageandaverage.streamtubedepending 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 raisesValueError
0.5.0 (2026-11-25)¶
Make
ember.outlet.calc_radial_equilibrium(patch)a methodOutletPatch.calc_radial_equilibrium()Fix
Grid.resampleleaving 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 planesGrid.resampleplaces 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 facetedAdd
multtoGrid.resample,block_util.resampleandutil.resample: each segment between critical indices gets a multiple of that many cells, for rounding to a multigrid depthAdd
ceilingstoelliptic.winslow_sweeps: the most length of each cell of the lines out from a wall, asfloorsis the least, each sweep pulling in a node further than that from the one inside itAdd
ember.unstructured.UnstructuredBlockstoring flow data at the vertices of a triangulated surface, replacing the oldBlock.triangulatedflag which duplicated data at shared verticesFix
average.mass_averageraising on an unstructured cutcut.interpolate_to_structuredcarries the coordinates, conserved variables and metadata of the cut, but not solver fields such as the wall distance;average.mix_outno longer shares the cut’s patchesA cut along a single straight segment, in
cut.unstructuredandcut.structured_meridional, now runs along the whole of its line across every block it reaches, rather than stopping near the segment’s endsSpeedup
cut.unstructuredandcut.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
mergedtoGrid.align_cart_unstr,set_primitive_cart_unstrandset_conserved_cart_unstr, to accept a point cloud holding the coincident nodes where blocks meet only onceAdd
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 5Add
Grid.add_polar_source, the polar source without the time step passAdd
orthandslide_walltoelliptic.winslow_sweeps, to square the grid at a wall and to slide wall nodes only part of the wayAdd
BaseSolver.restart, a copy of a solver without its start-up ramp to continue a solution; the built-in solver has none and returns itselfFix
block_util.concatenaterefusing three or more blocks that have noOmega, by no longer setting one on the result when neither input has itAdd a
workdirargument toBaseSolver.run, where that run keeps its files, for a solver that runs outside the process; the built-in one ignores itAdd
ignore_inviscidtoGrid.calculate_wdist, to leave slip walls out of the walls distance is measured toAdd
ConvergenceHistory.check_steadyandfluc_mdot, the relative rms of mass flow over the end of the marchNever 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.ellipticExchange 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 streamsurfaceFix
ember.cut.interpolate_to_structuredputting nodes in empty space when cutting through a solidAdd 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 laminarAdd
Solver.sf2_T, a separate weight on the temperature limb of the adaptive smoothing sensor, defaulting tosf2
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
NotWallPatchto exempt collapsed nodes from the wall distance calculationAdd 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 sharedfrom_dict/to_dictandchange_*contract.Trimmed the
realgas_fitpublic surface tofit,sample_coolprop,FitResultandFitInfo;legfit2dis now private, and the pure Legendre/coordinate helpers move to theember._realgas_polyleaf 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 fromP_throttletodP_throttleinConvergenceHistory.Delete
Block.xlen_sq_ndandBlock.conserved_cell_nd, calculate them inline in the Fortran kernels instead.Add
RealFluidreal-gas equation of state and fitting module, following Wheeler (2024) polynomial entropy fit.Make
Block.cp_nda nodal array rather than a scalar, pass fields of viscous and thermal transport properties to the source term kernels.Add
to_dictandfrom_dictto fluid classes.Add
Fluid.get_kappathermal 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 ascale_viscfactor 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 defaultsf_resid=1.0, dampin=25the residual differs by ~19% of the field scale, growing withsf_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.scratchis 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_itertoember.set_iterative.Removed
BlockRestartand its helpers.Removed
ember.geometry; its functions are now private helpers of their callers.Made
ember.structand the Plot3D I/O module private.Removed
Grid.apply_rotation. It assumed a mesh topology — thatj=-1is the casing — of any grid handed to it, which is not ember’s to assume, and itstip_gapandshroudrow types were in any case indistinguishable: every wall already takes its block’sOmega, sotip_gapoverrode five faces with the value they already had and left the casing turning with the blade. SetBlock.Omegafor the frame, and add aRotatingPatchonly for a wall that is not at that speed.Pruned dead code from
ember.utiland made its single-caller helpers private.Replaced the reflecting mixing plane with the non-reflecting one.
Solveris now a frozen immutable class, derive a variant withdataclasses.replaceinstead of assigning.Changed
Solverdefaults:cfl0.4 to 5.0,dampinNoneto 25,sf_resid0.0 to 1.0, andn_levels0 to 3.Block.flatis now a property, and flattens in Fortran order.Split
interp_fromintoGrid.interp_from_arraysandGrid.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.KpandOutletPatch.Ki, exposing the throttle gains set byset_throttle.Added
InletPatch.Po,InletPatch.To,InletPatch.Alpha,InletPatch.BetaandOutletPatch.P, reading back the currently prescribed boundary state in physical units.Added
wall_yplusfor 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 coordinatem' = int dm/rthat a blade-to-blade view is drawn on.Fixed
mix_outreturning 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 insideatol, 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_averageraising on a partial reduction. The averaging already honoured theaxesargument, 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
matvecbroadcast dispatch order for(ni,1,1)matrices.yaml_utilnow uses libyaml’sCSafeLoader/CSafeDumperwhere 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
PathraisingRepresenterErroron Windows.Fixed the sign of the cusp seam correction.
Restored the smooth-then-damp order in
update_residual.Fixed the mixing-length viscosity returning
-infon flows with no resolved shear when built with gfortran 13.
0.1.0 (2026-08-06)¶
First public release on the Python Package Index.