Skip to content

Releases

5.6.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 09:21
8c451e5

Added

  • CGNS reader and writer, rewritten (HDF5 files). Reads both unstructured and
    structured zones. meshlane has no structured representation, so a structured zone is
    destructured on read: its i/j/k grid becomes unstructured hexahedron, quad or line
    cells (with a warning). Linear and quadratic elements, MIXED sections and polyhedra
    (NGON_n/NFACE_n) are supported; boundary conditions and families become groups, and
    flow solutions become point/cell data. The writer emits unstructured CGNS that passes
    cgnscheck. meshlane.cgns.read_multi / write_multi read and write multi-zone
    files, one mesh per zone. (#49)
  • Ansys Fluent .msh and .msh.h5 (HDF5) reader and writer: the reader rebuilds the
    volume cells from the faces (tetra, pyramid, wedge, hexahedron, polyhedra; triangles,
    quads and polygons in 2D), ASCII and binary, with the named zones as groups; the
    writer produces the face-based layout Fluent reads, binary or ASCII. (#48)
  • OpenVolumeMesh .ovm (ASCII) reader and writer. Tetrahedra, pyramids, wedges and
    hexahedra are rebuilt from the half-face topology; shared edges and faces are written
    once, with half-face normals pointing into the cells as OpenVolumeMesh expects.
    Properties are skipped on reading, and point/cell data are not written. (#7, #40)
  • OpenFOAM polyMesh writer, ASCII or binary (binary=True, or meshlane binary case/case.foam). Writing case/case.foam produces
    case/constant/polyMesh; faces are built and matched with numpy, oriented from owner
    to neighbour and ordered as OpenFOAM requires. Boundary patches come from the groups
    of surface cells (cell_sets, or MED/OpenFOAM cell_tags); ungrouped boundary faces
    go to defaultFaces. Quadratic cells are written with their corner nodes, and unused
    points are dropped. Files a previous mesh left in polyMesh (zones, sets,
    refinement levels) are moved to polyMesh.orig. The reader now keeps the patch
    types in mesh.patch_types. (#8, #42)
  • gmsh: the missing wedge18 (prism18) node ordering, so quadratic prisms read and
    write correctly; the reverse table is now derived from the forward one so the two
    cannot drift. (#27, #28)

Changed

  • Breaking: .msh files are now written as Gmsh by default. Previously a mesh
    without Gmsh/MED-specific data written to .msh produced an Ansys Fluent file. To
    write Fluent, pass file_format="ansys" (CLI: --output-format ansys). Reading is
    unaffected. (#48)

Fixed

  • Ansys/APDL (ansysInp, .cdb): 2D plane meshes keep their type and dimension. The
    writer emits surface elements as PLANE182/PLANE183 (with KEYOPT(1) so triangles
    initialize) and writes boundary groups as node components instead of BEAM189 beams;
    the reader returns 2D points for plane element types. A 2D plane-stress mesh converted
    .med to .cdb (and back) no longer becomes 3D SHELL281/SOLID185/BEAM189. (#37, #47)
  • MED: files mixing blocks with and without families (e.g. volume cells without
    FAM and boundary faces with groups, as in snappyHexMesh meshes exported from
    Salome) no longer fail with Incompatible cell data 'cell_tags'; blocks without
    families get family 0. The multi-mesh reader used by the CLI now reads polyhedra
    (POE) like meshlane.read, instead of failing with KeyError: 'POE'. Both
    readers share the same cell reading code. (#41)
  • OpenFOAM reader: binary faces files as OpenFOAM writes them (faceCompactList)
    are now read; they failed with a ValueError. (#42)
  • SU2: writing a mesh with boundary elements no longer fails with cannot unpack non-iterable CellBlock object. Marker names are kept: the reader stores them in
    cell_sets (and still in cell_data["su2:tag"]), the writer takes them from
    cell_sets, the MED/OpenFOAM cell_tags families or the first integer cell data.
    2D meshes with z = 0 coordinates are written as NDIME= 2. Files with Windows line
    endings or spaces around = are read. Reading and writing are vectorized. (#44)
  • SU2: multi-zone files (NZONE/IZONE) are read and written as a list of meshes with
    meshlane.su2.read_multi / write_multi, like multi-mesh MED files; they used to
    give a corrupted mesh. meshlane convert and meshlane info handle them, e.g.
    meshlane convert cht.su2 cht.med (one MED mesh per zone) and back. (#44)
  • SU2: the sections after the markers (periodicity, FFD boxes used by shape
    optimization) are kept in mesh.su2_extra and written back unchanged, instead of
    producing one warning per line and being lost. Quadratic cells are written with their
    corner nodes instead of being dropped; unused points are removed; cells that are
    neither domain nor boundary elements, and groups merged by marker name cleaning, are
    reported. (#44)

5.5.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 14:03
c706f97

Added

  • numpy 2.x support: the numpy<2 upper cap is removed, so meshlane runs on both
    numpy 1.20+ and numpy 2.x. (#31)

Changed

  • Minimum Python is now 3.10 (3.8 and 3.9 dropped). Both are end-of-life, and
    numpy 2.x requires Python 3.10+. (#31)

Fixed

  • MED to Abaqus .inp via the CLI (meshlane convert) now preserves node and
    element groups (*NSET/*ELSET) as the multi-mesh read path previously dropped
    them. Element types are also written canonically (C3D8, S4, B31) instead
    of non-standard variants (C3D8RH, CAX4P, B31H). (#33, #25, #29)
  • MED: text metadata (group names, units, description) is written as UTF-8, so
    Salome and code_aster read accented names correctly. (#32)
  • Abaqus: the reader maps thermal and gasket element families, reads
    assembly-based input files (*Part/*Instance), and uses less memory on large
    files. (#30)

5.4.3

Choose a tag to compare

@github-actions github-actions released this 23 Jul 09:16
52bd731

Added

  • CLI: meshlane convert handles multi-mesh MED files. Every mesh is read and
    written out (to MED); converting to a format that cannot hold more than one
    mesh reports a clear error. (#20)

Fixed

  • Ansys: the .inp reader collapses degenerate elements that ANSYS stores with
    repeated nodes (tets/wedges/pyramids written as hexes, triangles written as
    quads) to their real type. This fixes wrong cell types and zero-volume cells that were rejected by
    solvers. (#22)

5.4.2

Choose a tag to compare

@github-actions github-actions released this 17 Jul 11:12
5820ea5

Added

  • MED: read/write support for polyhedra (MED_POLYHEDRON) and variable-node
    polygon (MED_POLYGON) writing, so OpenFOAM (snappyHexMesh) polyhedral
    meshes convert to MED. (#12)
  • CLI: meshlane info handles multi-mesh MED files; meshlane convert prints
    read/write progress. (#14)
  • CLI: meshlane convert --remove-duplicates removes coincident (duplicate)
    cells. By default they are kept and a warning is emitted instead. (#17, #18)

Fixed

  • MED: 3D cells are written with consistent, correct orientation for external MED
    readers, for both linear and quadratic cells (tetra10, hexahedron20, ...), via
    the meshlane<->MED node ordering plus a topological pass for warped cells, so
    foam -> med and inp -> med meshes are accepted by MED tools (code_saturne, code_aster, etc.). (#9, #13, #16)
  • MED: every cell group is written with its numeric GEO attribute, so
    meshlane's MED files load in readers such as code_aster. (#16)
  • MED: Gmsh physical groups are preserved when writing MED, so a .msh -> .med
    conversion no longer drops its groups. (#11)
  • Ansys: the .inp reader handles 1-integer NBLOCK and COMPACT EBLOCK
    formats, so real Ansys Workbench exports convert. (#15)

Changed

  • Abaqus: more robust .inp reader (membrane/surface elements, set-of-sets,
    *ELSET, GENERATE, encoding fallback). (#5)
  • OpenFOAM: faster, memory-bounded polyMesh reader (binary + ASCII). (#3)
  • MED: more robust family/group handling (HDF5 creation-order tracking, dynamic
    family generation). (#4)

Note

Because of the MED orientation and GEO fixes, a MED file written by this
version differs from one written by 5.4.1 for 3D meshes (now correctly oriented
and loadable by external MED tools). MED <-> MED round-trips are unaffected.

5.4.1

Choose a tag to compare

@github-actions github-actions released this 22 Jun 13:52

First deploy on pypi.org using github action.