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 indomain: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 alevel_set_atonly: 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 ofmesh(4 or 10 nodes) whose nodes on the interfaces of the phases lie on the implicit surfaces of the microstructuremicro: 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());optionsgo to the mesher of the route (exact_route(), whichgrainsfalse 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— Howexact_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,grainsfalse), 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 axesmirrors(see the module): the irreducible part of the box, halved along each of them, meshed by MMG (conforming_mesh():size,phasesand the otheroptions; 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 oforder1 or 2.mmg_executable— Path of an MMG executable (mmg3dormmg2d): explicit,$MORPHOGEN_MMG3D($MORPHOGEN_MMG2D), thepymmgpackage, ormmg3d_O3/mmg3don thePATH.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; seepieces_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 ofimagewhose value is inphases(default: all voxels).