Skip to content

morphoGen 1.2.0: plates, meshes of the plane, couplings, magnetic domains, hierarchical structures - #6

Merged
jdirr merged 175 commits into
mainfrom
claude/brave-hopper-20id3p
Dec 1, 2026
Merged

jdirr merged 175 commits into
mainfrom
claude/brave-hopper-20id3p

Conversation

@jdirr

@jdirr jdirr commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

This pull request merges the development line into main as morphoGen 1.2.0:

  • the version in the package (src/morphogen/_version.py);
  • CITATION.cff with its date of release;
  • the citation of docs/citing.md and the recipe of conda-forge;
  • the section 1.2.0 of CHANGELOG.md, with what changed.

Merging publishes the documentation site of main. The tag v1.2.0 and its GitHub release (PyPI, Zenodo, the installers) are separate steps (docs/release.md).

Release notes (for the GitHub release of v1.2.0)

A minor release: periodic plates through their thickness, the meshes and solvers of the plane, a library of materials, multiphysical couplings, the magnetic domains of ferromagnets, hierarchical structures of any models, and morphoGen with VIMSEO, Code_Aster and OpenFOAM.

  • Periodic plates through their thickness: their stiffness (A, B, D) and transverse shear (the bending gradient), their conductance and bowing, the permeance and inertance of perforated panels and the sound that panels let through, their Bloch waves and band gaps (prestressed too), their local and thermal buckling, elastic limits and collapse, the panels of the homogenized plate (yield lines), and their shell sections for Abaqus.
  • The meshes of the plane from the exact contours of the sections (fibres straight, oblique or wavy, coatings, honeycombs, polycrystals and orientation maps), curved six-node triangles, and their solvers: elasticity, conduction, Stokes flow, loading paths; misaligned plies.
  • A library of 57 materials, by their names in the configurations and the interface.
  • Mathematical morphology on the implicit geometry, models of images and reconstruction from descriptors, grains grown from seeds, woven textiles with the variability of their tows.
  • Multiphysical couplings: thermo-chemo-elastic fields in time and the inverse design of active structures; harmonic regimes on conforming meshes and the relaxation spectra of viscoelastic composites; nonlinear magnetostatics and the magnetoelasticity of magnetorheological elastomers at finite strains.
  • Micromagnetics: the magnetic domains of ferromagnets on voxels — their hysteresis loops, their dynamics and thermal fluctuations, their magnetostriction (the butterfly, the Villari effect, their interaction by their strains) and their first-order reversal curves (FORC diagrams) — in the runs, the interface and a tutorial.
  • Hierarchical structures of any models, four or five levels deep, chains or trees (the model hierarchy): homogenized level by level, and the buckling of lattices of lattices level by level (Lakes 1993; Rayneau-Kirkhope, Mao & Farr 2012, with tubes at the last level), with a tutorial and gallery templates.
  • Interoperability: the computations of morphoGen as models of VIMSEO, for the verification of the code and of the solutions (morphogen.interop.vimseo); the studies of Code_Aster (the apparent stiffness and conductivity of conforming meshes, in its format or in MED) and the cases of OpenFOAM (the flow through the pores and Darcy's permeability, the diffusion through a phase), written, run and read back (morphogen code-aster, morphogen openfoam, and their tools in the interface), checked against the programs themselves.

Changed: a configuration of the model ebsd meshes its map in its plane by its pixels (mesh.plane: auto); the opening and the closing of morphogen.analysis take the size of the voxels in their second step; the Bloch bands find every copy of a degenerate mode and the initial-stress matrix of curved 10-node elements takes their isoparametric map (the results move where they were wrong); the new fields of HomogenizationSpec, OutputSpec and of the model reconstruction are to be given by their names.

The change log gives the details.

Checks

  • The CI is green on the commits of the line up to c38e487: lint, docs, Ubuntu with Python 3.12 and 3.14, macOS, Windows. The CI of the version commit 08f4e34 is running.
  • python -m build writes morphogen-1.2.0.tar.gz and morphogen-1.2.0-py3-none-any.whl, which twine check accepts. The wheel installs and reports morphogen 1.2.0.
  • The public interface since 1.1.0 has additions only: new parameters with defaults. The new fields of HomogenizationSpec, OutputSpec and of the model reconstruction stand among the others, to be given by name.

After the merge (docs/release.md)

  1. Tag v1.2.0 on the merge commit and publish its GitHub release with the notes above. The workflow release.yml uploads to PyPI, Zenodo gives the DOI, and the installers are attached.
  2. Move the date 2026-12-01 of CHANGELOG.md and CITATION.cff if the release comes another day.

https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV


Generated by Claude Code

… tutorial of the theory

morphogen.morphology measures the realizations on their implicit geometry, without a
voxel image. The union of the spheres of a realization has its four Minkowski
functionals exactly (morphology.balls): the volume and the surface from the power cells
of the spheres (pyramids over the faces, cut by the balls), the integral of mean
curvature from the spherical parts and the circles where two spheres meet, the Euler
characteristic from the dual complex of the regular triangulation (Qhull), on the torus
of a periodic box; the sections of a union of spheres are unions of discs, measured
exactly in the same way (area, perimeter, Euler characteristic). Probes of any structure
(morphology.measures): points, pairs, segments by sphere tracing, balls through the
distance, lines with their crossings located by bisection, for the fraction, the
covariance, the Choquet capacities, the contact distributions, the chords and the
specific surface by Crofton's formula, with the standard deviations of their samplings,
and the measures of a realization beside the closed forms of its model.

Images become models: their phases by Otsu's thresholds (one or several), their
particles and the ellipsoids of their moments, the scores of a segmentation
(morphology.segmentation); the model image (models.image), a volume or a section
segmented into phases described by implicit functions at any point (the iso-surfaces of
the interpolated levels), in windows at the origin or drawn at random, with a
synthetic tomography that comes with morphoGen; the candidate models of an image fitted
to its fraction and specific surface by their closed forms, simulated on voxels of the
size of the image, calibrated and ranked by the shapes of the covariance and of the
contact distributions (morphology.identification), from a volume or from one section.

The opening and the closing of analysis took a ball in voxels for their second step on
images whose voxels are not of unit size; the capacity of balls padded a section across
its plane. The tutorial of mathematical morphology (docs/tutorial_morphology.md) and its
figures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…le interlocks without stuffers, the tows as composite cylinders

The tows of woven_textile may depart from their idealized paths as the tomography of
textile composites measures: the deviations of their centrelines across the tows and
through the thickness, and the widths and thicknesses of their sections (lognormal, of the
mean of their tow, their logarithms correlated), stationary Gaussian processes along the
direction of the tows (gaussian or exponential covariance, spectral representation,
periodic over the box), correlated between neighbouring tows of a ply or layer. The nodes
move by the deviations, the frames turn with them, the half sizes vary linearly between the
nodes in the kernels; the summary gives the variations realized, the theory the mean
areas of the varying sections and the lengths lengthened by the deviations. With the
variability at zero the realizations are unchanged, bit for bit.

The binding depth of the 3D weaves (binder_depth, the weft layers that a binder ties
together): layer-to-layer angle interlocks of any depth, orthogonal weaves whose shallower
binders tie the layers in turn from column to column; angle interlocks without stuffer
warps (stuffers: false).

morphogen.homogenization.unidirectional: aligned fibres in a matrix by the composite
cylinder assemblage (Hashin & Rosen), the transverse shear modulus of the generalized
self-consistent scheme or Hashin's bounds, Hill's universal relations, the conductivities
and Levin's expansions; a material {unidirectional: {fibre, matrix, fibre_fraction}} and
WovenTextile.tow_material. Tested against the limits, the bounds and the relations, and
against the FFT stiffness of hexagonal and random arrays of long fibres extrapolated in
the voxel size and Rayleigh's solution.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…y of the simulations

morphogen.interop.vimseo gives VIMSEO (IRT Saint Exupéry, LGPL-3.0, built on GEMSEO) the
computations of morphoGen as functions of named numbers: a configuration of `morphogen
run` whose entries chosen by their paths are the inputs and whose results of one
realization are the outputs; the four Minkowski densities of the realizations of a model
of spheres, exactly, with the closed forms of the model at the same inputs as their
references. Their GEMSEO disciplines and VIMSEO models (BaseDisciplineModel, load case
Dummy), the reference datasets, and the verification of the code against references and
of a solution against its discretization (Richardson's extrapolation, the observed
order, the grid convergence index). GEMSEO and VIMSEO are imported by these functions
only; the extra `vimseo` (VIMSEO runs on Python 3.10 to 3.12). Checked with VIMSEO 0.1.7
on Python 3.12: the exact densities against Miles' formulae within the fluctuation of
single realizations (relative errors of 1.8 % and 1.0 % on the fraction and the specific
surface), the FFT conductivity of a Boolean model against the size of its voxels
(Richardson 2.278, observed order 0.90). The recipe of conda-forge imports the package
morphogen.morphology.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The model spinodal (models.spinodal): the two phases that a mixture quenched inside its
spinodal forms, by the Cahn–Hilliard equation of a double-well energy integrated on a
periodic grid by the stabilized semi-implicit Fourier spectral method (Chen & Shen 1998),
at an age of the coarsening of their pattern: the fraction of the phase 1 from the mean
composition (the lever rule), the wavelength of the fastest fluctuations of the early
stage as the unit of length, the time in units of their growth time. The realization is
the composition on its grid interpolated between its points, its phase 1 where it is
positive (implicit functions at any point, as the images); the length of its pattern
from the peak of its structure factor in the summary. Tested: the peak of the linear
stage at the fastest wave number, the free energy decreasing at each step, the mean
composition kept to round-off, the length of the pattern doubling over eight times the
age (Lifshitz–Slyozov), the fraction, windows and round trips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
coupling.thermochemoelastic solves together the temperature (Fourier, a volumetric heat
capacity, the heat of a reaction), the activity of a species (diffusion, solubility,
first-order consumption, the drift of stress-assisted diffusion) and the quasi-static
displacement under the eigenstrains of thermal and chemical expansion, with Arrhenius
laws of the diffusivity and of the rate; the fields at each output time. On voxel images:
finite volumes at the voxel centres (harmonic conductances, Scharfetter-Gummel fluxes of
the drift) and trilinear hexahedra at their corners, periodic axes with a free or imposed
mean strain; on meshes of linear tetrahedra: every field linear, lumped capacities.
Implicit Euler or TR-BDF2 steps, the fields coupled both ways solved to a fixed point by
Aitken's relaxation of the staggered pass, the supports of the rigid motions statically
determinate, the fields at the output times written as an XDMF time series.

Tested against coupling.diffusion (the same finite volumes, to round-off), Crank's slabs
(the mean and the profile; TR-BDF2 an order more accurate in time), the free and clamped
expansions on voxels and meshes, a periodic laminate, Timoshenko's bilayer, the curvature
of a strip that swells from its upper face against the beam of Crank's profile, the energy
of an adiabatic reaction, the scaling of the times by Arrhenius' law, the Boltzmann
equilibrium of a species drawn by the stress, and the statically determinate supports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
optimization.morphing places two materials that expand differently with a stimulus
(heat, or a species they absorb), or one of them and voids, in a box of voxels held by
supports, so that the structure reaches target displacements: at equilibrium, or at
output times while the stimulus diffuses from faces held at values (the sequential
shapes of 4D-printed active composites). SIMP interpolation of the elasticity, of the
eigenstrain and of the capacity and conductivity of the two materials, a density filter
cut at the faces of the box (hat_filter), a Heaviside projection by continuation, an
extrusion along an axis, the method of moving asymptotes under the volume constraints;
exact adjoint sensitivities, through the implicit Euler steps of the diffusion run
backwards in time. The states are those of the voxels of coupling.thermochemoelastic,
whose solver verify runs on the black-and-white layout. bending_target gives the
deflections of a strip bent to a curvature.

Tested: the sensitivities against central differences (1e-6) at equilibrium, extruded,
with voids and in time; the displacements of a layout against the coupled solver
(1e-12); a strip designed to bend as a strip whose upper sixth is active (within 5 %,
its black-and-white layout too), and a strip designed to bend down then up as two
materials take up a species at different rates (3 %, its layout 10 %). The guide to the
physics presents the coupled problem in time (its snippet run by the tests), the page on
design the inverse problem; the API table names both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… §112 and §113

The theory notes of the measures of the implicit geometry (§104), of the exact
functionals of unions of balls and of their sections (§105), of the model of an image
(§106), of the images as microstructures and their segmentation (§107), of the
thermo-chemo-elastic couplings in time (§108) and the inverse design of active
structures (§109), of the variability of woven tows, their 3D architectures and the tows
as unidirectional composites (§110), of the credibility of the simulations with VIMSEO
(§112) and of spinodal decomposition (§113), in the table by theme, with their
references. The pages of the measures (the implicit geometry, the model of an image),
of the models (image, spinodal), of the other codes (VIMSEO), of the API reference
(morphogen.morphology), the README and the landing page; the 45 models counted where the
documentation counts them. The identification test takes the Voronoi mosaic too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…ead back

morphogen.io.code_aster writes the study of Code_Aster of the apparent stiffness and
conductivity of a conforming mesh: the mesh in Code_Aster's format (.mail, the groups of
the phases, of the grains of crystals, of the faces of the box and of their nodes; MED
through meshio and h5py, its tetrahedra in MED's order), the command file (ELAS,
ELAS_ORTH and THER, THER_ORTH by group, the crystals turned by the Bunge angles of their
grains through ANGL_EULER; the six unit strains and three unit gradients under periodic
conditions, LIAISON_GROUP of the nodes of the upper faces grouped by their translation, or
kinematic ones; MECA_STATIQUE, THER_LINEAIRE, POST_ELEM INTEGRALE, IMPR_TABLE) and the
export file of run_aster; read_code_aster reads the tables back to the apparent tensors.
morphogen.io.openfoam writes the polyMesh of the voxels of some phases or of the
tetrahedra of a conforming mesh (the faces in OpenFOAM's order, the patches of the box,
cyclic pairs, the walls, a zone per phase) and the cases of the flow through the pores
(simpleFoam, or foamRun with incompressibleFluid) and of the diffusion through a phase
(laplacianFoam), whose outputs give Darcy's permeability and the effective diffusivity.
The commands morphogen code-aster and morphogen openfoam, outputs.code_aster and
outputs.openfoam, the mesh format mail, and two tools of the tab Solvers & formats.

Tested with stand-ins of the programs (tests/fake_code_aster.py, tests/fake_openfoam.py):
the command files run on their own linear tetrahedra give morphoGen's periodic and
kinematic stiffness and conductivity on the same meshes within 4e-7, crystals turned by
their grains, voids and whole periodic cells too; the diffusion case gives the effective
diffusivity of finite volumes on the voxels within 3e-13; the polyMesh is closed, ordered,
oriented and read back, by VTK's reader where VTK is installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…ter and OpenFOAM in the notes

The entries of the change log under Unreleased: mathematical morphology on the implicit
geometry, the models of images, the tutorial of mathematical morphology, spinodal
decomposition, VIMSEO, the thermo-chemo-elastic couplings in time and the inverse design
of active structures, the woven textiles enriched and the unidirectional tows, Code_Aster
and OpenFOAM, and the openings and closings of images of voxels not of unit size. The
specification 1.169: the requirements of version 0.8 (§3.11) and their rows FR-M5 to M7,
FR-G23 to G26, FR-E15 to E17, FR-H36, FR-H37 and FR-O7, the roadmap 0.8. The theory
notes §111 (the meshes, conditions and cases written for Code_Aster and OpenFOAM) in the
table by theme; the README names them among the codes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…he models image and spinodal

`morphogen identify` ranks the candidate models of an image or a volume (its phases, or
its grey levels split by Otsu's thresholds after a smoothing) and writes the best as a
configuration that `morphogen run` takes. The templates `image` (random windows of the
tomography that comes with morphoGen, their particles measured) and `spinodal` (a
symmetric mixture at the age 20), whose examples fill the forms of the interface, and
their cards and images in the gallery. The menus of the tab Solvers & formats with the
heading of Code_Aster and OpenFOAM. The snippets of the documentation formatted; the
requirement rows of the interface (2026-10-24 to 2026-10-26) and of implicit geometry
(2026-11-13) stated without the wording of requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… in their comment

The documentation of the constant SPINODAL read |c̄| as a substitution of
reStructuredText; the expression is quoted, and the site builds without warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
Code_Aster 18.1.11 and OpenFOAM v2412 (conda-forge) run the studies and
cases that morphogen.io.code_aster and morphogen.io.openfoam write. Running
them found faults that the stand-ins could not:

- Code_Aster printed the tables with 6 significant digits (the default
  E12.5 of IMPR_TABLE), an error of 4e-6 on the apparent tensors: the
  tables are printed with FORMAT_R='E20.13' and the coordinates of the
  .mail with 15 digits; the stiffness and conductivity now agree with
  morphoGen's finite elements within 3.4e-14.
- MED files written by meshio (the layout of MED 3.0, without the GEO
  number of each type of element, the families without the index of
  their order of creation) made Code_Aster 18 abort: the MED file is
  written with h5py in the layout of MED 4.2 that MED's library writes.
- The cyclic patches gave a separationVector of the Foundation's sign,
  the opposite of OpenCFD's: checkMesh found the coupled faces at 180
  degrees and the periodic cells were coupled at the wrong distance. The
  patches give no transform; both lines compute it from the faces.
- On tetrahedra, the permeability of simpleFoam converges to a value
  about a fifth too low, on their polyhedral dual to the exact one at
  the second order: Allrun makes the dual (polyDualMesh, in the options
  of either line) for the flow through a tetrahedral mesh (`dual`),
  keeps the tetrahedra for the next run, and runs checkMesh before the
  solver.

New: io.run_code_aster (run_aster, or MORPHOGEN_RUN_ASTER) and
io.run_openfoam (OpenFOAM's environment, or the file MORPHOGEN_OPENFOAM
names), `morphogen code-aster run`, `morphogen openfoam run`, `--dual`
and outputs.openfoam.dual, the verdict of checkMesh in the results, the
newest output of a function object read after a run again.

Tests: stand-in programs for the runs; test_with_code_aster and
test_with_openfoam run the real programs where they are found and are
skipped elsewhere. Notes: theory §111, interop, installation,
configuration, specification 1.170, CHANGELOG (Unreleased).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…died

On conforming meshes of overlapping spheres, the slivers of the
interfaces make the polyhedral dual invalid: 72 faulty faces for a
periodic mesh (452 elements below 5 degrees, mostly on the faces of the
box, which keep the triangles of their cuts), 33, 53 and 97 for meshes
that are not periodic at the element sizes 0.1, 0.07 and 0.05, the last
with a cell of negative volume. simpleFoam converges on the first, not
on the second within 6000 iterations, and fails on the third, while the
voxels of the sample converge (6.14, 6.28, 6.34e-4 for 24, 48 and 96
voxels across). polyDualMesh's -concaveMultiCells and smaller feature
angles do not mend it.

write_openfoam warns of a flow through a conforming mesh, the voxels
being the robust case; theory §111, interop and the CHANGELOG record the
study.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
morphogen.morphology.reconstruction rebuilds a two-phase structure from
its descriptors as MCRpy does: the cells of a periodic grid relaxed to
[0, 1], their two-point probability at every lag within the largest (two
Fourier transforms, its gradient exact) and their lineal paths along the
axes (the products of the cells of the segments, their gradient the
products of the others) brought to their targets by L-BFGS-B within the
bounds, in stages that draw the cells to 0 and 1, then thresholded at
the fraction. Within the bounds the gradient of a cell at 0 or 1 stays,
where logits saturate and freeze the descent.

The targets come in closed form from the models: the covariance of the
isotropic models at every lag of the grid, the lineal paths of the pores
of the models with a Choquet capacity; or from an image, a planar one
giving a volume through the three coordinate planes of the grid. The
model reconstruction takes it as method "gradient" (with iterations),
beside the annealing of Yeong and Torquato.

Checked: the descriptors of binary fields those of morphogen.analysis
exactly, the gradient against finite differences, a Debye medium within
0.5 % of the variance; the pores of a Boolean model of spheres from
their exact covariance miss their lineal path by 7 % (6.5 % in 3D),
within 0.5 % (2 %) with it; a volume from a section within 3.5 % of the
exact 3D covariance off the planes. Theory §114, measures, models,
specification FR-M8 (1.171), CHANGELOG (Unreleased).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…command line, interface

morphology.measures.EXACT_MEASURES names the measures of the implicit
geometry of a realization (exact_fraction and exact_surface with the
deviations of their probes, exact_chords, exact_minkowski: the four
densities of a union of spheres exactly), measure_exact computes them.

- A configuration takes them in its analysis, without voxels: their
  columns join results.csv; a measure of the voxels still needs them.
- morphogen analyze measures a geometry (.json) by them, beside the
  theory of its model (theory_*), and refuses the measures of the
  other kind with a message.
- The tool Morphological measures of the interface offers them, its
  table of the theory giving the exact densities beside the closed
  forms; the tool Reconstruction from the statistics takes the gradient
  descent of morphology.reconstruction (method, iterations).

Tested: the columns against the estimates of the probes, a run without
voxels, the command on a geometry, both tools; configuration, measures,
CHANGELOG and specification 1.172.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The model seeded_laguerre (morphogen.models.seeded) grows the grains of a
polycrystal from ellipsoidal seeds, as MicroStructPy does (Hart & Li 2020;
Hart & Rimoli 2020): seeds of laws of equivalent diameters and of ratios
a/b and b/c, their axes at random or aligned with the box, drawn until
their volumes fill it; each broken down into the spheres inscribed about
the points of its medial surface (their radii in closed form, 94 to 97 %
of the seed at the default spacing); the seeds placed the largest first
within the overlap tolerance of Hart and Rimoli (the fit of
MicroStructPy); the grain of a seed the union of the Laguerre cells of
its spheres (SeededTessellation: labels, exact volumes, phases, crystal
orientations, the table of the seeds).

- kernels.seeds places the seeds: a grid of linked lists of the spheres,
  32 positions per seed drawn at once and the rest of the attempts for
  the seeds that clear at none; those that clear at none of their 10 000
  are placed where they overlap least (crowded: place, the default:
  every seed its grain, of its volume) or left out as MicroStructPy does
  (crowded: leave).
- The conforming meshes of polycrystals merge the cells of each grain in
  the cell complex (CellComplex.merged, Tessellation.cell_grains): one
  subdomain per grain, MMG free inside it, the phases and orientations of
  the grains; the exact surfaces are drawn by grain; the Neper export
  refuses these grains, which its tessellations do not describe.
- Against MicroStructPy 1.6.1 on the same 413 seeds: spheres alike (cv
  of the grain volumes 0.147 and 0.150); seeds of aspect ratio 3, 276
  kept by both when the crowded seeds are left out (3 s, against 375 s),
  all 413 placed by default, the grains of the volumes of their seeds
  and elongated as them (a/b 3.08, their axes those of the seeds).

Tested (tests/test_seeded_grains.py and the tests over every model), the
template seeded_laguerre and its card in the gallery, the interface;
theory §115, models, architecture, CHANGELOG, specification 1.173 and
the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… by cell

With the exact facets of whole periodic cells, MMG did not end with the
cells of each grain of seeds merged (more than 300 s for 6 grains of 42
spheres, which their cells cut by the box mesh in 3 s). polycrystal_mesh
meshes those cell by cell and relabels the elements by grain (2 s, the
volumes of the grains exact to 1e-14); the other meshes keep the merged
grains.

Tested: the exact meshes of whole and cut cells, their grain volumes to
1e-9; theory §115 and CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…oStructPy

seeded_laguerre takes the laws of the seeds of each phase (phase_diameter,
phase_aspect_ratio, phase_flatness, phase_orientation): a seed is of the
phase i with the probability p_i ∝ q_i / E[V_i], so that each phase
fills its fraction of the volume. The seeds of the amorphous phases
(amorphous_phases: a matrix, a glass) are merged into one region without
grain boundaries, no seed of its own and the identity orientation (null
in the files); a void is an amorphous phase that the meshes leave out,
polycrystal_mesh keeping the phases it is given.

- The exact shapes of the grains of any tessellation
  (Tessellation.grain_shapes): the volumes, centroids and second moments
  of the cells exactly (CellComplex.piece_moments, the tetrahedra of the
  fans of their facets) and the ellipsoids of the same second moments.
- The grains against their seeds (SeededTessellation.seed_comparison,
  the verification of MicroStructPy on the exact cells): the diameters,
  ratios and axes of the seeds and of the ellipsoids of their grains,
  their errors, the Kolmogorov–Smirnov distance of the grains of each
  phase to the laws of its seeds (Distribution.cdf in closed form,
  ks_statistic), the fractions of the phases; the named measure
  exact_grains gives them as columns of a run.
- The placement searches grids by levels of sizes, the likeliest overlaps
  first: the same placements, 6 times faster for a glass of small seeds
  about crystals, twice for elongated seeds.
- The template seeded_matrix (laths and equiaxed crystals in a glass) and
  its card in the gallery.

Tested (tests/test_seeded_phases.py, the distribution functions); theory
§116, models, measures, configuration, architecture, CHANGELOG,
specification 1.174 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
exact_grains measures the grains of a tessellation: the test of the
named exact measures takes the others on its union of spheres, checks
that exact_grains refuses it, and measures the grains of a Voronoi
mosaic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
seeded_laguerre takes dimension: 2: elliptical seeds in the middle plane
z of the box (the diameter of the disc of their area, their ratio a/b, a
uniform angle in the plane or along x), broken down into the circles of
their medial segments (the sections of the prolate spheroids (a, b, b))
and placed in that plane with the tolerance of MicroStructPy for the
plane. All the germs in one plane, the cells are the prisms of the power
diagram of the circles: the grains are columnar, periodic or not (a box
that is not periodic widened in the plane only).

- The grains of the plane are measured by their sections (grain_shapes:
  their areas, the discs of those areas and the ellipses of their second
  moments) and compared with their seeds (seed_comparison, exact_grains).
- morphogen.viz.figures.seed_figure draws the distribution functions of
  the grains of each phase, of their seeds and of the laws of the seeds,
  the angles of their axes and the fractions of the phases.
- The tool Grains and their seeds of the interface (Statistics; the trait
  seeds of the items grown from seeds): the tables of the errors and of
  the fractions, and the figure.
- The template seeded_plane (the section of a rolled sheet) and its card
  in the gallery.

Tested (tests/test_seeded_phases.py, tests/test_gui_tools.py); theory
§117, models, measures, interface, architecture, CHANGELOG, specification
1.175 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
seeded_laguerre takes shape: box (per phase, phase_shape): seeds of boxes
of the half sides a >= b >= c in the ratios a/b and b/c (cubes for ratios
of 1; rectangles and squares in the plane), of the volume of the sphere
of their equivalent diameter.

- box_spheres breaks a box down into the spheres inscribed about its
  medial rectangle and those that touch the two faces of its edges,
  centred on the edges of the boxes eroded by their radii c/2 and c/4
  (88 to 94 % of it, 53 spheres for a cube); a rectangle into the circles
  of its medial segment and of its corners at three levels (98 to 99 %).
- The grains of boxes are compared with their seeds by the ratios of
  their ellipsoids, in those of the boxes, and by the volumes of the
  seeds, now kept with them (seed_volume in the table).
- The seeds of each phase are drawn until they fill its fraction of the
  volume: the fractions of the seeds exact to a seed, where the phase
  drawn at random for each seed made them fluctuate.
- The template seeded_precipitates (the cubes of gamma prime of a nickel
  superalloy in their matrix) and its card in the gallery; the images of
  the other templates of seeds drawn again.

Tested (tests/test_seeded_phases.py); theory §118 (and §116), models,
architecture, CHANGELOG, specification 1.176 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
morphogen.mesh.triangles: TriMesh, three- or six-node triangles of the
rectangle of a box in its plane z (phases, grains and their orientations,
sides, thickness; extruded: the layer of tetrahedra of the prisms over the
triangles, three per prism, their cuts matching).

- The columnar grains of the tessellations whose germs lie in one plane
  (the seeds of the plane), which the mesher in space cannot take, are
  meshed exactly (tessellation_mesh): the power diagram of the plane by
  half planes with the periodic images of the germs (planar_pieces), its
  edges subdivided at a size graded from their small features (short
  edges, thin grains, close corners), the upper sides of a periodic box
  the translates of the lower ones, mmg2d remeshing the grains within
  them (-nosurf): the areas of the grains within 1e-13 of the exact ones,
  the smallest angles 5 to 8 degrees.
- The sections of any other structure by the level sets of its phases
  (section_mesh), cut by mmg2d on a triangulation of the rectangle and
  remeshed, the periodic sides matching; plane_mesh chooses.
- Their files: the plane elements of Abaqus and CalculiX (CPE3, CPE6,
  CPS3, CPS6, the sets of the sides, the crystals of each grain turned
  into the axes of the box), Gmsh with the edges of the sides, VTK and
  Medit of dimension 2, read back (read_tri_mesh), their periodic pairs.
- morphogen.homogenization.plane: the problems of the structures
  invariant across their plane, in generalized plane strain (the
  anti-plane fluctuation free: the 6 x 6 stiffness of the structure in
  space) or in plane strain, and in conduction (the 3 x 3 tensor), under
  periodic, kinematic or static conditions on the sides (the uniform
  out-of-plane components unknowns of their own), with the loadings,
  thermal expansion, statistics and fields of the solvers in space;
  homogenize and make_problem take a TriMesh (plane).

Tested (tests/test_plane_meshes.py): exact areas, matching sides, files
read back; uniform fields, laminates of turned crystals to round-off, the
checkerboard of Dykhne converging to the geometric mean, the extruded
layer giving the same tensors in space to 1e-15, kinematic conditions
above periodic above static. Theory §119, architecture, CHANGELOG,
specification 1.177 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The configurations, the pipeline and the command line take the meshes of
the plane, and the mesher in space the columnar grains.

- mesh.plane: auto (the default: the columnar grains of seeds of the plane
  meshed in their plane), true (the section of any structure at mesh.z),
  false (tetrahedra); homogenization.plane: generalized or strain. The
  runs write the triangles (<stem>_tri.<format>: .vtu, .inp of plane
  elements with the crystals of the grains, .msh, .mesh, their periodic
  pairs), solve them by the finite elements of the plane and draw them
  (mesh_figure, mesh_section of a TriMesh: the triangles in the colours of
  their phases, the fields of the solutions on the deformed triangles);
  what the meshes of the plane do not take is refused.
- morphogen homogenize: --plane and --z, a geometry meshed in its plane
  (by default the columnar grains), the meshes of the plane read back.
- conforming_mesh of the columnar grains: their exact polygons extruded
  through the box in layers (TriMesh.extruded(layers=...)), where the
  mesher in space failed on their degenerate cells.
- The exact section of a tessellation in space by a plane z: the power
  diagram of the plane of the weights w_k - (z - z_k)^2 (section_weights,
  planar_pieces(micro, z), tessellation_mesh(z=...)); plane_mesh meshes
  the sections of tessellations exactly, those of other structures by
  their level sets.

Tested (tests/test_plane_meshes.py); theory §119, properties, configuration,
architecture, CHANGELOG, specification 1.178 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
homogenize of a TriMesh follows its loading paths with the nonlinear
behaviours of the solvers in space (plasticity, crystal plasticity,
damage, finite strains) on its layer of tetrahedra (TriMesh.layer: one
layer of prisms of the thickness of its mean edge, ten-node tetrahedra
for six-node triangles), periodic across it: the fields do not vary
across the layer, its thickness drops out of the averages, and its
periodic problems are those of the structure in generalized plane strain.
The paths run under periodic conditions (kinematic ones would clamp the
faces z of the layer: skipped), not in plane strain; the configurations
of the meshes of the plane take them.

- The stiffness of the problems of the plane assembled by chunks of
  elements (CHUNK): the memory of the element matrices bounded.
- The periodic equations of Abaqus and CalculiX of the meshes of the
  plane (write_periodic_equations, outputs.periodic_equations): the
  reference nodes REF_X and REF_Y, the two degrees of freedom of the
  plane elements, the areas of the sides times the thickness.
- The hypothesis of the plane asked of a run of tetrahedra refused.
- The card of seeded_plane_stiffness in the gallery shows the grains of
  its mesh and the von Mises stress of its shear; a recipe of the
  structures of the plane, and their meshes among the samples of the
  guide to the physics.

Tested (tests/test_plane_meshes.py: the same response as on the layer
itself, kinematic conditions skipped, plane strain refused; the chunks
against the whole; the equations of the plane); theory §119, properties,
physics, recipes, configuration, CHANGELOG, specification 1.179 and the
public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The orientation maps (EBSD, the model ebsd: a lattice field of one cell
through the thickness of the box, the label of a grain and its mean
orientation per cell) are meshed in their plane by their pixels
(lattice_mesh, lattice_map; plane_mesh, and the configurations of the
model by default): two triangles per pixel along the diagonals that
alternate with its parity, each the grain and the orientation of its
pixel, for the finite elements of the plane. The tetrahedra of the
lattice field, meshed by its phases, turned no crystal: the mesher in
space now extrudes the same triangles through the box (conforming_mesh),
each tetrahedron the grain of its pixel. A window of the demonstration
map of nickel gives the bulk modulus of the crystals under every
condition, kinematic conditions above static ones.

- The template ebsd_plane: windows of the map by the finite elements of
  the plane under kinematic and static conditions, and its card in the
  gallery (the grains of a window and the von Mises stress of a shear).
- The loading paths of the meshes of the plane factorize the tangents of
  their layer by default: the algebraic multigrid converged poorly on a
  layer tied across its thickness (a plastic tension of 658 six-node
  triangles in 22 s instead of 207 s).

Tested (tests/test_plane_meshes.py); theory §119, configuration,
CHANGELOG, specification 1.180 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
docs/tutorial_plane.md, Polycrystals of the plane, meshed and solved in
their plane, whose snippets the tests run: the grains of a rolled sheet
grown from seeds of the plane, their exact polygons and their small
features removed, the stiffness of the sheet under the three uniform
conditions (the bulk modulus of the crystals of copper), plane strain
and the layer in space giving the tensor of the plane, the exact section
of a polycrystal of space, an orientation map meshed by its pixels and
its bounds, a plastic path, the plane elements and the periodic
equations of Abaqus; its card among the tutorials and its figure.

The small features of the polygons of the plane are removed at half the
size where the polygons would fold, three times at most, before the
exact polygons (which kept the flat elements of a sheet of the tutorial
meshed at size 0.05). The vertices near a side join the vertex of the
side nearer than the features instead of leaving a short edge along the
side: the smallest angle of 152 624 triangles of 1415 grains is 5.4°
instead of 0.9°. The power diagram of the plane skips the half planes
that do not cut a polygon: the pieces of 9905 cells in 3.5 s instead of
8.4 s, the 152 624 triangles in 8 s. The interface
exports the triangles of its simulations of structures of the plane, and
says that its elements are triangles in the plane.

Tested (tests/test_tutorial.py, tests/test_plane_meshes.py); theory
§119, tutorials, architecture, CHANGELOG and specification 1.181.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The six-node triangles of the sections of the plane have their nodes of
the interfaces on the curves of the functions of their phases
(curved_triangles; section_mesh, plane_mesh and mesh.curved at order 2,
by default; curved: false keeps the straight edges of the mesher): the
corners first, as far as their straight triangles keep their shape, then
the middle nodes, as far as the area elements of the curved triangles
keep 0.3 of those of their straight triangles; the nodes of the sides
along the sides, those of opposite sides alike; the functions of the
structure at any point, or their splines on a grid of the plane. The
finite elements of the plane are isoparametric (the gradients of the
straight triangle times the inverse of F, the weights times det F;
TriMesh.curved, deviations, min_jacobian, straight, the areas exact),
and the layer in space of curved triangles has its edges over the
curved edges curved as they are.

Checked: the area of the fibres of a square array within 9.5e-7 at the
size 0.1 and 7.3e-8 at 0.05 (4e-3 and 2e-3 with straight edges); the
conductivity of square arrays of cylinders, conducting and insulating,
against Perrins, McKenzie & McPhedran (1979) within 3e-5 and 4e-5 at
the size 0.1 (1e-3 with straight edges); the reciprocal theorem of
Keller within 7e-5 at 0.1 and 7e-7 at 0.025 at the fraction 0.6, where
the series is 5e-4 off; the neutral coated cylinder of Hashin and Rosen
(1964) in conduction and in plane strain within 1.5e-5 at 0.1 under the
three conditions (1e-3 with straight edges); the curved layer in space,
the volumes of its phases exact, its tensors those of the plane within
5e-7.

Tested (tests/test_plane_meshes.py); theory §119, configuration,
architecture, CHANGELOG, specification 1.182 and the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
A fluid creeping through the pores of a rigid solid that does not vary
along z (a bed of parallel fibres, the dry preform of a unidirectional
composite, the section of any structure): its plane Stokes flow by the
elements of Taylor and Hood on the six-node triangles of the pores (the
velocity quadratic, the pressure linear and continuous; isoparametric,
curved along the walls of the sections), and its flow along z, the
anti-plane problem on the same elements, give the permeability tensor
of Darcy's law (homogenization.plane_flow, plane_permeability). The
pores are the void phases, meshed with the solid; the pressure is fixed
in each connected part of the pores, so that the closed ones hold a
fluid at rest; the saddle point is factorized once for the two forces.

homogenize takes hydraulic_permeability for the meshes of the plane
(periodic conditions), and so do the configurations of the meshes of
the plane (method: fe, or auto), whose pores are then meshed with the
solid. The template fibre_bed_plane: the permeability of a random bed
of carbon fibres at 0.5, and its card in the gallery with the speeds of
its flows across and along the fibres.

Checked: the channel of Poiseuille, its parabola at the nodes to 1e-13
and its permeability to 1e-12; the square arrays of cylinders against
the drags of Sangani & Acrivos (1982) within 1.8e-5 and 1.1e-4 (their
digits; 1 to 5 % with straight edges), along them against Drummond &
Tahir (1984) within the 3e-3 of the series; closed pores at rest across
the plane and the pipes of Hagen and Poiseuille along it, k33 = c a^2/8,
within 1.7e-6 at the size 0.05; a random bed converged to 1e-4, which
the lattice Boltzmann method on 96 and 192 voxels approaches from 7 %
and 3 % below across the fibres (their walls stairs in the gaps), 0.6 %
along them. The sampling grid of the sections must resolve the gaps
between the fibres: a third of the smallest gap.

Tested (tests/test_plane_flow.py); theory §120, physics, properties,
configuration, architecture, gallery, CHANGELOG, specification 1.183 and
the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The sections of the straight fibres along z of a union of segments (the
long fibres without misalignment) and those of spheres are discs
(disc_sections: the cuts by the plane, the periodic images along z, the
concentric discs of the segments of a fibre merged). Those that do not
meet are meshed by their circles (disc_mesh, by default in plane_mesh):
each circle discretized exactly, by 24 segments at least, at sizes
graded from the gaps between the circles and the sides, three elements
across the narrowest gap; the crossings of the sides those of the
images on the opposite sides, the upper sides the translates of the
lower ones; mmg2d meshes the regions within these edges from them alone,
and each triangle takes the phase of its centroid. The six-node elements
have only their middle nodes to move onto the circles. Discs that meet
or touch and oblique fibres are left to the level sets of their union.

The level sets of a bed of fibres closed its narrowest gaps on the
default sampling grid (half of the elements): a random bed lost 0.6 %
of its pores in ten closed parts and 5 % of its transverse
permeability. Its discs keep every gap open, in 0.35 s instead of the
3.6 s of the level sets on a grid fine enough; the template
fibre_bed_plane needs no sampling grid any more.

Checked: the area of the fibres of a square array within 6e-6, 7.9e-7
and 5e-8 at the sizes 0.1, 0.05 and 0.025 (8e-3 to 8e-4 with the
chords); the cuts of hardcore spheres within 2e-6; the nodes of the
circles on them to round-off, the edges along the narrowest gap of a
random bed shorter than it, its pores in one part; the conductivity of
square arrays against Perrins et al. within 1.4e-5 and 9e-6 at 0.05;
the drags of Sangani & Acrivos within their digits, the pipes of Hagen
and Poiseuille within 6e-6 at 0.05; the oblique fibres and the discs
that meet by the level sets.

Tested (tests/test_plane_meshes.py, tests/test_plane_flow.py); theory
§119 and §120, architecture, gallery, CHANGELOG, specification 1.184 and
the public interface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
docs/tutorial_fibres.md, Fibre composites in their plane, whose snippets
the tests run: the fibres of a ply of carbon in epoxy packed at random
and meshed by their exact discs, graded from their gaps; the stiffness
and the conductivity of the composite across and along its fibres under
the three conditions (the axial modulus near the rule of mixtures, the
axial conductivity the arithmetic mean of the phases exactly); the
connection of Hill to round-off, the uniform field that the arrangement
of the fibres cannot change; the transverse bulk modulus between the
bounds of Hashin and Shtrikman, near the lower one; the permeability of
the dry preform by the Stokes flow through its pores, in one connected
part, five hundred times larger along the fibres than across them; the
plane elements of Abaqus and their periodic equations. Its card among
the tutorials and its figure, the graded triangles of the section.

Tested (tests/test_tutorial.py); tutorials, architecture, CHANGELOG and
specification 1.185.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
claude added 28 commits December 1, 2026 03:39
The flux-closure (Landau) state of a permalloy platelet against its S state,
the hysteresis loops of a nanocrystalline Nd-Fe-B magnet whose grains are
coupled or not by their exchange, and the reversal in time of a cobalt
particle by the Landau-Lifshitz-Gilbert equation; its snippets run by the
tests at reduced sizes, linked from the guide to the physics and the recipe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The recipe of hierarchical structures named its materials `solid`, the name
of the mesh of the matrix of an earlier recipe that the test of the recipes
reads back at the end; they are `aluminium` now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…ions

The ferromagnet of a material (its saturation, exchange stiffness and
anisotropy), the property `hysteresis` of homogenize and of the runs on
voxel images with the options homogenization.micromagnetics (the loop or
its fields, the coupling of the grains, the shape of the specimen, the
metres of a unit of length), the loop and its domains written, the coercive
field and the remanence among the results and the statistics of RVE studies
(those of the magnetization curves too); the gallery template
homogenization_magnet, its card the loop and the domains near the coercive
field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…al levels

Each level of a hierarchy of lattices of struts is a periodic frame of
Timoshenko beams whose struts have the moduli of the lattice inside them
along their axis (its modulus, and its shear modulus for their torsion and
transverse shear); the stiffness passes up from the smallest level, the
stress of the most compressed fibre of the struts passes down as the load of
the lattice inside them, and each level buckles at the least factor over the
Bloch waves of the corners of its Brillouin zone. optimal_levels takes the
solid fractions of the levels that maximize the least factor. Checked
against the frame of one level, the moduli and stresses passed between two,
Euler's and Engesser's loads of the columns of a cubic lattice (its
alternate mode) and Lakes' exponents of optimal octet trusses (2 and 1.47).
The tutorial of hierarchies weighs the buckling of its levels (its octet
truss of struts of cubic lattices buckles first, in shear) and draws the
critical stress of optimal hierarchies against their solid fraction; the
tool Hierarchy, level by level gives the stress at which each level buckles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…last level

A strut in tension stretches the lattice inside it, whose transverse struts
the tension compresses: each level below the first now carries the largest
compression and the largest tension that the struts above put on it, and
buckles at the least of both factors. With a yield stress, the solid of the
last level yields where its most stressed fibre reaches it, and the structure
fails at the least of that yield and of the buckling of its levels (an octet
truss of slender struts at Deshpande, Fleck and Ashby's rho sigma_y / 3);
the optimal levels maximize that least factor. The tutorial draws the caps
of the yield of aluminium over the critical stresses of the hierarchies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
Each segment of a yarn of a woven textile is an element of a hierarchy: a
grain of its own orientation for the frame grains (its third axis along the
segment, its first across the width of the yarn), a member along it for the
frame members. The tows of a fabric are filled with fibres along them and
homogenized level by level: a plain weave stiffer in its plane than with the
fibres along z.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…f their struts

homogenization.levels.buckling gives, for a hierarchy of lattices of struts,
the compression along z at which each level buckles (its struts of the
material of phase 1) and, with yield_stress, the yield of the struts of its
last level: the results levels.buckling.factor, .factor_k, .weakest and
.yield_factor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
Micromagnet.llg(..., temperature=) integrates Brown's stochastic equation: a
thermal field in each voxel, sqrt(2 alpha k_B T / (gamma0 mu0 Ms V dt)) times
a normal vector, by the steps of Heun (the same field in the predictor and
the corrector, m normalized after each step: Stratonovich's calculus, whose
equilibrium is Boltzmann's), the default steps turning m by 0.01 in the
field and 0.05 by the fluctuations. Independent macrospins at 300 K reach
Langevin's magnetization (0.05 %) and Boltzmann's <m_z^2> with an anisotropy
(0.2 %). dipolar=False leaves out the magnetostatic field between the voxels
(the mean field of the specimen alone), in Micromagnet, hysteresis and the
options of the runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
A section on thermal fluctuations: a cube of ferrite 5 nm wide behind a
barrier of two k_B T flips at random at 300 K (Neel and Brown's relaxation),
and 512 independent cubes take Langevin's mean magnetization in a field
(superparamagnetism); a figure, its snippets run by the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The visible leaves of dead leaves are elements of a hierarchy: grains of
their crystal orientations for the frame grains (the centre of a leaf the
origin of its cell), members along the axes of spheroidal leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…eld of its struts

The template hierarchy asks for the buckling of its levels and the yield of
the aluminium of its smallest struts: at 2.4 % of solid they yield before
its octet truss buckles in shear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The tool Magnetic domains follows the domains in time too (evolution
reversal): the magnet saturated along the field, then the opposite field
applied at once, by the Landau-Lifshitz-Gilbert equation (its damping, and
at a temperature the thermal field of Brown) over a duration: the
magnetization along the field against the time and the time of its
reversal, the domains as they reverse and their video.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The demagnetizing field by the FFT of SciPy on threads (one inverse
transform for the three components), the uniaxial anisotropy along the easy
axis alone, the constant arrays of the exchange and of the anisotropy kept,
the torque of the relaxation computed once a step: a relaxation of 32^3
voxels 1.7 times faster, a loop of 16^3 1.6 times, the same states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… levels renamed

Branches fill other phases of the levels of a hierarchy with other models (hierarchies
too), each in its cell, at its scale, in its frame; maps (and the phases of a branch)
rename the phases of the models of the levels as phases of the hierarchy. Points,
realizations written and read back, and the homogenization level by level (each branch
first, its law turned in each element; the identity frame for the phases that nothing
fills) are exact against iterated laminations. The tutorial grows a fabric of tows of
fibres in a porous resin; the error of a level whose cell does not hold together names
the level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… their optimal walls

Tubes at the last level of a hierarchy of lattices of struts (Rayneau-Kirkhope, Mao &
Farr 2012): their sections in the frames (Cowper's shear coefficient of a tube), the
local buckling of their walls as cylindrical shells (shell_buckling, knockdown), and the
ratio of the wall to the radius free in optimal_levels(tubes=True): optimal hierarchies
of n levels whose last are tubes scale as rho^((n+2)/(n+1)) (1.493 and 1.335 for one
and two levels). lattice_levels reads the wall_thickness of the last level; the tool of
the interface and the runs give the local buckling of the tubes; the tutorial compares
an octet truss of tubes with hierarchies of solid struts.

The buckling of the levels runs its small dense problems on one thread of BLAS and the
frames keep the basis of their periodic fluctuations: four times faster.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…ffect

A ferromagnetic phase has a magnetostriction (lambda_s, or lambda100 and lambda111 of a
cubic crystal): the free strains of its magnetization in the axes of each grain, the
strain of a state the mean of those of its voxels, along a hysteresis loop the butterfly.
A uniform applied stress adds the magnetoelastic energy -sigma:eps*(m) and its field (the
Villari effect). Exact against single crystals along [100] and [111], sixty grains of the
icosahedral group at (2 lambda100 + 3 lambda111)/5, the stress on an isotropic phase as
the uniaxial anisotropy (3/2) lambda_s sigma, and the derivative of the energy for cubic
grains. In the runs (micromagnetics.stress, the results and the strains of the loop), the
tool Magnetic domains (nickel and iron, the butterfly, a stress along the field) and the
tutorial of the domains (nickel compressed and stretched). The README and the home page
name the trees, the tubes and the magnetostriction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
With a homogeneous isotropic elasticity (micromagnetics.elastic in the runs), the free
strains of the domains interact by the stresses of their incompatibility, solved in one
step by the Green operator of the cell in Fourier space (Khachaturyan's
microelasticity; Micromagnet.stress_field), their Gibbs energy and their field added.
Exact against constrained layers of domains, walls of 90 degrees on (101) free of stress,
the mean stress the applied one, and the field the derivative of the energy on grids of
even and odd sizes: the Nyquist component of a mixed wave vector is set to zero (its
conjugate reads it with the other sign), the waves of Nyquist components alone kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…ches in the runs

The template hierarchy_fabric: a plain weave whose tows are bundles of long carbon fibres
along the segments of their yarns and whose resin between the tows holds voids, a branch
of Boolean spheres, homogenized level by level. The runs of the method levels give the
moduli of the branches (levels.branch_0_E1...) with those of the levels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
reversal_curves: from the saturation down the descending branch, and from the domains at
each of its fields back up to the saturation; the FORC distribution
rho = -1/2 d2M/dHa dHr by the mixed differences of the grid, in coercive and interaction
fields (Mayergoyz 1986; Pike, Roberts & Verosub 1999). Exact against the branches of
Stoner and Wohlfarth of independent particles of two anisotropies (1e-7), their switching
at their switching fields on Hu = 0 in the ratio of their volumes. In the tool Magnetic
domains (the curves and the diagram) and the tutorial of the domains (the grains of
Nd2Fe14B coupled and decoupled).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The first-order reversal curves of the domains of a run on the grid of the amplitude and
the steps of homogenization.micromagnetics: the curves and their FORC distribution
written as tables, the coercive field and the remanence of the descending branch, the
coercive and the interaction fields of the peak of the distribution and the irreversible
share of the magnetization among the results and the entries of RVE studies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… domains

The tool Magnetic domains gives a magnetostrictive magnet the interaction of its domains
by the stresses of the incompatibility of their free strains (the homogeneous elasticity
of iron, nickel or a custom magnet). The README names the first-order reversal curves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…level by level

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…l curves

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…w results

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…nd the tutorial

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
Periodic plates through their thickness, the meshes and solvers of the plane, a library
of materials, couplings in a field, the magnetic domains of ferromagnets and hierarchical
structures of any models: the version in the package, CITATION.cff and its date of
release, the reference of docs/citing.md and the recipe of conda-forge, and the section
1.2.0 of the change log, with what changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
@jdirr jdirr changed the title Mathematical morphology on the implicit geometry; models of images; a tutorial of the theory morphoGen 1.2.0: plates, meshes of the plane, couplings, magnetic domains, hierarchical structures Dec 1, 2026
@jdirr
jdirr merged commit 5717bee into main Dec 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants