8.1.2. triangular meshΒΆ

mesh('tri', tag, numlines, *ltags, id, ndf, meshsize, eleType='', *eleArgs=[])

Create a triangular mesh object.

tag (int) mesh tag.
numlines (int) number of lines (line mesh) for defining a polygon.
ltags (list (int)) the line mesh tags
id (int)

mesh id. Meshes with same id are considered as same structure of fluid identity.

  • id = 0 : not in FSI
  • id > 0 : structure
  • id < 0 : fluid
ndf (int) ndf for nodes to be created.
meshsize (float) mesh size.
eleType (str)

the element type, (optional)

if no type is given, only nodes are created. if beam elements are given, beams are created instead of triangular elements.

eleArgs (list)

a list of element arguments. The arguments are same as in the element commands, but without element tag, and node tags. (optional)

For example,

eleArgs = ['PFEMElementBubble', rho, mu, b1, b2, thickness, kappa]