Package Modelica.​ComplexBlocks.​Routing
Library of blocks to combine and extract signals

Information

This package contains blocks to combine and extract signals.

Extends from Modelica.​Icons.​Package (Icon for standard packages).

Package Contents

NameDescription
ComplexPassThroughPass a Complex signal through without modification
ExtractorExtract scalar signal out of signal vector dependent on IntegerRealInput index
ExtractSignalExtract signals from an input signal vector
ReplicatorSignal replicator

Block Modelica.​ComplexBlocks.​Routing.​Replicator
Signal replicator

Information

This block replicates the input signal to an array of nout identical output signals.

Extends from Modelica.​ComplexBlocks.​Interfaces.​ComplexSIMO (Single Input Multiple Output continuous control block).

Parameters

TypeNameDefaultDescription
Integernout1Number of outputs
BooleanuseConjugateInputfalseIf true, input is processed conjugate complex

Connectors

TypeNameDescription
input ComplexInputuConnector of Complex input signal
output ComplexOutputy[nout]Connector of Complex output signals

Block Modelica.​ComplexBlocks.​Routing.​ExtractSignal
Extract signals from an input signal vector

Information

Extract signals from the input connector and transfer them to the output connector.

The extracting scheme is given by the integer vector 'extract'. This vector specifies, which input signals are taken and in which order they are transferred to the output vector. Note, that the dimension of 'extract' has to match the number of outputs. Additionally, the dimensions of the input connector signals and the output connector signals have to be explicitly defined via the parameters 'nin' and 'nout'.

Example:

     nin = 7 "Number of inputs";
     nout = 4 "Number of outputs";
     extract[nout] = {6,3,3,2} "Extracting vector";

extracts four output signals (nout=4) from the seven elements of the input vector (nin=7):

   output no. 1 is set equal to input no. 6
   output no. 2 is set equal to input no. 3
   output no. 3 is set equal to input no. 3
   output no. 4 is set equal to input no. 2

Extends from Modelica.​ComplexBlocks.​Interfaces.​ComplexMIMO (Multiple Input Multiple Output continuous control block).

Parameters

TypeNameDefaultDescription
Integernin1Number of inputs
Integernout1Number of outputs
BooleanuseConjugateInput[nin]fill(false, nin)If true, inputs are processed conjugate complex
Integerextract[nout]1:noutExtracting vector

Connectors

TypeNameDescription
input ComplexInputu[nin]Connector of Complex input signals
output ComplexOutputy[nout]Connector of Complex output signals

Block Modelica.​ComplexBlocks.​Routing.​Extractor
Extract scalar signal out of signal vector dependent on IntegerRealInput index

Information

This block extracts a scalar output signal out the vector of input signals dependent on the Integer value of the additional u index:

    y = u [ index ] ;

where index is an additional Integer input signal.

Extends from Modelica.​ComplexBlocks.​Interfaces.​ComplexMISO (Multiple Input Single Output continuous control block).

Parameters

TypeNameDefaultDescription
Integernin1Number of inputs
BooleanuseConjugateInput[nin]fill(false, nin)If true, inputs are processed conjugate complex
BooleanallowOutOfRangefalseIndex may be out of range
ComplexoutOfRangeValueComplex(1e+10, 0)Output signal if index is out of range

Connectors

TypeNameDescription
input ComplexInputu[nin]Connector of Complex input signals
output ComplexOutputyConnector of Complex output signal
input IntegerInputindex 

Model Modelica.​ComplexBlocks.​Routing.​ComplexPassThrough
Pass a Complex signal through without modification

Information

Passes a Complex signal through without modification. Enables signals to be read out of one bus, have their name changed and be sent back to a bus.

Extends from Modelica.​Blocks.​Interfaces.​SISO (Single Input Single Output continuous control block).

Connectors

TypeNameDescription
input RealInputuConnector of Real input signal
output RealOutputyConnector of Real output signal

Generated 2018-12-12 12:09:58 EST by MapleSim.