Repository navigation
Releases
hexmesh 0.8.0
The API review before the 1.0 freeze (decisions 0042 and 0053): the
public surface is listed in docs/api-1.0.json and checked by a test,
and from here to 1.0 only fixes go in. Before the freeze, the calls were
made readable: keyword-only arguments, plain names in place of mesh
jargon, profiles as values, named outlets, and meshing without a
Session (Assembly.to_mesh()). Also: scale= on the writers, per-arc
counts on a circle, an assembly written twice in one session, fixes for
volunteer runs on Windows, a wheel and an sdist on each GitHub release,
and a volunteer command line for people. There is no 0.7.0.
Breaking: arguments after the first one or two are keyword-only;
PipeSpec.core() and .shell() return a new spec; nang, nrad,
mprg and mbmp are renamed (n_arc, n_radial, radial_grading,
arc_bump) and lc is removed, with the error codes that named them;
Reducer(profile=…) takes a Profile; the tee's run port is run.
python3 -m hexmesh.agent.schema is gone (run hexmesh schema); the
modules hexmesh.agent.advise and hexmesh.interchange.build are
private (the functions of those names are unchanged);
hexmesh.io.readers is removed. Saved descriptions are version 4;
older ones still load. Meshes are unchanged.
Calls that stay readable after 1.0 (task 0164, decision 0053).
- Breaking: keyword-only arguments. A public callable keeps at most
two positional arguments, the ones a reader understands without their
name; the rest are keyword-only.Straight(length, *, …),
Bend(radius, angle, *, …),MiterBend(radius, angle, *, …),
Elbow(angle, schedule, *, …),Reducer(outlet, *, length, …),
Transition(outlet, *, length, …);Tee,Wye,Switch,Closure
andSplinePipetake keywords only.PipeSpec(*, …),
.core(name, *, …),.shell(name, *, …),CircleShape(radius, *, …),
RectShape(half_w, half_h, *, n_width, n_height);Assembly(spec, *, …),
add(source, fitting, *, …),close(source, target, fitting, *, …),
write(path, *, dim, …),check_quality(quality_name, *, …);
Drum(name, *, …),Nozzle(name, *, spec, location),OnHead,
OnShell;read_pcf(path, *, …),read_bathymetry(surface_path, route, *, …),build(model, spec, *, selection, …); the interchange
parts after their id;Study(path, *, …)and the study functions.
Reducer(outlet, 0.2)becomesReducer(outlet, length=0.2). A test
keeps every public callable to two, apart from a listed few (the
fitting protocol's methods,Frame, results users only read). - Breaking:
PipeSpecis copy-on-write.core()andshell()
return a new spec and leave the one they were called on unchanged, so
a spec is safe to share:ins = base.shell("insulation", …)no longer
insulatesbasetoo. Code that calledspec.shell(…)without keeping
the result must writespec = spec.shell(…). - Named outlets.
addreturns a named tuple for a fitting with
several outlets:TeeOutlets(run, branch),WyeOutlets(left, right).
It unpacks as before;ports.branchreads by name. Breaking: the
tee's run port is calledrun, notmain, inadd(…, names={…}). - Limits (README Stability): a limit's value and level may change
in 1.x as measurements justify; tightening one is noted under
Behaviour.
Names a reader understands (task 0166, decision 0053).
- Breaking: the mesh-jargon names are renamed, with no aliases:
nang→n_arc,nang_w/nang_h→n_width/n_height,nrad→
n_radial,mprg→radial_grading,mbmp→arc_bump, wherever
they appear: arguments, properties, the description's fields, the
schema, error fields and messages, the command line's JSON. Names
built on them follow (branch_mprg→branch_radial_grading,
insulation_nrad→insulation_n_radial). - Breaking:
lcis removed fromAssembly,Assembly.from_nozzle,
build,NetworkSpec.to_assemblyandto_assemblies. It was gmsh's
characteristic length, which a structured mesh doesn't use: meshes are
unchanged. - Breaking: error codes renamed:
arcs_with_nang→
arcs_with_n_arc,nang_missing→n_arc_missing,
nang_not_divisible→n_arc_not_divisible,nrad_on_h_core→
n_radial_on_h_core,shell_nrad_missing→shell_n_radial_missing. - Saved descriptions are version 3. Older files still load: their
fields are renamed andlcis dropped (a test loads every example as
0.6 saved it).
Profiles as values; a section kind (task 0165, decision 0053).
- Breaking:
Reducer(profile=…)takes aProfile, exported from
hexmesh:Profile.cosine(s0),Profile.venturi(beta, divergent=15)
andProfile.table([(s, r), …]). The tuple forms (("cosine", s0),
("venturi", beta, divergent)and the bare list of pairs) are gone: a
tuple is aprofile_type_invaliderror whose hint gives the call. The
constructors check the parameters, with the codes the tuples had, plus
profile_fields_invalidfor a kind given the wrong fields. A profile
saves as{"kind": "cosine", "s0": 0.25}. - Every saved
PipeSpeccarries"kind": "concentric"(PipeSpec.KIND).
A spec without one loads as concentric; any other kind is a
section_kind_unsupportederror, until decision 0035 stage B adds
pipe-in-pipe and multi-core sections. - Saved descriptions are version 4. Version 3 files load: their profile
tuples become objects.
Meshing without a Session: Assembly.to_mesh() (task 0167,
decision 0053).
asm.to_mesh(dim=3, order=1, incomplete=False)meshes a copy of the
assembly in a gmsh model of its own and returns aMesh, exported from
hexmesh:nodes,cellsandgroupsas read-only arrays (element
types named byhexmesh.ELEMENT_TYPES),cell_count,
check_quality(),description, andwrite/write_openfoam,
which give the bytes aSessiongives. The assembly stays unmeshed,
so it meshes again with other options without a newSession.- gmsh starts on first use and stops when the last
Meshcloses
(close(), awithblock, or when it's collected). In aSession
it shares that gmsh; the caller's model and gmsh's options are left
as they were. Not thread-safe: the GUIDE builds in a process pool.
AMeshcan't be pickled (mesh_not_picklable); a closed one raises
mesh_closed. writeandwrite_openfoamoutside aSessionno longer raise
no_gmsh_session: they write throughto_mesh(), the same bytes.
mesh(),check_quality()and the pipeline steps still need a
Session; the error's hint namesto_mesh().- A
Sessionopened while aMeshis open shares its gmsh: at its end
it removes its own model and closes the meshes made in it, instead of
finalizing gmsh.
Fixed: writing an assembly twice (task 0163).
- A second
writeorwrite_openfoamin the same session failed on a
tee ("Surface 1 is transfinite but has 8 corners"):mesh()meshed
again.mesh()now runs once per option set: the samedim,order
andincompleteagain do nothing, and anotherwalls_by_fitting
rewrites only the physical groups. Other options raise
remesh_with_other_options: build the assembly in a newSession.
Fixed: gmsh the caller started first (task 0177). import gmsh; gmsh.initialize() before hexmesh had loaded gmsh, then assembly.mesh(),
raised no_gmsh_session; that gmsh now counts as the caller's.
Windows: OpenFOAM commands run after meshing (decision 0039; task
0173). gmsh.initialize() (gmsh 4.15.2) replaces the process's native
PATH on Windows. Every docker command after meshing then failed
with FileNotFoundError: [WinError 2], e.g. gmshToFoam in the
volunteer tool's prepare. hexmesh's start of gmsh (Session,
to_mesh) now puts PATH back, and the OpenFOAM helpers look the
program up on os.environ's PATH.
Windows: parallel solves run in Docker (task 0173). A Windows
host's container runs as root, and mpirun refused root. The Docker
runner now sets Open MPI's opt-in (OMPI_ALLOW_RUN_AS_ROOT) when it
passes no --user. run_solver removes the processor directories
inside the runner: their Linux symlinks can't be opened by Windows,
so shutil.rmtree failed after the first parallel chunk.
Volunteer contributions with the old names merge (task 0173). The
volunteer tags predate the renames of task 0166, so their files say
nang/nrad; volunteer check failed on them (KeyError: 'n_arc').
It now renames them on reading and says so in its report.
A runner that can't run says why (task 0173). A stopped Docker
engine was reported as "has no OpenFOAM". require_version now gives
the runner's own error ("could not run (failed to connect to the docker
API …)") and a hint to start the engine. The error code is unchanged.
scale= on the writers (task 0150, decision 0047).
Assembly.write(..., scale=1.0)andwrite_openfoam(..., scale=1.0)
multiply the written node coordinates, once. The assembly, its cell
count and its checks keep the built size; the.mshrecipe block
recordsscale=. Build a small part at a reference size and scale it
at output: the nodes are the full-size mesh × the scale to 1e-15,
where building it small moves junction nodes by up to 0.6 % below
about 1:30. A scale that isn't positive and finite raises
value_not_positive.
The API review before the 1.0 freeze (task 0150, decision 0042).
- Breaking:
python3 -m hexmesh.agent.schemais gone; run
hexmesh schema(the schema is the envelope'sresult), or call
hexmesh.agent.dumps(). Its module shared the name of the
hexmesh.agent.schemafunction, and importing it replaced the
function for the rest of the process. - Breaking: the modules
hexmesh.agent.adviseand
hexmesh.interchange.buildare private (_advise,_build), for the
same reason. The functionshexmesh.agent.advisea...
hexmesh 0.6.0
Junction completeness.
- Junctions: equal tees and equal laterals; tees offset off the main
axis; angled PCF tees; shoe taps on ducts; twisted straights, and
junctions at any roll. Every junction predicts its non-orthogonality
before meshing. Tee meshes are the same with gmsh 4.12.1 and with
the gmshpipinstalls (4.15.2) to 1.1e-4 of the size; CI runs both. - From plant data: the snap tolerance is each model's own, set by
its reader and documented;mergewarns when two differ. - Sections:
n_outer = 8, the 4-corner face cut along its grid
lines. - Units and scale:
hexmesh.units; plate tolerances relative to
each face, so a tee builds down to 1:1000. - Docs: the gallery as three pages by family; four application
examples; validation documented for people; hints on equipment and
study errors. - Breaking: 15 error codes retired and
sections.build_oh_circle8
removed (each marked below);Tee'soffsetis a new parameter
beforebranch, so passbranch=and later ones by keyword. Junction
meshes move (by how much: each entry below).
A tee's circle reads go through sections.circle_radius (decision
0051; task 0151). Its backstop error is a new code,
shape_not_circular. A pipe tee's circular shells, and its branch
copying the main's, are stated 1.0 limits. Meshes unchanged.
Fixed: a tee's branch keeps its shells' given dR exactly (task
0155). A stack change on the branch line (insulation starting there)
was rejected, steel radius 0.0015000000000000013 vs 0.0015. Two
examples move by at most 1.6e-13 of their size.
merge warns when the two models' snap tolerances differ (task
0143): snap_tolerance_mismatch, naming both values, their sources and
the one kept (still the larger). The merge report records them.
Four application examples (tasks 0140, 0152, 0153, 0154).
rocket_injector_manifold: a liquid-oxygen ring closed on itself,
eight injector legs, and an insulated feed line through a cavitating
venturi; sized from NASA SP-125's worked example.micromixer: the T-mixer engulfment benchmark's T (Bothe et al. 2006),
in micrometres, then a mixing channel twisted one full turn.subsea_pipeline: an insulated flowline read from a generated seabed
survey of sand waves (read_bathymetry), turning up into a riser.district_heating: a buried pre-insulated pipe with a square of near
soil and a rectangle of far soil, both graded outward.- Gallery: an example may set
GALLERY_COLOURS(material colours
that mean something), and a cut-away may colour its faces by material
("by_material": True).
Fixed: read_bathymetry, subdividing a route, called float() on a
one-element array, deprecated in NumPy (task 0153).
Tee meshes move: interior faces are Stretch fillings (task 0145).
- Why: with gmsh 4.15.2 (what
pip installgives, built with OCC
7.8.1) the tee's interior plate faces were different surfaces than
with 4.12.1 (OCC 7.6.3): up to 1.5 % of the size. The junction's
quality moved with them, and three tests failed in CI. - Change: a tee's interior faces are now Stretch B-spline fillings,
as a wye's. Its wall faces are unchanged. - Effect: every tee and lateral mesh moves, by up to 3.3e-3 of the
network's size (gmsh 4.12.1). Min scaled Jacobian is unchanged, and
max non-orthogonality is equal or up to 3.4° better. The two gmsh
versions now agree to 1.1e-4 of the size. The prediction's known
optimism is now 3.7° (was 3.4°). - CI: tests run on gmsh 4.12.1 as well as on the version
pip
installs. Duct taps still use free plates: their meshes differ
between the two versions by up to 8e-3 of the size.
Junction plates' tolerances are relative to the face (task 0139).
- Every plate filling hexmesh makes passes
tol3dandtol2das a
fraction of the face's extent (tol3d1e-3, walls 1e-6;tol2d1e-4)
instead of gmsh's absolute defaults.tol2d, documented as
parametric, turned out to act as a length. - Junction meshes move slightly: interior nodes of 11 of the 31
examples by up to 5.2e-5 of the network's size; cell counts and
minimum quality unchanged. Gallery regenerated. - A network scaled down keeps its cells and quality: the README tee
builds down to 1:1000 (0.1 mm main radius; it failed below 1:33), and
its nodes match the full-size mesh exactly at 1:2 and 1:4. Below about
1:30 OCC's own fixed tolerance still moves junction nodes, by up to
0.6 % of the size.
Validation documentation for people (task 0144).
validation/README.mdis now a guide: what to install (OpenFOAM v2406
by Docker, Apptainer or an installed copy), what each case costs, how
to run one, how to readrecheck's verdicts, and how to send results
back.- Every validation driver takes
--openfoam RUNNER, and
HEXMESH_OPENFOAMnow reaches all of them. Eight of them ignored the
variable before. Without it, each driver's default is unchanged. - Every option of the drivers and of
python3 -m validation.volunteer
has help text. The volunteer page gains Before you start, and
volunteers can runcheckon their own file before sending it. - CONTRIBUTING: most
-m openfoamtests need an installed OpenFOAM;
with Docker only they skip.
The snap tolerance is the model's, set by its reader (task 0138).
NetworkModel.snap_tolerance(metres) andsnap_source: ends closer
than it are one point when the model is built (or 1e-4 of the model's
size, if larger).read_pcf(snap_tolerance=…)sets it (default 0.11",
as before), and the import log keeps it forreplayandundo;
read_bathymetrysets the default;mergekeeps the larger.- The build report says where the tolerance came from:
tol_source
("given","relative","reader pcf","default").
describe(model)shows it. - GUIDE: How ends are connected: the snap tolerance: what it does
and doesn't do, where 0.11" comes from, and when and how to change it. - Meshes unchanged: the default is the same.
The gallery is three pages, by family (decision 0050; task 0142).
docs/GALLERY.mdis now a short landing page.docs/gallery/FEATURES.md
groups the feature examples by family (bends, reducers and profiles,
junctions, sections and transitions, layers, grading and resolution,
building networks), each with links to its API sections and the
validation cases that cover it, with their status and last run (date
and hexmesh commit).docs/gallery/APPLICATIONS.mdlists each
application with the fittings it uses, linked to their family.
docs/gallery/VALIDATION.mdholds the validation cases and the
coverage matrix.hexmesh.examples.FAMILIESholds the families. The module paths
(hexmesh.examples.fittings.…) are unchanged.- Validation feature tags gain
reducer,elbow,closureandswitch
(no case covers them yet; the coverage matrix says so).
A junction face OCC refuses is retried (task 0141).
- A tee at direction
[-1, 0, -1.2246e-16](−sin π, from trigonometry)
failed to fill: OCC's plate filling refuses one face at a rounding-level
change of its input. The plate is now retried at a tolerance relative
to the face (1e-6, then 1e-3 of its size). Faces that built before
are unchanged, so no mesh changes.
n_outer = 8 is the 4-corner mesh, cut (decision 0005; task 0088).
- The face is the
n_outer = 4face cut along its middle grid lines:
four core blocks around the centre, two per ring patch. Its nodes and
cells are the 4-corner mesh's (1e-10 R in faces and one-layer sweeps;
see the task for multi-layer slabs and second order). Every sweep
takes it, with circular and O-H rectangular layers; junctions and the
H layout still need 4.n_outer = 12is rejected
(section_not_supported). - Breaking:
build_oh_circle8(one 8-sided centre patch, never meshable) is gone;
sections.build_oh_splitbuilds the face. Assembly.correctionshas asub_partitionentry: the nodes set to
the 4-corner mesh's (gmsh's own fill of a sub-patch misses it by up to
~1e-4 R).- The section period is 90° for a circle at every
n_outer(decision
0010), inPipeSpec.periodand the signature;first_cell=and
rectangle stacks taken_outer = 8. n_outer = 4meshes are unchanged (every example, byte for byte).
A tee branch with its own wall cell (decision 0028; task 0131).
Tee(branch_first_cell=…)orbranch_mprg=: the branch port's core
grading, blended from the main's along the branch run. Stored as
branch_mprg;refined(k)nests it. Pipe tees with a smaller branch
only (branch_grading_unsupportedotherwise). Without it, meshes are
unchanged.Tee.strategiesis per port pair: the branch pair also allows
grading-only class 2.- GUIDE: the grading-only
Reducerafter a branch, and the fittings
table'sReducerrow (grading may change, since task 0027).
Two errors say where and what to do (decision 0042; task 0129).
- A
SplinePipethat bends tighter than the pipe names the place: arc
length, point, and the segmentpoints[i]–points[i+1];whereis
{"field": "points", "index": i}(was{"field": "radius"}, which a
spline doesn't have), orend_tangentwhen that causes it. The hint
names the point to move. Bends keep their wording. toward_off_allowed: the hint gives a working straight,
Straight(L, n_layers=n), instead ofStraight(…, twist=X).
Length units (decision 0047; task 0128).
hexmesh.units:m,cm,mm,um,inch,ft, plain floats in
metres (radius=13.25 * mm). Not re-exported fromhexmesh. The
PCF reader, the interchange tolerance floor and the agent's advice take
their constants from it; meshes unchanged.- Docs and the agent's
describenow say lengths are metres:units
is{"length": "m", …}(was"as given"), as hexmesh isn't
scale-free (GUIDE, *Current ...
hexmesh 0.5.0
The launch release.
- For agents: structured, coded errors, and the
hexmeshcommand
(manifest,validate,estimate,describe,advise,apply,
build). It answers in JSON, and onlybuildneeds gmsh. - From plant data: PCF networks, with cut, join and merge, a shipped
sample and--insulation. - Validation: the manufactured-solution study is accepted, and no
published result went through a hex that gmshToFoam inverted. - Fittings: lateral tees (
Tee(angle=…)) and second-order export. - Breaking: Python 3.11 is the oldest supported.
Breaking: Python 3.10 is no longer supported (end of life, October
2026); 3.11 is the oldest (task 0113, decision 0039). CI tests 3.11 and
the newest 3.x.
A PCF sample ships with the package, and the commands read its
insulation (task 0114).
hexmesh.examples.applications.pcf_line: an insulated line, written
for hexmesh, from a vessel nozzle through a reducing tee, an elbow, a
concentric reducer and a bare valve.SAMPLEis its path, and it's in
the gallery. The README's PCF code reads it, so it runs as written:
35 712 cells, 28 800 bare.--insulationon everyhexmeshcommand that reads a network: on a
PCF file it meansto_assembly(insulation=True). On a description it
iscli_input_unreadable, since a description says where its
insulation is.- The README's quoted
equal_tee_unsupportederror is now what an
equal-tee variant of the sample gives, checked by a test.
Networks with a wye are faster to check (task 0112).
Wye.layoutkeeps its last 32 layouts, keyed on the wye's, the
frames' and the spec's values, and returns a copy of each.hexmesh adviseon the hero network halves, 2.9 s → 1.35 s: it builds
2 layouts instead of 5. Run as separate commands,validateand
estimateare unchanged, at one layout each.- In one Python process, the README's agent session (
validate,
estimate,advise,apply,validate) drops from about 6 s to
3.7 s, since the repeats no longer rebuild the wall. - Meshes are unchanged, byte for byte.
No validation result went through a hex that gmshToFoam turned inside
out (task 0108).
- The audit rebuilt every level of every case (199 meshes and side
meshes, 128 distinct) and counted the hexes gmshToFoam's orientation
test would flip. Four MMS wye levels would be flipped (32 hexes), and
all four were converted with-keepOrientation. Everything else
counts zero, and every mesh's worst scaled Jacobian is positive.
validation/tools/orientation_audit.py, results in its JSON. hexmesh.study.openfoam: newwould_invert(msh), which counts
those hexes on a written.mshwithout gmsh, andfoam_would_invert
andmsh_hexes. OpenFOAM v1912 and v2406 run the same test.- The validation drivers pass
keep_orientation=Truewhenever the
worst scaled Jacobian is positive. Eachcase.jsonsays so, under
toolchain.conversion.convert()'s default is unchanged. The
GUIDE's OpenFOAM section says when to pass it. - A study's case stage does the same. It converts with
-keepOrientationwhen the variant's worst scaled Jacobian is
positive. Otherwise it converts with the test on and warns
mesh_sj_not_positive: the mesh has an inverted corner.
The manufactured-solution study is accepted (task 0074; V1,
validation/mms/).
- Verified: the straight, bend, spline, stack change and
rectangular duct converge at the straight's order, and the wyes outside
their split region. The other fittings are reported. - The miter's first order is the scheme on its kinked grid lines:
least-squares gradients lift it to 1.67, the straight's 1.83 under the
same scheme. - The reducer, transition and tees stay near first order with either
gradient. Their wall faces keep a non-orthogonality that refinement
doesn't shrink (reducer median 21–24°), andfixedValuedoesn't
correct for it. Their geometry tightens (reducer, second order) or is
exact (transition). - The duct taps' cell aspect doesn't grow under refinement.
laplacianFoam's stall beyond k = 2 has a stopgap note in
docs/integrations/openfoam.md. study.openfoam.check_meshalso returnsmax_aspect_ratio.
The README's numbers are generated (task 0078).
docs/gallery/build.pyrewrites two marked blocks ofREADME.mdon
every run,--markdown-onlyincluded, and nothing else in the file:- the
insulated_teemetrics, frommetrics.json; - the validation table, one row per
case.json.
- the
case.jsongains an optionalheadline: the result in one line,
with its numbers from RESULTS.md. All 12 cases have one.- The validation table had drifted:
- it listed
rect_duct,square_bendandturbulent_pipeas planned
(they are accepted), and left outmmsandhelical_pipe(in
progress); - the stenosis line quoted an older reattachment length (11.12 D); the
accepted result is 10.97 D against the database's 11.03 D (−0.5 %); - the heated rod and Womersley lines quoted their gates (0.1 %, 1 %),
not the results (0.01 %, 0.31 %).
- it listed
- A cut-away hero image (
docs/gallery/img/hero.png,
build.py --hero):insulated_networkwith a quarter removed, so the
fluid core, the steel and the insulation show through the tee and the
wye. - New tests (
tests/test_readme.py):- the README's first code block builds the gallery's
insulated_tee,
with the cell count the metrics table quotes; a slow variant runs it
as written, meshing included; - every relative link and image in
README.md,docs/WHY.mdand
docs/GUIDE.mdresolves, anchors included; CITATION.cff's version matchespyproject.toml's.
- the README's first code block builds the gallery's
The light commands load neither gmsh nor scipy (decision 0040,
amendment 2026-11-07; task 0107).
- gmsh is imported on first use, through
hexmesh._gmsh;Session
imports it when it starts.scipy.interpolateis imported only where a
spline edge is meshed. import hexmesh.agenttakes 0.27 s, down from 0.52 s.hexmesh validateon a small network takes 0.37 s, down from 0.64 s.- Where gmsh can't load,
import hexmeshand every command butbuild
still work.buildandSessionraiseGmshUnavailable(an
ImportError, codegmsh_unavailable); its hint gives the install
command and, on Linux, the system libraries. - Meshes are unchanged: all 28 gallery examples are byte-identical.
Every user-facing error coded, internal errors marked (decision 0040;
task 0106).
- The last 21 user-reachable bare
ValueError,TypeError,
RuntimeErrorandNotImplementedErrorraises now carry codes. Each
keeps its built-in class, so existingexceptclauses still work:SpecUsageError(aRuntimeError) forPipeSpec.core()twice,
shell()beforecore(), and a spec with no core;ReaderFileNotFound(aFileNotFoundError) for a missing PCF file;study.openfoam.FoamCommandFailed(aRuntimeError) for a failed
OpenFOAM command;agent_input_type,fitting_declares_no_strategies,
quality_mode_unknownandopenfoam_value_uniform;check_supportedraisessection_not_supporteditself.
InternalError(codeinternal_invariant, aRuntimeError) marks
a failed internal check: a bug in hexmesh, not in the input. Its
message asks for a report. 21 former bare raises use it.- Three rejections fixed (found by the manifest's probe, task 0102):
- a
Switchon a circle now raisesswitch_needs_rectangle; it used
to raise anAttributeError; - a duct tap on a shelled H rectangle now raises
junction_shells_unsupported; it used to raise the internal Switch's
switch_changes_shells; - an unsupported section (
n_outer = 8) now raises
section_not_supportedinadd(), before aTeeorWyebuilds its
layout.
- a
- The support matrix now shows that a
Switchon a shelled rectangle is
supported; the probe had given it a shell-less outlet. - Hints: 58 of 443 coded raises had one; now 134 of 464 do. They are
in spec and section errors, the fittings' fit checks (each with the
length, angle, count orrotto use), the PCF and network builder, and
the CLI. For example,nang_not_divisiblesuggests "nang=4 or nang=6
(a multiple of 2)".
Laterals: Tee(angle=…) (decision 0031 stage 1; task 0060).
angle(degrees, default 90) leans the branch from the run's
downstream direction: 45 is a 45° lateral. The saddle is the exact
cylinder–cylinder intersection, shells included; walls stay on their
cylinders.angle=90meshes identically to before.- The room checks are measured on the acute side:
run_lengthmust
exceed the hole's reach downstream,branch_lengththe turning
station's distance along the leaning axis. - The predicted-quality tiers are unchanged and set the range: a 45°
lateral needs r/R ≥ 0.50, 35° needs 0.875, and 30° is rejected at every
ratio. Laterals below about 57° always warn. A lateral's message
names the smallest r/R that reaches the tier at its angle, and
run_length=Nonefalls back to the shortest run passing the minimum
when none reaches the warning tier. - New limit
TEE_MAX_RATIO(0.95). A pipe tee with r/R above it is
rejected (tee_ratio_above_max), and r = R isequal_tee_unsupported.
Up to 0.95 the meshed corner SJ is within 0.025 of the prediction; at
0.99 it was 0.30 against 0.57. - New codes
tee_angle_out_of_rangeandangle_on_duct_tap. Saved
tees now write"angle".
Structured errors (decision 0040; task 0094).
- Every error that bad input can cause is now a
hexmesh.HexmeshError.
It is still aValueError, and it carriescode,where,value,
limitandhint.err.to_dict()gives them as JSON data. - The layers raise their own subclasses:
SpecError,AssemblyError,
EquipmentError,LayoutError,ReaderErrorand `Stu...