simnibs.read_msh

simnibs.read_msh(fn, m=None, buffered=False)

Reads a gmsh ‘.msh’ file

Parameters
  • fn (str) – File name

  • m (simnibs.msh.Msh (optional)) – Mesh structure to be overwritten. If unset, will create a new structure

  • buffered (bool) – Perform buffered reading, expected to be significantly faster for slow network connections when the file specifies elements and nodes one by one (the case for some version 2 .msh files directly from gmsh). Defaults to False, and is ignored for version 4 .msh files

Returns

msh – Mesh structure

Return type

simnibs.msh.Msh