Modelica generic block 2
The block MPBlock provides an easy way to build a Scicos block whose behavior is specified by a Modelica program. Using this block, the user is able to use a Modelica model defined in a package without creating any interfacing function. The package should be defined in the directories pointed by the Scicos global variable "modelica_libs". See the ModelicaBlocks section to have more details. In order to link this block to other Scicos blocks that may be other Modelica blocks, the types of block ports' as well as their associated variables should be specified.
- Input variables
In this filed, the ports connected to the left hand side of the block are
defined. If the port is an explicit port, it will be an input port. In
this case, the variable should be declared in the Modelica program as
Real. If the port is an implicit port, the variable desinating this
port should be a "connector". Remind that for implicit port, the
notion of input and output does not exist and specifying an implicit
variable in this filed is just placing the port at the left hend side
of the block.
- Input variables types
In this filed, the type of ports are specified, i.e., 'I' for implicit
ports and 'E' for explicit ports. The size of the vector of "input
variables" and the vector of "input_vector_type" should be equal.
- Output variables
Similar to the input variables vector, the explicit
output variables and implicit variables which are displayed at the right
hand side of the block are specified in this filed.
- Output variables types
The type of variables given in the Output
variable vector are specified, i.e., 'I' for implicit ports and 'E'
for explicit ports.
- Common parameters between Modelica and Scicos
The values of parameters declared in the Modelica program can be
overloaded. To overload a parameter value, the name of parameters are given in
this field and their corresponding values are given in the "parameter
values" fields that are displayed in the second dialog box.
- Parameters properties
The type of the Modelica parameters. For that time being, one can parametrize
three types of Modelica variable :
- 0 : the parameter is set to be a Modelica parameter variable (scalar or vector).
- 1 : the parameter is set to be an initial condition of Modelica state variable
(scalar or vector).
- 2 : the parameter is set to be an initial condition of Modelica state variable
with the property fixed=true (scalar or vector).
- Model name in the package
The name of the model in the package. The package should be in directories
informed by the "Modelica_lib" variable. See ModelicaBlocks
section to know more.
- always active: yes
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- regular inputs:
- port 1 : size [1,1] / type 1
- regular outputs:
- port 1 : size [1,1] / type 1
- port 2 : size [1,1] / type 1
- number/sizes of activation inputs: 0
- number/sizes of activation outputs: 0
- continuous-time state: no
- discrete-time state: no
- object discrete-time state: no
- name of computational function: model
M. Najafi/A. Layec INRIA