Geometry and Mesh (fedoo.mesh)

Class Mesh

Mesh(nodes[, elements, elm_type, node_sets, ...])

Fedoo Mesh object.

Mesh manipulation functions

stack(mesh1, mesh2[, name])

Make the spatial stack of two mesh objects which have the same element shape.

extrude(mesh, extrude_path[, n_nodes, ...])

Build a volume or surface mesh from the extrusion of a surface or wire mesh.

extract_surface(mesh[, reduce_order, ...])

Build a mesh of the surface from a given 2D or 3D mesh.

change_elm_type(mesh, elm_type[, name])

Attempt to change the type of element of a mesh.

quad2tri(mesh)

Change the type of element of a mesh from 'quad4' to 'tri3'.

Import/Export Fedoo Mesh object

import_file(filename[, name])

Import a mesh from a file.

import_msh(filename[, name, mesh_type])

Import a mesh from a msh file (gmsh format).

import_vtk(filename[, name])

Import a mesh from a vtk file (gmsh format).

Mesh Creation Functions

rectangle_mesh([nx, ny, x_min, x_max, ...])

Create a rectangular Mesh

box_mesh([nx, ny, nz, x_min, x_max, y_min, ...])

Create the mesh of a box

disk_mesh([radius, nr, nt, elm_type, ndim, name])

Create a surface mesh of a disk or an ellipse

hole_plate_mesh([nr, nt, length, height, ...])

Create a mesh of a 2D plate with a hole

hollow_disk_mesh([radius, thickness, nr, ...])

Create a surface mesh of an hollow disk or an ellipse

I_shape_mesh([height, width, web_thickness, ...])

Create the mesh of a I.

line_mesh_1D([n_nodes, x_min, x_max, ...])

Create the Mesh of a straight line with corrdinates in 1D.

line_mesh([n_nodes, x_min, x_max, elm_type, ...])

Create the Mesh of a straight line

line_mesh_cylindric([nt, r, theta_min, ...])

Create the mesh of a curved line based on cylindrical coordinates

grid_mesh_cylindric([nr, nt, r_min, r_max, ...])

Create a mesh as a regular grid in cylindrical coordinate

structured_mesh_2D(data, edge1, edge2, ...)

Create a 2D structured grid from 4 edges.

generate_nodes(mesh, N, data[, type_gen])

Add regularly espaced nodes to an existing mesh between to existing nodes.