## File Format

Input model file format consist of a header line and followed by node coordinates, followed by elements description and finally data for nodes.

### Header

First in the file must be a one line header. The header consists of model dimensions: number of nodes (#nodes), number of elements (#elements), degrees of freedom (#dof), and number of timesteps (#timesteps). In the same line must follow description of the degrees of freedom with keywords 'scalar: ' or 'vector: ' (there must be the space at the end of the keyword) followed by a name for the dof(s).

Example:

    4 1 4 1 vector: Velocity scalar: Pressure
    0 0 0
    1 0 0
    1 1 0
    0 1 0
    1 404 0 1 2 3
    1 0 0 1
    1 0 0 2
    1 0 0 3
    1 0 0 4

The previous file describes a model with four node coordinates, one element, four dofs / node point, the first three being components of the vector Velocity, and the fourth scalar Pressure.

### Node coordinates

Straight after the header begins the node coordinate array. The node points are given a running index starting from zero. Even if the model is 2D there must be three coordinates for each node.

### Element description

The element description lines are as follows:

    GroupName TypeCode Index0 Index1 Index2 ...

GroupName may be any string. TypeCode gives the element type:

- 303: linear triangle
- 306: quadratic triangle
- 404: bilinear quad
- 408: quadratic quad
- 504: linear tetra
- 510: quadratic tetra
- 808: trilinear brick
- 820: quadratic brick

Indexe0, Index1, etc... are the pointers for element nodes (remember that the node points have been given a index starting from zero).

### The data

The data must be given so that for each node there are values for every dof in one line. This data array is then repeated for each timestep.

Back