.BuildSysPro.Utilities.Math.IntegerExpression

Information

Hypothesis and equations

The (time varying) Integer output signal of this block can be defined in its parameter menu via variable y.

The purpose is to support the easy definition of Integer expressions in a block diagram.

Bibliography

Modification of the Modelica.Blocks.Sources.IntegerExpression model, adding the u input so that the expression of y can depend on another variable.

Instructions for use

For example, in the y-menu the definition "if time < 1 then 0 else 1" can be given in order to define that the output signal is one, if time ≥ 1 and otherwise it is zero.

Note that "time" is a built-in variable that is always accessible and represents the "model time" and that variable y is both a variable and a connector.

Known limits / Use precautions

none

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)
Initial model : IntegerExpression, Martin Otter, Copyright © Modelica Association and DLR.
--------------------------------------------------------------

Revisions

Benoit Charrier 12/2014 : sortie en Real pour ne pas avoir des problèmes de compatibilité output/input


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos