Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/meshio/nastran/_nastran.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,19 @@ def add_cell(nastran_type, cell, cell_ref):
# where the last three floats specify the orientation vector.
# This information is removed.
cell = chunks[3:5]
#Sometimes Nastran shell elements have properties after nodes, so we limit the slices
#$ EID PID N1 N2 N3 N4 ZOFF
#CQUAD4 38 1 39 40 45 46 0.1+
#$ T1 T2 T3 T4
#+ 1. 2. 3. 4.
elif keyword == "CQUAD4":
cell = chunks[3:7]
elif keyword == "CTRIA3":
cell = chunks[3:6]
elif keyword == "CQUAD8":
cell = chunks[3:11]
elif keyword == "CTRIA6":
cell = chunks[3:9]
else:
cell = chunks[3:]

Expand Down