.BuildSysPro.BoundaryConditions.Scenarios.StepFunctionMat

Information

One-dimension step function defined from file or table.

Hypothesis and equations

Step function in one dimension specified by 2 tables.

The dependent variable (homogenous to the input) is specified in the parameter section table 1 data definition.

The independent variable to be interpolated are defined in the parameter section table 2 data definition. It can be defined how many columns of the table are interpolated. If, e.g., columns2={2,4}, it is assumed that 2 output signals are present and that the first output interpolates column 2 and the second interpolates the column 4 of the table2 matrix.

Choose either to specify the tables by file or by matrix in the same way as in the Modelica blocks for table look-up.

Consider a starting matrix table [i, j] with n rows and m columns where the first column is ordered and represents the dependent variable and other columns represent the independent variables. This table is split into two tables: a first table table1 [i, j] with n rows and two columns and a second table table2 [i, j] n rows and m columns.

The first column of table 1 is equal to the first column of the original table.

The second column of table 1 is made up of the natural numbers from 1 to m.

The first column of Table 2 is equal to the second column of table 1.

Columns 2 to m of table 2 are identical to the ones in the original table.

Example and instructions for use

Considering the following matrix:

   table = [0,  0,  5;
            1,  1,  10;
            2,  4,  7;
            4, 16,  2]

split into the two following matrixes:

   table1 = [0,  1;        table2 = [1,  0,  5;
             1,  2;                  2,  1,  10;
             2,  3;                  3,  4,  7;
             4,  4]                  4, 16,  2]

If, as input, u = 2.6 and columns2={3}, the output y = 7 because 2.6 belongs to [2;4[

The process is described below:

  1. table1 gives, by linear interpolation of the second column, y1 = 3.3
  2. As input of table2, the integer part of [y1] = 3 is taken
  3. table2 gives, by linear interpolation of its third column, y2 = 7;

Note also that:

A table can be defined as follows:

  1. By explicit entry of parameter "table", and other parameters must be set as follows:
  2.    tableName = "NoName" or with blanks,
       fileName  = "NoName" or with blanks.
  3. By reading a file "fileName" where the matrix is stored with the name specified in the parameter "tableName". Both ASCII and binary formats are possible. See details and additional information in the Modelica.Blocks.Tables.CombiTable1Ds documentation

Validations

Validated model - Hassan Bouia 07/2012

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Hassan BOUIA, EDF (2012)
--------------------------------------------------------------


Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos