Prev Section 13.3: The Data Tab Up Section 13.3: The Data Tab Subsection 13.3.2: Adding data via an equation Next
13.3.1 Adding data from a text file
When selecting the “Add From file” menu, a dialog box will be shown where you can enter the file name and additional information for parsing the file. The text file containing the data can be selected using the Browse button. The data must be formatted using a comma delimited list, each line corresponds to one item (node, element) and each value on each line corresponds to a single state. The Name edit box is used to give a name to the user field, the class list identifies whether the data corresponds to a node, element or face, and the type list is used to define whether the data is a scalar (float), 3D vector (vec3f) or 3D matrix (mat3fs).
For example, assuming class is node, and type is float.
1, 0.1, 0.2, 0.3 2, 3.2, 3.3, 3.4 3, 1.2, 2.3, 2.4
This file defines for nodes 1, 2 and 3 three values, one for each state (assuming the model has three states). Another example, assuming class is element, type is vec3f.
1234, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6 1235, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2 1236, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8
This file defines for three elements (elements 1234, 1235 and 1236) a vec3f value for two states: element 1234 has the value (0.1, 0.2, 0.3) for state 1 and (0.4, 0.5, 0.6) for state 2.