Introduction
A universal file carries data into and out of I-DEAS, the design, analysis and test software that began at the Structural Dynamics Research Corporation (SDRC) and is now part of Siemens’ products. The University of Cincinnati’s Structural Dynamics Research Laboratory dates the formats to the late 1960s and early 1970s. Many other finite element tools, mesh converters and vibration test systems read or write them.
The files usually end in .unv or .uff. One file can hold a
mesh, groups, analysis results and measured frequency response functions together,
each in its own numbered block called a dataset. Several hundred dataset numbers were
defined. A reader picks out the ones it knows and skips the rest.
Structure
A universal file is formatted text with lines of at most 80 characters. Each dataset
begins and ends with a delimiter line: four spaces, then -1, so that the
minus sign is in column 5 and the digit in column 6, with the rest of the line blank.
The line after the opening delimiter holds the dataset number. What follows depends on
that number. Lines between one dataset’s closing delimiter and the next opening one
belong to no dataset and may hold comments.
-1
164
2Foot (pound f) 2
3.28083989501312334D+00 2.24808943099710480D-01 1.79999999999999999D+00
4.59670000000000002D+02
-1
The only binary form is dataset 58b, where the numeric data follows a text header as raw bytes.
Field notation
The format sheets describe each line with Fortran format codes. Fields sit in fixed columns, numbers right-aligned.
| Code | Meaning |
|---|---|
4I10 | Four integers, each 10 characters wide |
I5, I6, I12 | An integer 5, 6 or 12 characters wide |
80A1, 40A2 | 80 characters of text |
20A2 | 40 characters of text |
10A1 | 10 characters of text |
1X | One blank |
6E13.5 | Up to six numbers in exponent form, 13 characters each, 5 decimals |
1P3E13.5 | The same with one digit before the point, three on a line |
4E20.12 | Four numbers, 20 characters each, 12 decimals |
1P3D25.16, 3D25.17 | Three double precision numbers, 25 characters each. The exponent letter is D, as in 1.5000000000000000D+01 |
8I10 | Integers, eight to a line; a longer list continues on further lines |
A reader written outside Fortran has to change the D to E
before converting a double. Where a sheet says that a text line may not be blank, the
word NONE goes in columns 1 to 4.
Dataset 151, header
| Record | Format | Contents |
|---|---|---|
| 1 | 80A1 | Model file name |
| 2 | 80A1 | Model file description |
| 3 | 80A1 | Program that created the database |
| 4 | 10A1,10A1,3I10 | Date the database was created (DD-MMM-YY); time (HH:MM:SS); database version; subversion; file type: 0 universal, 1 archive, 2 other |
| 5 | 10A1,10A1 | Date and time the database was last saved |
| 6 | 80A1 | Program that wrote the universal file |
| 7 | 10A1,10A1,4I5 | Date and time the file was written; release that wrote it; version number; host ID; test ID; release counter per host |
The sheet lists these host IDs: 1 VAX/VMS, 2 SGI, 3 HP 7xx with HP-UX, 4 RS/6000, 5 Alpha VMS, 6 Sun, 7 Sony, 8 NEC, 9 Alpha OSF.
Dataset 164, units
| Record | Format | Contents |
|---|---|---|
| 1 | I10,20A1,I10 | Units code; units description, for documentation only; temperature mode: 1 absolute, 2 relative |
| 2 | 3D25.17 | Factors for length, force and temperature, then the temperature offset on the next line |
To convert a value from the file’s units to SI, divide it by the factor.
| Code | Short name | Units |
|---|---|---|
| 1 | SI | Metre (newton) |
| 2 | BG | Foot (pound force) |
| 3 | MG | Metre (kilogram force) |
| 4 | BA | Foot (poundal) |
| 5 | MM | Millimetre (millinewton) |
| 6 | CM | Centimetre (centinewton) |
| 7 | IN | Inch (pound force) |
| 8 | GM | Millimetre (kilogram force) |
| 9 | US | User defined |
| 10 | MN | Millimetre (newton) |
Datasets in these pages
| Number | Contents | Note |
|---|---|---|
| 15 | Nodes, single precision | Obsolete; written by I-DEAS Test |
| 18 | Coordinate systems | Obsolete |
| 55 | Data at nodes | Obsolete |
| 58 | Function at nodal degree of freedom | Measured and computed functions |
| 58b | Dataset 58 with binary data | |
| 82 | Trace lines | Obsolete |
| 151 | Header | Above |
| 164 | Units | Above |
| 781 | Nodes, double precision | |
| 2411 | Nodes, double precision | |
| 2412 | Elements | |
| 2414 | Analysis data (results) | |
| 2420 | Coordinate systems of a part | |
| 2417, 2429, 2430, 2432, 2435, 2452, 2467, 2477 | Groups of nodes and elements | Successive numbers for the same idea |
Reading a file
- Search for the next delimiter line. Anything before it is not part of a dataset.
- Read the dataset number from the following line.
- If the number is known, parse the records. Otherwise skip lines up to the closing delimiter.
- Repeat. The end of the file should only be met while looking for the next opening delimiter; an end of file inside a dataset means the dataset is incomplete.
A dataset 58b cannot be skipped by searching its bytes for a delimiter line: its header gives the number of text lines and the number of binary bytes to pass over.
To recognise a universal file, look for a line that is exactly four spaces and
-1, followed by a line holding a dataset number, near the start of a text
file. There is no other signature.
In this reference
- Nodes, elements and groups – datasets 15, 18, 82, 781, 2411, 2412, 2420 and the group datasets, with element type numbers and node order
- Results and measured data – datasets 55, 58, 58b and 2414, with their code tables
Not described
These pages follow the dataset sheets published by the University of Cincinnati’s Structural Dynamics Research Laboratory, with the Gmsh, SALOME and pyuff sources. The explorer has no UNV viewer, so a dropped file shows as text or bytes.
Known, not yet covered
- Reference: most dataset numbers. The laboratory’s complete library lists several hundred sheets, among them materials, physical properties, loads, restraints, results in older forms and display settings; only the numbers in the table above are described here.
- Reference: the sheets for datasets 2435, 2452, 2467 and 2477 came back empty from the library, so groups are described from open source readers and writers only.
- Viewer: there is no UNV plugin.
Unknown
- Reference: no source read here gives the node order of cubic elements or of pyramids.
Links
Software
Developers
- pyuff – reads and writes universal files, including binary dataset 58 (Python)
- SALOME SMESH – its
DriverUNVcode reads and writes the mesh datasets (C++)
Reference
- Universal File Formats for Modal Analysis Testing – the University of Cincinnati’s dataset sheets, with the complete library
- Gmsh UNV reader and writer – how nodes, elements and groups are read (C++)