FeResPost Web Site                     FeResPost Online User Manual

IV.4.2 Definition of data

Most of the definition of data is done by functions defined in “PROJECT/DATA” sub-directory. The main data files are directly located in “PROJECT’ main directory however. The main data files are:

Data are interpreted by calling different ruby methods and build different kinds of objects:

The idea of using CSV files to store the definition of parameters is a legacy from the excel post-processing described in Chapter VII.4. But it is also a very effective way to define the data. It improves the readability of data definition, and the combination of data definition in a combination of ruby code and CSV files ensures the flexibility needed to deal with specific cases.

Note that on of the post-processing data definition function does not involve the reading of a CSV file: “getSandwichData” method defines all the data in ruby code. This has been done because only one corresponding instance is created in the project. However, in more normal circumstances, it would be advantageous to define the data in a CSV file as well.

In general, the meaning of a parameter in a CSV filedepends on the index of the column in which it is defined. Then, it is the responsibility of user to verify that the in each CSV data line, each value is inserted in the appropriate column, so that ruby code that interprets CSV lines fills the appropriate parameters for the construction of each “post” object.

For the post-processing of connections, the CSV file “Interfaces.csv” that defines the data is formatted following conventions that differ from those adopted for the other types of post-processing criteria. Correspondingly the ruby method that reads the CSV lines and interprets them works differently. The CSV file is characterized by the insertion of directive lines that start with a keyword and specify how the following CSV lines must be interpreted:

An example of CSV lines with interpretation directives is presented in Figure IV.4.1. (Directive keywords are coloured in red in the excel worksheet.) We observe that the factor 0.001 is always associated to data specified in millimeters. This corresponds to the conversion of these values to meters.


PICT

Figure IV.4.1: Example of definition of data in excel CSV file for the postprocessing of interface data. The example corresponds to the definition of data for the calculation of bolts.

The approach for connection “post” objects construction is more flexible. It allows to consider several formats for the different lines of a CSV file. This is particularly appropriate for the definition of connection “post” objects, because the post-processing failure criteria may differ significantly depending on the interface considered.