fedoo.mesh.rectangle_mesh

rectangle_mesh(nx=11, ny=11, x_min=0, x_max=1, y_min=0, y_max=1, elm_type='quad4', ndim=None, name='')

Create a rectangular Mesh

Parameters:
  • nx (int) – Numbers of nodes in the x and y axes (default = 11).

  • ny (int) – Numbers of nodes in the x and y axes (default = 11).

  • x_min (int,float) – The boundary of the square (default : 0, 1, 0, 1).

  • x_max (int,float) – The boundary of the square (default : 0, 1, 0, 1).

  • y_min (int,float) – The boundary of the square (default : 0, 1, 0, 1).

  • y_max (int,float) – The boundary of the square (default : 0, 1, 0, 1).

  • elm_type ({'tri3', 'quad4', 'quad8', 'quad9'}) –

    The type of the element generated (default=’quad4’)

    • ’tri3’ – 3 node linear triangular mesh

    • ’tri6’ – 6 node linear triangular mesh

    • ’quad4’ – 4 node quadrangular mesh

    • ’quad8’ – 8 node quadrangular mesh (à tester)

    • ’quad9’ – 9 node quadrangular mesh

Returns:

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

Return type:

Mesh

See also

line_mesh

1D mesh of a line

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