UCD Files


UCD is a data directory which contains examples of Unstructured Cell Data (UCD), a format supported by AVS.

AVS uses the convention that a UCD file name ends with the extension .inp, but for my own system, I prefer to use the extension .ucd.

UCD file characteristics:

UCD format:

For the ASCII UCD format, the file cannot contain any blank lines.

Comments begin with the "#", and are only allowed at the beginning of the file.

Section 1 of the file is a single line listing five values: the number of nodes, the number of cells, the number of data items per node, the number of data items per cell, and the model number (which is always 0).

Section 2 of the file lists the node coordinates. Each line lists the node id or label, followed by the (X,Y,Z) coordinates of that node.

Section 3 of the file lists, for each cell, the cell id or label, the cell material (make it 0), the cell type, and the node id's or labels of the nodes that are associated with the cell. Cell types include:

Section 4 of the file describes the node data, if there is any. First, it lists the number of components the node data is divided into, and then, for each component, the number of values associated with that component. For instance, suppose the number of node data items was given in section 1 as 6, and that these items were divided into 3 components, a scalar, a vector of three values, and a vector of 2 values. Then this line would read "3,1,3,2".

Section 5 of the file gives, for each node data component, a component label and component units, separated by a comma.

Section 6 of the file lists, for each node, the node label or id, followed by the node data values for that node.

Section 7 of the file describes the cell data, if there is any. First, it lists the number of components the cell data is divided into, and then, for each component, the number of values associated with that component.

Section 8 of the file gives, for each cell data component, a component label and component units, separated by a comma.

Section 9 of the file lists, for each cell, the cell label or id, followed by the cell data values for that cell.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Reference:

  1. http://www.avs.com,
    Advanced Visual Systems (AVS)

Sample Files:

You can go up one level to the DATA page.


Last revised on 20 June 2007.