The guides describe what YMF does. This page records the gaps that have been closed, newest first, with the commit that closed each, so that nobody has to rediscover why a thing is the way it is. Open gaps are in problem-specification.md § Known gaps.
-
2026-11-18: 0.3.1, a stabilization without a method (C42 round 6). ymf 0.3.0 required
methodin everystabilization:block, so proteus's RDLS block (stabilization: {shock_capturing: {factor: 0.9, lag: false}}, read as a free map by ymf 0.2) no longer loaded, andtest/dispatchbroke on every proteus PR. Nowmethod: noneis a word (no residual-based method; it reads onlyshock_capturing), the barestabilization: nonesays a sub-problem is not stabilized at all (MCorr, PresInc), and a block that states onlyshock_capturingloads and means exactly that,method: noneplus that shock capturing; ymf picks no method for it and fills in no key.tauorlaggedwithout a method are refused (they belong to one).ymf.stabilization.missing(block)still lists what a reader that must not guess needs: undernonean unstatedshock_capturingis not missing (the word says there is none), a stated block must be complete (beta,referencefor RDLS's). A spec written before 2026-11-17 loads unchanged: proteus's owntest/dispatch/dambreak.ymfandtwo_phase_level_set.ymf(cekees/mainb9d98f5d) are fixtures (tests/fixtures/proteus_dispatch_0_2/), loaded, resolved and round-tripped through an archive with the same key. Suite 1032 -> 1048. What proteus's RDLS actually applies (SUPG withtau: metric, not lagged, and a classicalbeta1 shock capturing) is inHANDOFF_2026-11-18_ymf-r6.md: the old block was incomplete, not wrong to load. -
2026-11-17: C42 round 5, the formulation a generator and a dispatcher read (C19 spike report, C5 step 4 part 2). The generator spike could not generate what the spec did not say (stabilization, shock capturing, lagging, boundary kind, porosity) and C5 could not state a dispersive model or a mesh of a box that is not square. Now the spec states each, checked on load, carried by
split_problem, and part of an archive's key:stabilization: {method, tau, lagged, shock_capturing: {factor, beta, reference, lagged}}(ymf.stabilization; proteus'slag,sc_beta,sc_urefare aliases; nothing is defaulted);lagged_coefficients: {name: previous_step | previous_iterate};imposed: strong | weak | nonewith a weak condition'spenaltyandform(ymf.boundaries; the kind of an alias goes to its Dirichlet part;split_problemgives every condition itskind); a two-phase model with aporositycoefficient (dambreak_porous.ymf) andcoefficient_rolesin each sub-problem's record;dispersion: {closure: hyperbolic_relaxation, closes, auxiliaries}with the rolesrelaxed_depth,relaxed_divergence,relaxed_bed_flux(ymf.dispersion; coefficient rolesdispersive_pressure,dispersive_bed_force);mesh: {cells: {x: 80, y: 40}}(cells_per_axis). One fix on the way:_usedread the functionsignas the coefficientss i g nand put the gravity among RDLS's. Not done, listed in the handoff: a condition whose value is another sub-problem's trace, the relaxed equations of the closure,atan, a state imposed on part of a boundary. -
2026-11-16: C42 round 4, the spaces vocabulary (C8's choices). A
finite_elemententry stated only family and order; C8 (proteus FemTools rounds 1-5) added the basis, the node set, the Bernstein operator and the geometry order as choices a run depends on.ymf.spaces:basis(lagrange,bernstein,monomial),nodes(gll,equispaced),bernstein_operator, andgeometry_orderbeside the spaces, each checked on load (nodes only with a Lagrange basis, the Bernstein operator only with a Bernstein basis, the vector families RT/BDM/RTF/N1curl take neither, lowest orders RT0, BDM1, N1curl0, geometry order >= 1);resolvefills the defaults proteus uses (lagrange,gll, exact Bernstein conversion, affine geometry), so two spellings of one space resolve equal.implemented_in_proteusrecords what FemTools has (information, never a refusal). Existing specs are unchanged. proteus CI installs ymf fromproteustoolkit/ymf@main, so proteus sees this only after the ymf merge. -
2026-11-08: C42 round 3, the words a dispatcher maps (C5 decisions 16, 18-21 of 2026-11-06). proteus's DispatchTable coined the labels it matched on; they are
ymf.vocabularynow, stated by the spec, checked on load, and the derived ones (a model'sfamily, each sub-problem'srole) written by closure without counting towards a key. Renamed where ymf had a better word, the old one kept as an alias:vbdf->bdf2,SSP_RK3->ssp_rk3,shock_capturing->residual_shock_capturing,pressure_initial->pressure_spin_up,entropy_viscosity_cE->entropy_viscosity_coefficient. Coefficients carry arole(density,gravity,bed_elevation, ...), so a solver stops looking them up by name.linear_solver: direct | iterative, shared by every solver path. A condition on a phase indicator no sub-problem carries (χ with no VOF) is a condition on its level set's sign, so CLSVOF gets the atmosphere's air inflow. Three fixes: an archive's spec part reads back as written (1.0e6had come back'1000000.0', another input digest:--checkbroke); a power of a sum keeps its decimals on sympy 1.13 ((x − 47.5)²had become2256.25 (0.0210526 x − 1)²);extendspairsinitial_conditionsbyfield. -
2026-11-06:
hypot(a, b)in the notation. C5 step 2 (proteus runs a split discretization from the spec and compares it bitwise with the deck): the dam break's initial signed distance writtensqrt(max(x − 1.2, 0)² + max(y − 0.6, 0)²) + …rounds twice, and differs fromdamBreakLevelSet.py'shypotby one ulp at 2 of the 109 nodes of its stored mesh, so no run from the spec could match the deck from t = 0.hypotis sympy'scodegen.cfunctions.hypot(differentiable, printed asnumpy.hypot);hypot(a, 0)is|a|exactly, sohypot(max(x − 1.2, 0), max(y − 0.6, 0)) + min(max(x − 1.2, y − 0.6), 0)is the deck's three branches to the last bit. -
2026-11-05: a mesh records its fingerprint; a discrete domain loads from a spec file. cekees, 2026-11-05 (C7.1 round 2): store the mesh's fingerprint in the archive so a restart or a gauge can check the mesh before reading.
provenance(..., fingerprint=)records{method: ymf-mesh-1, sha256};ymf.mesh.fingerprint,grid_fingerprintandcheck_fingerprintdefine and check it (bytes inarchive-format.md). Two gaps proteus found posing adiscretedomain from a spec file: the strict schema now takesattributesandprovenanceon it (ymf.domainalready did), and its inline arrays, which strictyaml reads as text, are typed by each item'sdata_typeon load (ymf.domain.type_discrete_block); the archive itself still refuses text where it expects a number. An inline mesh stored with three coordinates (XYZ) is posed in itsdimension; it was posed in 3D, which proteus solved with a nan error. -
2026-11-05: the wet/dry cutoff (C42 round 2). The last regularization the model-family note lists (§ 3.1 item 5,
u = q/hath = 0):regularize: {inverse: {by: wet_dry_cutoff, of: h, width: hε}}reads each negative power ofhthrough SW2DCV'sone_over_hReg. The shallow-water numerics fixture bindshε(meaning: dry_depth, the solver's1e-5 max(h0)) and uses it; exact abovehε, so Torino's drag and porosity still match the deck to 1e-12. -
2026-11-05: the plain data keeps a coefficient of the state by name (C42 round 2). § 7 of the model-family note: substitution is enough for a runner, but the generator (C19) and the dispatcher want
ρas one inline function of the state.adr_problemandsplit_problemnow give each coefficient of the state itsinlinecode anduses, andnamed(orderand the slot values over the names) beside the substitutedadr. Additive, and absent without coefficients of the state; an archive Proteus wrote for such a spec before this reports "the ADR form differs" under--check, becauseymf_runrecords the wholeadr_problem. -
2026-11-05: closure writes out the split and names the coefficients of the state (C42 round 2). The same reasoning as the alias expansion: a closed dam break said
φ: previous_stepand left the sub-problems' solvers, regularizations and carriers tosplit_problem's defaults, and said nothing of which coefficients follow the state.ymf.explicit(closure.write, closure.input_slice) now writes each sub-problem'sfor, mergedsolverandregularize, and its lags as{of, via, at, carried_by}, and gives every coefficient whose formula names an unknowndepends_on. The names are read without sympy (ymf.names, the notation's tokenizer moved out ofymf.symbolic.notation, with the parser's rule for a run of letters), so the core closes a spec as the front end does.depends_onis checked on load and left out of the key; split specs re-key (the dam break and shallow-water fixtures; no solver ran them), every other spec keeps its keys and, without coefficients of the state, closes to the same document. -
2026-11-04: aliases expand into the abstract forms, and closure records the expansion. cekees's review note:
slip,open,inflow,characteristicand condition sets had their meaning only in code (split.py,units.py, a solver's dispatch), so a closed spec sayingtype: slipdid not say what was solved.ymf.conditions.ALIASESnow defines each alias as Dirichlet/Neumann/Robin components on a variable or itsnormal/tangentialpart,onlywhere the flow or the characteristics enter where it applies;expandwrites them out, withexpanded_from, removingcondition_setsandboundary_sets.closure.writewrites the expansion andclosure.input_slicekeys by it (a spec without aliases keeps its keys);adr_problem,split_problemandymf.unitsread only the expansion. New condition keys:component,only,imposed(strong or weak, per condition, C12),expanded_from. -
2026-11-04:
discretedomains are posed (D4). A mesh as ymf stores one (topology,geometry, and the taggedfacetsandprovenanceof cekees#6) is a domain:adr_problemposes it whole, with bounds from its inline nodes (orbounds, or the solver's, for nodes in a file), its boundary regions by facet tag andmesh: {levels}only; periodic is refused. The design note, decided 2026-11-04, lands asdocs/design/domains-beyond-box.md. -
2026-11-04:
filedomains are posed (D2, D3).adr_problemcarries a file domain whole (domain.region) for the solver to read. Optionalbounds: {lower, upper}set the box; without themlowerandupperare None and the solver takes them from the mesh (posing follows meshing for this kind alone), and the dimension must be given. A mesh file (2dm,3dm,hex,tetgen,ymf) fixes the mesh: its discretization givesmesh: {levels}only, keyedlevels=L, and a mesh size is reported as lacking;gmsh_geois meshed byh.ymf.discretizations,ymf.closure.realizationsandymf.statetake the domain for this (optional; without it a mesh needs a size, as before). Periodic conditions on a file domain are refused. -
2026-11-04: periodic conditions on a
piecewise_linearregion (D3). Refused before ("periodic faces are a box's"). Allowed now when, on each periodic axis, the region's boundary segments (2-D) or facets (3-D) on the lower face translate exactly onto those on the upper face (as point sets, to 1e-8 of the box); otherwise refused with the count of pieces without a partner.ymf.symbolic.problem.periodic_faces_match, used by both readers. The solver's part (no boundary points added by the mesher, a partner check after meshing) is Proteus's companion PR. -
2026-11-04: boundary regions by tag (C27 Phase 5, decision D1).
boundary_regionsentries taketags: [ints or names]instead ofwhere, exactly one of the two; names resolve through the domain'sboundary_tags.adr_problemandsplit_problemgive a tag region asflagsand nowhere. Checked on load: one of the two, every name resolves, no tags on a box, a periodic region useswhere. -
2026-11-04: the shallow-water family.
tests/fixtures/shallow_water: the model (depth and discharge; porosity, Manning friction and Darcy-Forchheimer drag as coefficients of the state;wallandoutflowcondition sets), Proteus's numerics (SW2DCV as one sub-problem, its algebraic scheme in the free-formdiscretizationblock), a lake at rest over a bump, and the Torino flume (dam break down a 3 % slope into a rod canopy, fromtorino_flume/dswe/torino.py). The second family needed no new schema: what two-phase flow added covers it. -
2026-11-04: boundary conditions in
split_problem. Each sub-problem carries the conditions it imposes, inadr_problem's plain-data shape (wherecode, per-component values, series, robin parts, periodic axes), for every kind: those on its own unknowns, and those on a coefficient its introduced unknown carries. In the dam break: flow gets the free-slip walls,p = 0and an openvon top; VOF gets air flowing in throughχh; the level-set solves get none, as Proteus'ssetAtmospheresets none for them. -
2026-11-03: gauges.
model.gaugesin the shape the force-history plan (C22, step 4) set out:point,lineandline_integralgauges of named fields, andboundary_integralgauges of wetted area, forces and moments per boundary region, withsample_rateandfile. What each kind needs is checked on load. Also: a reference error now says "an analytical solution", not "a analytical solution". -
2026-11-03: condition sets.
strong_form.condition_setsnames bundles of conditions without a region (a model'sfree_slip,atmosphere), andstrong_form.boundary_setsapplies them to regions. They are a separate key rather than aset:entry amongboundary_conditionsbecause strictyaml cannot accept either of two mapping shapes in one list, and making a condition's keys optional would lose the schema error that names the file holding an incomplete one.ymf.boundary_conditionsexpands them, andadr_problem,ymf.unitsand the load-time checks all read through it; a condition written out replaces a set's member for the same region and variable. -
2026-11-03:
slip,open,inflow,characteristic; conditions on a coefficient. The boundary kinds two-phase flow and shallow water need: a free-slip wall, an open boundary (C12's declared open boundary), a value imposed where the flow enters, a stage imposed through the incoming characteristics. A condition may name a coefficient of the state (χ). Conditions are now checked on load: the region exists, the variable is an unknown or a coefficient,slipis on a vector, and a value is given exactly when the kind takes one.ymf.unitschecksslip,inflowandcharacteristiclikedirichlet.adr_problemrefuses the four kinds and conditions on coefficients, naming the solver they are for. -
2026-11-03: each sub-problem classified on its own (
ymf.symbolic.split.split_problem). The plain data of a split discretization, one ADR form per sub-problem. Its own unknowns are unknowns; what it reads from the others is a known field (a function of the coordinates and time, written by name, its gradientgrad_<field>_<axis>), and must be declared inlags; a coefficient lagged via the sub-problem that carries it is replaced by the carrier.bindsare substituted (a symbol with only a meaning,h, stays a parameter the solver supplies), andregularizesmoothsheavisideandsignexactly as Proteus does (gf.H,gf.D,2 H_ε − 1). Schema: a sub-problem'sforandregularize, a lag'sof. The two-phase dam break classifies in all five sub-problems: flow as variable-density Navier-Stokes with ρ and μ from VOF's carrier, VOF and the level set as transport in the lagged velocity (v·∇φis a Hamiltonian inφalone there), redistancing as an eikonal Hamiltonian, mass correction as a regularized reaction-diffusion. -
2026-11-03: coefficients of the state keep their names.
adr_problemlists each coefficient that follows the state undercoefficients: its numpy code,depends_on, and its derivative in each unknown it depends on (sharp: trueinstead, forheavisideorsignof an unknown). The ADR form keeps them substituted, so a solver of one system is unaffected; the names are for a generator or a dispatcher. A problem without such coefficients has nocoefficientskey, so its record is unchanged. -
2026-11-03: a discretization may be split into sub-problems.
subproblems:(solved in order each step: what eachsolves,enforces,introduces,lags,writes_back, with its own space, time integration, stabilization and asolverthat refines the entry's),binds:(symbols such ashandε = 1.5 hthat the discretization supplies),regularize:(sharp functions made smooth) andstep_control:. The structure and every name are checked on load (ymf.references);ymf.discretizations.subproblem_solvergives a sub-problem's effective solver. Classification per sub-problem is not done yet. Splitting is not a newmethod: a split discretization is still a mesh one, and its studies and output keys work as before. -
2026-11-03:
heaviside,sign,min,max,norm,sym. The two-phase model writesχ = heaviside(φ), its initial signed distance withmin,maxandsqrt, its viscous stress withsym(∇v); shallow-water friction usesnorm(q). They parse, print back (to_notation), and become numpy code (min/maxas nestednumpy.minimum/numpy.maximum, notfunctools.reduce). The derivative ofheavisideorsignis a Dirac delta, which has no value at a point: where the ADR form needs one (a sharp function of an unknown), it is refused with a message saying the discretization must regularize it. -
2026-11-03: named equations.
strong_form.equationstakes{name, for, equation}beside bare strings. Bare strings are still ordered like the unknowns; withforon every equation the order written stops mattering. Names merge acrossextendslike every other named list, and are what a discretization's sub-problems will cite. Checked on load: a name used twice,fornaming something that is not an unknown, two equations for one unknown,foron some but not all, and (outside an abstract file) an unknown no equation is for.ymf.equations_in_orderis the one reader, shared byymf.symbolicandymf.units. -
2026-11-03: a coefficient's formula may name the unknowns. A coefficient could be a formula in the coordinates, time and the other coefficients; one that named an unknown was "could not be resolved". Now it may: a state-dependent density, conductivity or friction law is a coefficient whose formula names the unknowns, substituted into the equations so the ADR form carries the dependence and its derivatives. Decided by cekees for the model-family work (two-phase level-set flow:
χ = heaviside(φ),ρ(χ),μ(χ); shallow water: Manning friction, canopy drag), in place of a separaterelations:block: one kind of thing, a coefficient, whether it is constant, varies in space or follows the state. What came with it: boundary data, initial conditions and exact solutions that lean on such a coefficient are refused (they are evaluated at points in x, y, z, t);ymf.unitswarns when a characteristic scale or a dimensionless number is built on one; a coefficient may not take an unknown's name; a formula may not take a derivative of an unknown (yet).ymf.symbolic.state_coefficientslists which coefficients follow the state, and on what. -
2026-11-03: a mesh carries its tagged facets, its provenance, and its order in its cell type. Proteus's mesh campaign (C7.1, step A) needs a mesh to say which faces carry which boundary condition, and where it came from, so converters from other codes' inputs can write ymf. A grid may now carry
facets(node tuples and one integer tag per facet: 0 untagged, >0 a condition, -1 a rank interface, allowed only in asubdomainview) andprovenance(tool, version, files with SHA-256; no list of tools anywhere). Facets, not node tags, because a corner node belongs to two faces. Geometry order stays the topology type's (geometry_order), and the node order of each quadratic type is now written down (QUADRATIC_EDGES, VTK's, what viewers draw); the 10-node tetrahedra of one widely used generator and of proteus number their edge nodes differently, andymf.mesh.edge_node_permutationmaps any stated convention onto ymf's. Older documents are unchanged. -
2026-11-01: one name per thing:
modelandapproximation. The spec's top-level key has beenmodelsince a66ea1c, and the archive of a spec stores the realized spec under the key the spec uses, so it has writtenmodelsince then too. The README, the archive guide and several docstrings still showedProblem:; they now saymodel:.Problem:andproblem:still read asmodel:. The functions that build and check the tree a solver writes were named for a domain, which is also the region a problem is posed on (model.strong_form.domain,ymf.domain). They are now named for an approximation, which is what the archive of a spec already called that tree (outputs[key].approximation):new_approximation,validate_approximation,canonicalize_approximation,select_approximation,rebase_approximation,inline_approximation,approximation_arrays. The old names are the same functions, kept for one release; a release should warn before they go. The solver file'sdomain:key and the functions' parameter names are unchanged: the key is part ofymf_archive_version: 2. -
2026-11-01: eight keys that nothing read are refused. The schema accepted them from the v0.1 and v0.2 drafts, and no code in ymf or Proteus read or wrote them, so a document carrying one said something nobody heard. A document that still carries one is now told which key:
strong_form.strong_form_expression: superseded byequations, which ymf.symbolic reads.strong_form.known_analytical_solution: superseded bysolution_paths.analyticalandvvuq.verification.reference.strong_form.dimensional_check: the unit check isymf.units.check, run by whoever wants it; a switch in the document turned nothing on.model.unit_systems: nothing defined what a named system selects; units are given on each unknown, coefficient and condition.discretizations[].bmi_interface: no BMI adapter exists.- top-level
archiveandxdmf(and the v0.1 spellingXdmf, which is no longer folded): the archive is its own format, written by a solver and byymf.closure, not a block of the spec.
mesh_generationandroughness_sourcestay for now:ymf.data_sourcesreads them, and whether that module stays is a separate decision.
- 2026-10-27: a hot start repeating a time replaces. The two open questions of design/time-outside-space.md § 8 were answered on the Proteus side (cekees/proteus#121): a hot start replaces the steps after the one it resumes from, and a space first archived mid-run is covered by a writer-level test.
- 2026-10-26: time outside, space inside (archive format 2). The domain
used to hold one temporal collection per function space, because XDMF
does; it now holds one list of instants with the spaces inside each.
Format 1 is still read and upgraded in memory. See
design/time-outside-space.md
(#22, #23;
a3eac96). - 2026-10-17: a boundary condition's units follow its type (
54765f8, #9). They used to be compared with the unknown's units whatever the type, which is right only fordirichlet: aneumannflux in W/m² failed and one in K passed. Each type now has its own rule (see Units). What is left is in Known gaps. - 2026-10-16:
piecewise_lineardomains are solved (54a9f8f). Any region that is not a box is meshed byh, the element size of an unstructured mesh. Periodic conditions still need a box. - 2026-10-15: a table is a value form, not a kind of condition
(
6de07fe).hydrographused to be atype, which tangled the value with the condition and made a Dirichlet stage hydrograph impossible to write.series:is now orthogonal totype, asvalueandformulaare. - 2026-10-14: Neumann and Robin conditions run (
600e38e,ad10e70). Robin needed a numerical flux written for Proteus (NumericalFlux.RobinFactory), not wiring: the flux depends on the solution's trace, and a Proteus flux boundary condition is a function of(x, t)alone. That the dependency set of a boundary expression is the thing to get right, rather than the list of condition types, is the point taken up in the tag-propagation design notes. - 2026-10-08: the reference graph is checked (
e467ff1). Afrom_weak_formorbranch_refthat named nothing used to validate. All four edges are now checked,branch_refbecamereference.analytical, integer indices intoweak_formsare gone, and a single-valued reference may be omitted where the graph does not branch. - 2026-10-08: numbers are numbers, and expressions are evaluated once
(
487182b,c86adf1).coefficientswas untyped, so every scalar arrived as a string, and a coefficient written as an expression was dropped from formula scope. Numbers are now typed in the schema, and expressions are evaluated by the one resolveradr_problemuses, soymf.unitsand the solver give the same answer for the same coefficient.sympymoved into thefrontendextra for this. The decision behind it (cekees): numbers and expressions are treated uniformly, because a front-end that evaluates expressions differently from the solver would report one thing and run another, and amarkdown | tex -> ymfpath is an intended direction. - 2026-10-08:
1e-10is a number to every reader (487182b). It used to be a string to PyYAML and a number to strictyaml, so a spec meant different things read as a file and read inside an archive. The archive reader resolves YAML 1.2 scientific notation, on a loader subclass so pyyaml's own loaders are unchanged. - 2026-10-08:
characteristic_scalestakes any name (487182b). It was a fixed set of six. The original six keep their aliases (L,U,rho,mu,T) in formula scope. - 2026-10-08: composition may remove (
8452cd6). Decided by cekees: removal is a real modelling move (incompressible solved as compressible, inviscid as viscous, dropping an unknown or replacing it with an analytical expression), and it must be logged.remove:names paths and is recorded incomposition.removals. - 2026-10-08: an error names the files behind it (
d187db1). An error that no single file holds, such as a required key none of them sets, was reported against a line of the merged document, which exists nowhere on disk. The message now names the path and the files that write it. - 2026-10-08: duplicates are found by value and dimension (
08773b8). They were caught by name only. A scale whose value and dimension match a coefficient's is now reported whatever either is called. Dimension is what separates a duplicate from a coincidence: in a non-dimensionalized problem half the quantities are 1.0. What is left is in Known gaps. - 2026-10-08: SUPG/PSPG with equal-order P1 on Kovasznay flow is
pre-asymptotic, not wrong. Investigated and closed: measured rates sit
below the a priori values on coarse meshes and climb towards them as the
mesh refines (1.88 for velocity at 512 cells). It is a resolution limit,
not a defect in
NavierStokesASGS_velocity_pressure. Taylor-Hood on the same problem reaches its rates sooner, so a side-by-side comparison at one mesh size misleads. Reaching the asymptotic range needs an iterative solver (512 cells is already 24 GB with MUMPS) or a lower-Reynolds companion case.