Skip to content

Integer widths of the writable formats ​

Generated by tools/gen_id_widths_table.py from tests/python/id_widths_spec.py; do not edit by hand.

Every writable format is given one mesh, with an int64 point array and an int64 cell array whose values are 2**31 + 5 and up (a node or cell tag above what a 32-bit integer holds), and the table says what came back. The mesh uses the cell types the format's row of the conformance matrix declares.

  • exact the same integers came back, as the dtype named.
  • double the format stores the values as floating point and they came back equal.
  • single (exact) the format stores single-precision floats and these particular values survived.
  • rounded the format stores floating point with limited precision (single precision, or a few significant digits of text), so the values came back close but not equal; integers above 2**24 are not exact in it, which is the format's own limit. Writing such an array to one of these formats (cae, ensight, frd, gid, gltf, marc_t19, radioss_anim, xplt) warns once per array, in both engines.
  • dropped the format does not carry that array.
  • error the writer refuses the mesh and its message names the format.
  • not observed an optional library the writer needs is not installed in the environment that generated the page.

A value that comes back as a different integer is a silent narrowing and is a defect: no row below says it, and tests/python/test_id_widths.py fails if one does.

FormatPoint arrayCell array
3mfdroppeddropped
abaqusdroppeddropped
abaqus_fildroppeddropped
adcircdroppeddropped
ansysdroppeddropped
ansysInpdroppeddropped
ansys_rstdroppeddropped
avsucddoubledropped
cad_jsondroppeddropped
caedroppedrounded
cgnsdoubledropped
code_asterdroppeddropped
dexdoubledropped
dolfin-xmlexact int64exact int64
dxfdroppeddropped
elmerdroppeddropped
ensightroundedrounded
exodusexact int64exact int64
febiodoubledouble
femapdoubledouble
flac3ddroppeddropped
fluxdroppeddropped
frdroundeddropped
freefemdroppeddropped
freesurferdroppeddropped
gidroundedrounded
giftierror (WriteError)error (WriteError)
gltfroundeddropped
gmshdoubledouble
gmsh22doubledouble
h5mexact int64dropped
hmfexact int64exact int64
ipdoubledropped
lasdroppeddropped
libmeshdroppeddropped
lsdynadroppeddropped
lsdyna_binouterror (WriteError)error (WriteError)
lsdyna_d3plotdroppeddropped
marcdroppeddropped
marc_t19roundedrounded
mdpadoubledropped
medexact int64exact int64
meditdroppeddropped
medit_solerror (WriteError)error (WriteError)
mfemdroppeddropped
mffdroppeddropped
mfmerror (WriteError)error (WriteError)
mphbindroppeddropped
mphtxtdroppeddropped
nastrandroppeddropped
nastran_h5doubledropped
nastran_op2droppeddropped
netgenerror (WriteError)error (WriteError)
neuroglancerdroppeddropped
objdroppeddropped
offdroppeddropped
openfoamdoubledouble
patrandroppeddropped
pcdexact int64dropped
permasdroppeddropped
plyexact int64dropped
pmshexact int64exact int64
pvdexact int64exact int64
pvtpexact int64exact int64
pvtuexact int64exact int64
radiossdroppeddropped
radioss_animroundedrounded
radioss_thdroppeddropped
selafinerror (WriteError)error (WriteError)
stepnot observednot observed
stldroppeddropped
su2droppeddropped
svgdroppeddropped
szpltnot observednot observed
tecplotdoubledouble
tetgendroppeddropped
tikzdroppeddropped
triangledroppeddropped
ugriddroppeddropped
ugrid_ncexact int64exact int64
unvdoubledouble
usdnot observednot observed
vtkexact int64exact int64
vtk42exact int64exact int64
vtk51exact int64exact int64
vtkhdfexact int64exact int64
vtmexact int64exact int64
vtpexact int64exact int64
vtuexact int64exact int64
vtxnot observednot observed
wktdroppeddropped
xdmfexact int64exact int64
xpltroundedrounded
xyzdoubledropped
z88droppeddropped
zarrnot observednot observed

Node and element ids ​

The ids a format stores for its nodes and elements, for the formats that take them through a data key of the mesh model (tests/python/id_widths_spec.py, ID_KEYS): the same probe with one distinct id of 2**31 + 5 and up per node and per cell, set as abaqus:id, global:node_id/global:cell_id, libmesh:id, mdpa:id, med:num or radioss:node_id/radioss:element_id. A format that is not listed renumbers its entities or takes ids only through its own numbering; its width is stated on its page instead: CGNS writes I4 connectivity while the point count fits int32 and I8 after, Exodus has an int64 mode, and Gmsh 4.1 stores tags as size_t.

FormatPoint idsCell ids
abaqusdroppeddropped
abaqus_filexact int64exact int64
exodusexact int64exact int64
libmesherror (WriteError)error (WriteError)
mdpaexact int64dropped
medexact int64exact int64
radioss_animerror (WriteError)error (WriteError)

Released under the MIT License.