Skip to content

Mesh Surface โ€‹

Meshes surfaces and polysurfaces for ASD Shell, with gmsh: quads by default, or triangles. The elements are smaller where a Mesh Refinement asks, the mesh has a node at every point you give it, and a line of nodes along every curve. Faces that touch share their nodes where they meet.

๐Ÿ”ง Grasshopper component โ€‹

Mesh SurfaceAlpaca4d โ–ธ 10_Utility
Mesh Surface component
Inputs
BrepsBreplistSurfaces or polysurfaces to mesh, as one mesh, sharing nodes where they touch.
A closed polysurface is meshed as its faces: a lift core under a slab.
SizeNumberlistThe edge length the elements aim for, in m, one for each Brep; the last one is used for the rest.
RefinementsGenericlist(empty)Where the elements are to be smaller.
PointsPointlist(empty)Points the mesh must have a node at, such as point loads and columns.
Each is a node exactly. A point on none of the surfaces is left out, with a warning.
CurvesCurvelist(empty)Curves on the surfaces the mesh must have a line of nodes along, such as walls and beams.
A beam drawn on the curve then shares the shell's nodes. A curve off the surfaces is left out, with a warning.
Outputs
MeshMeshThe mesh, joined into one, each element facing the way its surface does.
Feed it to ASD Shell.
QualityNumberlistEach element's shape, in the mesh's face order: 1 for a square or an equilateral triangle, 0 for a flat one.

Right-click menu โ€‹

ItemDoes
QuadsThe default. gmsh meshes in triangles laid out in pairs, and joins them into quads. Where the mesh grades round a refinement, a few triangles are left; ASD Shell takes them too.
TrianglesTriangles only. They grade evenly round refinements and tight curves.

The component shows which one is on under its name.

๐Ÿ“ˆ When to use it โ€‹

Use it when

  • A slab, a wall or a shell needs smaller elements in places: round columns, openings and point loads, and larger ones elsewhere.
  • Columns, supports or point loads must sit on a node: give their points to Points.
  • Beams or walls stand on a slab along a line: give the line to Curves, so they share its nodes.

Do not use it when

  • You want quads only and the same size everywhere โ†’ Mesh Brep gives pure quads, smoothly laid out by Rhino's QuadRemesh.
  • The body is solid โ†’ Mesh Solid.

๐Ÿ’ก What it does โ€‹

Mesh Surface writes the Breps to STEP files, has gmsh mesh them, and reads the mesh back. gmsh is free, and you install it yourself, as you do OpenSees: see Setup. gmsh cuts the Breps into pieces where they touch, and cuts the points and curves into them, so the mesh is one, with a node at each point and element edges along each curve. A shell takes its local axes from the way its element faces, so each element is turned to face the way its Brep face does.

Warning

Set Assemble Model's Tolerance below the smallest element. Its default, 1 cm, welds nodes nearer than that together. Mesh Surface's remark gives the shortest edge: set Assemble Model's Tolerance below it.

Note

Mesh Surface runs every time an input changes, however many elements it is asked for. 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.
Point โ€ฆ is on none of the surfacesIt is left out.
Curve โ€ฆ does not lie on the surfacesIt is left out.
โ€ฆ elements, โ€ฆ of them triangles where the quads could not all pair upA remark: ASD Shell takes both.
The shortest element edge is โ€ฆSet Assemble Model's Tolerance below it.
The worst element is shaped โ€ฆAn element 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.

๐Ÿ’ก Examples โ€‹

  • The Slab with Openings meshes a flat slab with a node on each column, finer round the columns and along a stair opening and a shaft.
  • The Free-form Canopy meshes a doubly curved NURBS surface with two holes, a node on each column and a line of nodes along two curves.