fedoo.mesh.line_mesh

line_mesh(n_nodes=11, x_min=0, x_max=1, elm_type='lin2', ndim=None, name='')

Create the Mesh of a straight line

Parameters:
  • n_nodes (int) – Numbers of nodes (default = 11).

  • x_min (int,float,list) – The boundary of the line as scalar (1D) or list (default : 0, 1).

  • x_max (int,float,list) – The boundary of the line as scalar (1D) or list (default : 0, 1).

  • elm_type ({'lin2', 'lin3', 'lin4'}) – The shape of the elements (default=’lin2’) * ‘lin2’ – 2 node line * ‘lin3’ – 3 node line * ‘lin4’ – 4 node line

Returns:

The generated geometry in Mesh format. See the Mesh class for more details.

Return type:

Mesh

See also

rectangle_mesh

Surface mesh of a rectangle

box_mesh

Volume mesh of a box

grid_mesh_cylindric

Surface mesh of a grid in cylindrical coodrinate

line_mesh_cylindric

Line mesh in cylindrical coordinate