Skip to content

[BUG] Node and Element ID Handling with *INCLUDE (ABAQUS) #1531

@Mayakruha

Description

@Mayakruha

ABAQUS allows non-sequential and gapped node and element IDs. It's critical to preserve these original IDs during reading. When *INCLUDE is used, meshio appears to lose point_ids data, which can cause issues with subsequent commands like *NSET.

A code example that reproduces the problem:

from meshio import Mesh
model=Mesh.read('errors.inp')
model.write('Mesh_tst.inp')

errors.inp:


*INCLUDE, INPUT=mesh.inp
*NSET, NSET=NodeSet2
11, 12, 13


mesh.inp:


*Node, nset=NodeSet1
11, 0.0, 0.0, 0.0
12, 1.0, 0.0, 0.0
13, 0.0, 1.0, 0.0
14, 0.0, 0.0, 1.0
15, 0.5, 0.0, 0.0
16, 0.5, 0.5, 0.0
17, 0.0, 0.5, 0.0
18, 0.0, 0.0, 0.5
19, 0.5, 0.0, 0.5
20, 0.0, 0.5, 0.5
*Element, type=C3D10
1, 11,12, 13, 14, 15, 16, 17, 18, 19, 20


P.S. The issue is solved in my fork

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions