morphogen.mesh

Meshes: conforming tetrahedral meshes of implicit morphologies (MMG), with 4-node or 10-node elements whose curved edges follow the interfaces, exact meshes without a background grid, voxel hexahedra and surface meshes (marching cubes).

Public names

  • ImplicitBody — A microstructure given by its level-set function in domain: function(points) of points (rows) negative inside phase 1, positive outside (for instance the distance to the nearest hole less its radius, for the solid of a porous plate).

  • SurfaceMesh — SurfaceMesh(vertices: ‘np.ndarray’, faces: ‘np.ndarray’)

  • TetMesh — Tetrahedral mesh of the box [lower, upper] with a phase per element.

  • VoxelMesh — One 8-node hexahedron per selected voxel.

  • adaptive_mesh — Conforming tetrahedral mesh of the exact implicit functions of the phases of a microstructure (micro.phase_level_sets_at; an object with a level_set_at only: its two phases), refined where they need it, without a grid (see the module).

  • conforming_mesh — Tetrahedral mesh of a microstructure, conforming to the interface of its phases.

  • curved_mesh — The 10-node mesh of mesh (4 or 10 nodes) whose nodes on the interfaces of the phases lie on the implicit surfaces of the microstructure micro: isoparametric elements with curved edges along the interfaces (see the module).

  • exact_mesh — Conforming tetrahedral mesh of the exact geometry of a microstructure, without a background grid (see the module): the exact cells of tessellations (morphogen.mesh.polycrystal.polycrystal_mesh()), the exact convex pieces of faceted microstructures (polyhedral_mesh()), or the adaptive mesh of the exact functions of the phases of the others (adaptive_mesh()); options go to the mesher of the route (exact_route(), which grains false turns from the cells of a tessellation to the functions of its phases). phases: "all", "solid", "matrix" or the phases to keep (a list). hausdorff: the distance of the curved interfaces of level sets to their facets; the planar facets of cells and pieces are kept, whatever it is. sharp_edges: the sharp edges of the smooth pieces of level sets (adaptive_mesh()); the edges of cells and convex pieces are those of their facets, kept.

  • exact_route — How exact_mesh() meshes a microstructure: "cells" (the exact cells of Voronoi and Laguerre tessellations, grain by grain), "pieces" (exact convex pieces: faceted microstructures), "level_set" (the adaptive mesh of the exact point-wise functions of its phases, phase_level_sets_at(): the other structures, of two phases or more, the tessellations with a grain-boundary phase, and those meshed by their phases, grains false), or "" (none: the structures whose functions are those of grids only, and those whose cells carry crystal orientations but tessellations, whose meshes come from their voxel images).

  • mirrored_mesh — A conforming tetrahedral mesh of a microstructure symmetric about the mid-planes of its box along the axes mirrors (see the module): the irreducible part of the box, halved along each of them, meshed by MMG (conforming_mesh(): size, phases and the other options; matching faces along the other axes), then reflected across the mid-planes, the nodes of each plane shared by its two halves. The mesh has these mirrors exactly, and its opposite faces match along every axis (the reflected ones, a periodic microstructure being symmetric about the faces of its box as well). diagonals: pairs of mirrored axes of equal edges whose diagonal planes through the centre, x_i - c_i = x_j - c_j, are mirrors too (((0, 1),) for the square of 4/mmm, ((0, 1), (1, 2)) for the cube of m-3m): the chamber of the group (point_group()) is meshed and mapped by each of its operations. cells: copies of the box side by side (a cell of several primitive cells, whose translations are exact symmetries of the mesh). check: the level set is sampled to verify its symmetry. Elements of order 1 or 2.

  • mmg_executable — Path of an MMG executable (mmg3d or mmg2d): explicit, $MORPHOGEN_MMG3D ($MORPHOGEN_MMG2D), the pymmg package, or mmg3d_O3 / mmg3d on the PATH.

  • polyhedral_mesh — Conforming tetrahedral mesh of a faceted microstructure from its exact convex pieces (micro.convex_pieces(): the pieces, their phases and cells; by_piece: every element knows the cell of its piece, mesh.cell), periodic (matching faces) when the microstructure is; see pieces_mesh() for the options.

  • surface_mesh — Surface of phase 1 from a level-set image (negative inside) or a phase image.

  • voxel_mesh — Mesh the voxels of image whose value is in phases (default: all voxels).

Modules