fedoo.Mesh.read

static Mesh.read(filename: str, name: str = '') Mesh

Build a Mesh from a file.

The file type is inferred from the file name. Abaqus decks (.inp) are read with the meshio library; this supports second-order (quadratic) elements, multiple element types (returned as a MultiMesh) and node/element sets (*NSET/*ELSET). Other formats are read with pyvista, which relies on the native VTK readers.

Parameters:
  • filename (str) – Name of the file to read

  • name (str, optional) – name of the new created Mesh. If specitified, this Mesh will be added in the dict containing all the loaded Mesh (Mesh.get_all()). By default, the Mesh is not added to the list.