Skip to content

Mesh Solid โ€‹

Fills closed Breps and closed meshes with tetrahedra for Ten Node Tetrahedron, with gmsh. The tetrahedra are smaller where a Mesh Refinement asks, and the mesh has a node at every point you give it. Breps that touch are meshed as one, and share their nodes where they meet.

๐Ÿ”ง Grasshopper component โ€‹

Mesh SolidAlpaca4d โ–ธ 10_Utility
Mesh Solid component
Inputs
SolidsGenericlistClosed Breps or closed meshes to fill.
Breps that touch or overlap are meshed as one, and share their nodes where they meet; where they overlap, the overlap goes to the first. Each closed mesh is meshed on its own. A box, an extrusion or a capped surface is taken as a Brep.
SizeNumberlistThe edge length the tetrahedra aim for, in m, one for each solid; the last one is used for the rest.
A footing can be coarser than the column on it.
RefinementsGenericlist(empty)Where the tetrahedra are to be smaller.
PointsPointlist(empty)Points the mesh must have a node at, such as point loads and supports.
A point inside or on a Brep is a node exactly; on a closed mesh's surface, the nearest node is moved onto it. A point in no solid is left out, with a warning.
FeatureAngleNumber40Closed meshes only: edges that fold by more than this many degrees stay sharp.
The surface between them is remeshed.
Outputs
TetrahedraMeshtreeFour node tetrahedra, a branch {solid} for each solid.
Feed them to Ten Node Tetrahedron.
FaceNodesPointtreeThe nodes on each face, a branch {solid;face}, the middles of the tetrahedra's edges included.
A Brep's faces are numbered as Rhino numbers them; a closed mesh's are the patches gmsh cuts its surface into at its sharp edges. For supports and loads on a face.
QualityNumbertreeEach tetrahedron's shape, from 1 for a regular one down to 0 for a flat one, a branch for each solid.

๐Ÿ“ˆ When to use it โ€‹

Use it when

  • A solid is a closed Brep or a closed mesh: a footing, a bracket, a bone, a scanned sculpture.
  • It needs smaller elements in places - round a hole, along a fillet, at a load - and larger ones elsewhere: wire a Mesh Refinement per place.
  • Several solids touch and must work together, such as a column on its footing: give them all to one Mesh Solid. Their tetrahedra come out a branch each, so each can get its own material.

Do not use it when

๐Ÿ’ก What it does โ€‹

Mesh Solid writes the geometry to files, has gmsh mesh them, and reads the mesh back. gmsh is free, and you install it yourself, as you do OpenSees: see Setup.

  • Breps go to gmsh as STEP files, so it meshes their true faces: a cylinder's round face stays round. Breps that touch are cut into pieces where they meet, so the mesh has the same nodes on both sides of every interface. Points are cut into them too, which puts a node at each.
  • Closed meshes go as STL. gmsh cuts their surface into patches at the edges sharper than Feature Angle, remeshes each patch at Size, and fills the whole.
  • Face Nodes gives, for each face, the tetrahedra's corners on it and the middles of their edges, where Ten Node Tetrahedron puts its other six nodes. Support a face with all of them: held at its corners only, the edge nodes between them would be left free.

Warning

Set Assemble Model's Tolerance below the smallest tetrahedron. Its default, 1 cm, welds nodes nearer than that together. Mesh Solid's remark gives the shortest edge: set Assemble Model's Tolerance below it, 0.1 mm for most solids.

Note

Mesh Solid runs every time an input changes, however many tetrahedra it is asked for. A Size typed in metres on a model in millimetres asks for billions. Press Escape to stop gmsh.

โš ๏ธ Messages โ€‹

MessageWhat it means
Alpaca4d meshes with gmsh โ€ฆ It found nonegmsh is not installed, or not where Alpaca4d looks. See Setup.
Solid โ€ฆ is a Brep that is not closedMesh Solid fills closed Breps. For a surface, use Mesh Surface.
Solid โ€ฆ is a mesh with holes in itClose it first, with Rhino's FillMeshHoles.
Point โ€ฆ is in no solid, nor on oneIt is left out.
The shortest element edge is โ€ฆSet Assemble Model's Tolerance below it.
The worst tetrahedron is shaped โ€ฆA tetrahedron is nearly flat: stresses next to it are unreliable. A smaller Size, or a refinement there, helps.
gmsh made no mesh โ€ฆ Its script is โ€ฆgmsh failed. The message has its own words, and the folder its script and the geometry are in: open the script in gmsh to see where it stops.
Stopped: gmsh was halted with EscapeYou pressed Escape while it meshed.
gmsh was killed while it meshedIt ran out of memory, most likely: the Size or a refinement asks for far too many tetrahedra.

๐Ÿ’ก Examples โ€‹

  • The Pile Cap fills six Breps that touch, a column, a cap and four piles, as one mesh, and holds and loads them through Face Nodes.
  • The Femur fills a bone's closed surface with tetrahedra, finer along its neck.