Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,97 @@

## Unreleased

* The tab **Additive manufacturing** of the interface (section Create): *Part for
printing* designs a part in one form — a TPMS of the ten surfaces, a strut lattice or a
spinodoid at a volume fraction or graded, in a box, a cylinder, a tube or a sphere, with
a shell, skins and supports — adds its morphology to the workspace, checks its
printability and writes its bodies as STL, 3MF and STEP (the void as a second body for
two materials); *Printability* checks any morphology of the workspace. The bodies of
complementary phases give the nodes of their interfaces to one phase (a part cut by the
faces of its box tiles it too).
* Printability by additive manufacturing ([docs/theory.md](docs/theory.md) §147,
`morphogen.analysis.printability`, the section `printability:` of a run): the thinnest
walls against the process (`min_wall`) and the resolution of the voxels, the narrowest
holes against drainage (`min_hole`), the overhangs below the self-supporting angle along
the six directions of the axes (the best proposed), the islands that do not reach the
build plate and the closed cavities that trap powder; `printable`, `needs_supports` and
the reasons; a JSON report per realization and the columns `printability.*`. Public
interface: `morphogen.analysis.printability` (`printability`, `Printability`,
`DIRECTIONS`).
* Meshes for LS-DYNA and ANSYS ([docs/theory.md](docs/theory.md) §146,
`morphogen.io.structural`): the voxel and tetrahedral meshes as LS-DYNA keyword files
(`.k`: nodes and solid elements in fixed fields, a part per phase with its section and
its `*MAT_ELASTIC`, the node sets of the faces) and as ANSYS Mechanical APDL inputs
(`.ans`: SOLID185, SOLID285 or SOLID187, the materials, the components of the faces),
from `io.save_mesh` and the outputs `mesh` and `conforming_mesh` of a run (with the
elastic materials of its homogenization). Public interface:
`morphogen.io.structural` (`write_lsdyna`, `write_ansys`, `read_lsdyna`).
* Bodies for additive manufacturing and CAD ([docs/theory.md](docs/theory.md) §145):
`outputs.surface: {formats: [stl, 3mf, step], phases: all, unit: millimeter}` writes
the closed bodies of the phases asked for, which share their interfaces and tile the
box (`morphogen.mesh.surface.phase_surfaces`: the functions at the nodes, faces
included, mirrored beyond them); one 3MF package with a material per body, for
multi-material printing (`morphogen.io.printing.write_3mf`, `read_3mf`); STEP files
(AP214) of solids, each connected piece a manifold solid of planar faces bounded by
shared edges, which OpenCascade reads as valid solids at their volumes, or of faceted
shells (`write_step`). Layers of TPMS (`tpms_layers`): phases of several materials in
the bands of the levels of a surface or a network. The closed surfaces merge the
vertices of their caps (one vertex where they meet). Templates `graded_tpms`,
`spinodoid`, `hybrid`, `part` and `tpms_layers`, and a family *Additive manufacturing*
in the gallery. Public interface: `TPMSLayers`, `TPMSLayersStructure`,
`morphogen.io.printing`, `morphogen.mesh.surface.phase_surfaces`, `node_grid` and
`merge_vertices`, the keyword `caps` of `surface_mesh`.
* Strut lattices ([docs/theory.md](docs/theory.md) §144): the cells `octahedral` (the
octahedra of the face centres, stretching-dominated) and `rhombic_dodecahedron` (the
Voronoi cells of the fcc lattice, bending-dominated); `reinforcement: edges` or `axis`
along `reinforcement_axis` (bcc-z, fcc-z, reinforced octet and octahedral cells);
`curvature`, the struts inside the cell bent into circular arcs of a sagitta (curved
octahedra); `cell: custom` with its `struts`. The volume fraction is solved for all of
them; the rigidity of the frames takes the two new cells. Public interface: the
parameters `struts`, `reinforcement`, `reinforcement_axis`, `curvature` and
`arc_segments` of `StrutLattice`, `StrutLattice.spec`, and in `morphogen.models.lattice`
`CellSpec`, `as_spec` and `REINFORCEMENTS`.
* Parts ready to print (`part`, [docs/theory.md](docs/theory.md) §143): any two-phase model
filling a box, a cylinder, a tube, a sphere or a closed surface read from a file (STL,
binary or ASCII, or OBJ, PLY... through meshio; `fit` scales it into the domain), with a
solid shell along the boundary (`shell`), the skins of a sandwich panel (`skins`) and the
supports of a beam (`supports`). The signed distance to a closed triangle surface on a
grid (`morphogen.mesh.distance`): exact near the surface, its inside by the parity of
crossings. Conformal TPMS (`tpms` with `cells_around`, `cylinder_axis`,
`cylinder_center`): cells wrapped around an axis, for tubes and columns. Public
interface: `Part`, `PartStructure`, `morphogen.mesh.distance` (`read_surface`,
`signed_distance_grid`, `interpolate`, `fitted`, `merged`, `is_closed`), and the keywords
`cells_around`, `cylinder_axis` and `cylinder_center` of `TPMS` and `TPMSStructure`.
* Hybrid architectures (`hybrid`, [docs/theory.md](docs/theory.md) §142): two models blended
across a plane, a cylinder or a sphere (`transition`, `position`, `radius`, `center`), the
first below the plane or inside, the second beyond, by a sigmoid of the distance to the
surface of width `width` (Yang et al. 2014): a gyroid into a Schwarz P along a beam, a
strut lattice at the core of a cylinder in a TPMS. Any two models with implicit
functions: their functions bounded by `scale` (`D tanh(phi / D)`) before they are
blended, so that a first-order distance that grows far from its surface does not
outweigh the other model; the slope of the blend bounded for the exact measures and
meshes. Public interface: `Hybrid`, `HybridStructure`.
* Spinodoids (`spinodoid`, [docs/theory.md](docs/theory.md) §141): the level of a sum of
waves of one wavelength (Cahn 1965; Soyarslan et al. 2018; Kumar et al. 2020), their
directions uniform on the sphere or within cones about the axes (`cone_angles`:
isotropic, lamellar, columnar, cubic), the network, the sheet or the other network at a
level of the normal law, a volume fraction or a profile of fractions (graded); in a
periodic box the modes of a shell about the wavelength (a periodic realization). The
theory gives the specific surface of Rice's formula, which the realizations meet within
1 to 2 %. Public interface: `Spinodoid`, `SpinodoidStructure` and, in
`morphogen.models.spinodoid`, `level_of_fraction`, `in_cones`, `cone_moments` and
`rice_surface`.
* TPMS (`tpms`, [docs/theory.md](docs/theory.md) §140): ten surfaces, with Schoen's I-WP
and F-RD, Fischer–Koch S, the lidinoid, split P and I2-Y (the nodal forms of Lord &
Mackay 2003) beside the gyroid, Schwarz P and D and Neovius; the network on the other side
of the surface (`variant: upper_network`), which differs from the network on the surfaces
that are not balanced; graded TPMS (`fraction_gradient: [0.15, 0.45]`, `gradient_axis`):
the volume fraction at equally spaced positions along an axis of a non-periodic domain,
interpolated linearly, each position at the level of its fraction, the slope of the level
in the distance of the surface. Public interface: `TPMS(fraction_gradient=...,
gradient_axis=...)`, `TPMS.graded_levels`, `TPMS.mean_fraction`, the keywords `levels`
and `gradient_axis` of `TPMSStructure`, and in `morphogen.models.tpms` `SURFACES`,
`VARIANTS`, `level_of_fraction` and `fraction_of_level`.
* Forchheimer's law through OpenFOAM (`morphogen.io.forchheimer`, `morphogen openfoam
forchheimer`, [docs/theory.md](docs/theory.md) §139): as the Reynolds number grows,
inertia adds a drag to Darcy's and the apparent permeability of the pores falls. A case
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A study follows one chain, and each step is a part of the package:

| Step | What morphoGen does |
|---|---|
| **Generate** | 49 models: Boolean models, packings, fibres, tessellations, Gaussian fields, dead leaves, automata and growths, spinodal decomposition, strut and plate lattices, foams, triply periodic surfaces, woven textiles, bio-inspired structures, images segmented into their phases; monodisperse or polydisperse; periodic or not, combined, nested; hierarchical structures of any models four or five levels deep, chains or trees (lattices of lattices or of tubes, tows of fibres in a porous resin, grains of lamellae); and the shapes of Microgen (3MAH) |
| **Generate** | 53 models: Boolean models, packings, fibres, tessellations, Gaussian fields, dead leaves, automata and growths, spinodal decomposition, strut and plate lattices, foams, triply periodic surfaces, woven textiles, bio-inspired structures, images segmented into their phases; monodisperse or polydisperse; periodic or not, combined, nested; hierarchical structures of any models four or five levels deep, chains or trees (lattices of lattices or of tubes, tows of fibres in a porous resin, grains of lamellae); and the shapes of Microgen (3MAH) |
| **Describe** | an exact description of each realization (centres, axes, cells) and an implicit function for each phase, from which voxel images, surfaces and conforming meshes are cut at any resolution |
| **Measure** | fractions, specific surface, covariance, chords, tortuosity, percolation thresholds, stereology..., each beside the closed form of its model when there is one; on the implicit geometry itself, exactly: the probes of mathematical morphology and the Minkowski functionals of unions of spheres; the model of an image or of a section identified among candidates |
| **Compute** | elastic, thermal, electrical, dielectric, magnetic and diffusive properties, their couplings, harmonic regimes, the magnetization curves of saturating phases and the magnetostriction and stiffening in a field of magnetorheological elastomers, the magnetic domains of ferromagnets (micromagnetics: hysteresis loops and first-order reversal curves, their dynamics, their thermal fluctuations and their magnetostriction under stress), hierarchical structures homogenized level by level and the buckling of their levels (the walls of their tubes too), waves, flow and sound, thermo-chemo-elastic fields in time, periodic plates through their thickness (their stiffness of Kirchhoff and Love, their transverse shear by the bending gradient, their conductance and their bowing, the permeance and the inertance of perforated panels, the sound that panels let through, their guided waves and band gaps, prestressed too, the wrinkling and the dimpling of their faces, compressed or heated between fixed edges, their elastic limits and their collapse, and the panels of
Expand Down
Binary file added docs/_static/gallery/graded_tpms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/gallery/hybrid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/gallery/part.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/gallery/spinodoid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/gallery/tpms_layers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the steps of a study:

| Step | Package | What it holds |
|---|---|---|
| Generate | [`morphogen.models`](api/morphogen.models.rst) | the 49 models of microstructures and the shapes of Microgen (3MAH), their realizations and their theory |
| Generate | [`morphogen.models`](api/morphogen.models.rst) | the 53 models of microstructures and the shapes of Microgen (3MAH), their realizations and their theory |
| | [`morphogen.automata`](api/morphogen.automata.rst) | cellular automata and lattice growth processes, on grids and tilings |
| | [`morphogen.design`](api/morphogen.design.rst) | tile assemblies, strut frameworks and their rigidity, searches of design spaces |
| | [`morphogen.optimization`](api/morphogen.optimization.rst) | topology optimization of periodic cells by inverse homogenization, and the inverse design of active structures |
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ style.
| `test_conforming.py` | MMG meshes: tiling, mirrored meshes of symmetric cells (exact symmetries, matching faces, the group of a 2 x 2 array of holes), volume fractions, exact faces, matching periodic faces and exact PBC, porous lattices, exports (VTU, INP, MSH, Medit) and readers |
| `test_iga.py` | B-spline functions against the recurrence of Cox and de Boor, their derivatives and the embeddings of their refinements; exact arcs, refined patches and assemblies; the patch test (plane strain, plane stress, a solid); Lamé's thick-walled cylinder (orders 3 and 2, 4 and 3) and Kirsch's plate with a hole; the effective tensors of a homogeneous cell, of a laminate (elasticity, conduction) and of a cell with a hole, against the curved finite elements of the solid (slow); cells of any lattice (other cuts of the same cell, strips with gaps, a cell and its neighbour), the square and hexagonal arrays of holes against the series of Perrins et al. and the isotropy of the hexagonal one, the sheet with alternating holes (exact fraction, symmetries of the square, the square array with circles, Poisson's ratio against the ligaments; against the FFT solver, slow) |
| `test_iga_optimization.py` | the design and its geometries (linear maps, symmetric radial variables); the analytical shape derivatives of the tensor and of the fraction of a cell (elasticity, conduction) and of the compliance and the area of a structure against central differences; the hole of largest bulk modulus against the bound of Hashin and Shtrikman (Vigdergauz; SLSQP and MMA); the hole of a plate under biaxial tension against the ellipse (slow); folded designs and the history of the kept iterates; variables linked by the symmetries of a pattern (images and directions, periods, derivatives, errors); the holes of an auxetic sheet found again from their effective constants; its lowest Poisson's ratio at a given stiffness, with linear constraints |
| `test_implicit.py` | the implicit geometry of every model: for the 49 models, the shapes of Microgen and 19 other configurations of several phases, an implicit function of each phase whose sign is that of the voxel image on two grids and which partition the points; the Menger sponge on the grid of its cubes, two cells and their boundary layer against their planes, leaves and a transparent leaf against their spheres; the interpolation on the background mesh; the conforming mesh of a coated sphere (three phases cut one after the other: volumes, matching faces, the phases kept, finite elements against the FFT solver), cells of three phases meshed by their grains, coated hard spheres (slow) |
| `test_implicit.py` | the implicit geometry of every model: for the 53 models, the shapes of Microgen and 19 other configurations of several phases, an implicit function of each phase whose sign is that of the voxel image on two grids and which partition the points; the Menger sponge on the grid of its cubes, two cells and their boundary layer against their planes, leaves and a transparent leaf against their spheres; the interpolation on the background mesh; the conforming mesh of a coated sphere (three phases cut one after the other: volumes, matching faces, the phases kept, finite elements against the FFT solver), cells of three phases meshed by their grains, coated hard spheres (slow) |
| `test_radioss.py` | the inputs of OpenRadioss read back card by card against the columns of the Radioss Reference Guide (units, nodes, bricks and tetrahedra oriented for Radioss, their mid-side nodes on their edges, parts, the solid property, LAW1, LAW36 with its yield curves at the rates of Norton's viscosity, LAW2, node groups, held and driven faces, the anchor of free faces, a shear, an impact on a rigid wall, the self contact, the time histories and their sampling, the Engine input, the length scale); the model (units, materials, loadings, time steps); the listings, time histories and legacy VTK grids (ASCII and binary, classic and VTK 5.1) |
| `test_dynamics.py` | the installation of OpenRadioss found (the paths, the environment, the permissions restored), runs with a stand-in of OpenRadioss (`fake_openradioss.py`): the curves of a bar against its modulus, the forces from the time history or the animations, the frames for the 3D view, a shear, an impact, the failures of the Starter, the stops, the conversions; a release installed from a GitHub API served locally (the archive of each system, no member leaving its folder); the command line |
| `test_gui_tools_dynamics.py` | the tab Explicit dynamics: the inputs written without OpenRadioss (engineering units, the materials of the fields and of the JSON), the errors, a dynamic test with the stand-in (its summary in MPa and MJ/m³, the curves in morphoGen's components compared with another run, the 3D view of its last frame), the results read back, the installation found, an impact |
Expand Down
14 changes: 12 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ outputs:
image: [vti, vtk, mhd, npz, npy, tif]
labels: [vti] # tessellations: cell labels
level_set: [vti]
mesh: {formats: [inp, msh, vtu], phases: [1]} # voxel hexahedra
mesh: {formats: [inp, msh, vtu], phases: [1]} # voxel hexahedra; also k (LS-DYNA) and
# ans (ANSYS APDL), with the elastic materials of the run
conforming_mesh: [vtu, inp, msh, mesh, xdmf, mail] # tetrahedra (needs the mesh section);
# the triangles of the plane: vtu, inp (plane strain elements), msh,
# mesh and the formats of meshio
Expand All @@ -87,7 +88,10 @@ outputs:
# dual: the flow through the mesh on its polyhedral dual,
# velocity: the flow periodic along the axis at this filtration
# velocity, convection: linear | linearUpwind}
surface: [stl]
surface: [stl] # or {formats: [stl, 3mf, step], phases: all | [0, 1], unit:
# millimeter}: the closed bodies of the phases asked for, which
# share their interfaces and tile the box; 3MF (one file, a
# material per body) and STEP (a solid per connected piece)
database: null # SQLite file recording the run and its results (results.py)
tables: [txt, xlsx] # the tables of the run in these formats too (besides .csv)
shell_section: true # the homogenized plate of each realization as a section of Abaqus'
Expand All @@ -101,6 +105,12 @@ analysis: [volume_fraction, specific_surface, connectivity, phase_fractions, cel
# union of spheres exactly: exact_V_V, exact_S_V, exact_M_V, exact_chi_V),
# exact_grains (the grains of a tessellation on its exact cells; the
# grains of seeds against their seeds)
printability: # the checks of additive manufacturing of every realization, on its
build: +z # voxels (needs the voxels section): the direction of the build
min_wall: 0.3 # the thinnest wall the process builds; min_hole: the narrowest
min_hole: 0.5 # channel that drains; overhang_angle: 45 (from the horizontal);
# <name>_<index>_printability.json and the columns printability.*
# (printable, overhang_fraction, islands, trapped_voids...)
homogenization: # apparent properties of every realization
method: auto # fe (mesh section) | fft (voxels, periodic) | xfem (the level set
# of the model cut by the grid of the voxels section, periodic) |
Expand Down
Loading
Loading