5.37. RDFILE

../_images/image1035.png

Purpose

Read time dependent values from a csv file.

Parameters

Parameter

input

unit

range

default

remarks

CASE_I###.csv

integer

[-]

[0,999]

Number which gets appended to the casename

Function type

Continue/Step

Continue

Time unit

ms/s/

min/hr

s

unit used for time column

Remarks

The csv file must be located in the same directory as the Wanda case files. The name of the file must have the following format: <casename>_I###.csv. Where <casename> is the full name of the Wanda casefiles without extension. ### is a number between 0 and 999, which is the same number that must be entered as input of the parameter CASE_I###.csv. Thus, for a case named example.wdi a file can be named example_I000.csv. The input CASE_I###.csv in the selection property window is then 0.

The csv-input file must contain 2 columns, which are separated by a comma, tab or space. Please note that a semi-column is not allowed. Also note that the values in the CSV file must use a period (‘.’) as decimal symbol. In contrary to the WANDA Gui, the RDFILE symbol does not follow the system settings for number format. The first column contains the time in the unit system as specified with the input parameter Time unit. This column should always start with 0 on its first row. The second column contains the function value for each time step. The unit system of this function value is not known by the H- or C-component to which the control component is connected. Therefore, the values must be entered in SI-units. An example of an input file is shown in Fig. 5.37.1.

With the function type “Continue” intermediate points are interpolated. If the simulation time exceeds the last row of the file, the last function value will be maintained. This is shown in Fig. 5.37.2.

With the function type “Step” the function value will remain constant until the next point in the file. This is shown in Fig. 5.37.3.

The file may contain a header with comments, which should start with a ‘#’ or ‘*’.

Example

../_images/image1036.png

Fig. 5.37.1 Example of input file

../_images/image1037.png

Fig. 5.37.2 Result with Type = Continue

../_images/image1038.png

Fig. 5.37.3 Result with Type = Step