The BOMAT method

The BOMAT method is a method for imposing U command changes from a .mat file in MatLab format. These changes are indicated according to the time at which they are desired. So these are Open Loop modifications.

* SCALING INTERPOL WRITE at format (F8.2,1X,F8.2,1X,F8.2)
PS=1.0 0. 1.

The file name is arbitrary because it can be selected from the list of .mat files. If a Bomat.mat file exists then it will be chosen without requiring interfaces.
The name of the matrix must be U if possible. Otherwise there will be a warning on the screen and on the .LST file. But even in this case, the first matrix found will be read and the program will continue.
The matrix must include the times in seconds in the first line and the various U at these instants in the following lines.
The file must be created by MatLab, for example by a command:

save Bomat.mat U;

We read a scaling parameter, an interpolation parameter, and a flag to write or not the data of the matrix .mat on the file Nom_Sirene.lst, on the .xml file on the tag line PS=

READ(U,’(F8.2,1X,F8.2,1X,F8.2)’,ERR=10) PARA(1),PARA(2),PARA(3)

If the interpolation parameter PARA(2) = 0 then the U changes are made by step, if PARA(2) = 1 then the U changes are done by ramps (linear interpolation).

Attention you can only have one module of this type (BOMAT).

At the output of reading, we have:
PARA(4)=NU
PARA(5)=NT

The BOMAT module can handle the U variables in absolute and relative mode, but not in incremental mode (there will be no error message but the U command will be applied at all intermediate instants between two time values, which is not a priori desired in incremental mode).

A DDE link version with Matlab must be selected as an option for this module to be active. The programming of this module uses routines provided by MatLab. If this is a problem we can program a reading of .mat files in the -V4 format which can be done in direct binary reading without using internal MatLab routines. The very close BOSCIL method for matrices in Scilab .dat files does not require a Scilab DDE link version, but just a compiled version with the Intel or Digital compiler, which we provide (see options).