Derivative
Approximated derivative block
Library
Modelica/Blocks/Continuous
Description
This blocks defines the transfer function between theinput u and the output yas approximated derivative:
k * s y = ------------ * u T * s + 1
If you would like to be able to change easily between differenttransfer functions (FirstOrder, SecondOrder, ... ) by changingparameters, use the general block TransferFunction insteadand model a derivative block with parameters
b = {k,0}, a = {T, 1}.
If k=0, the block reduces to y=0.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_k | k | Gains | Scalar | |
mo_T | T | Time constants (T>0 required; T=0 is ideal derivative block) | Scalar | |
mo_zeroGain | zeroGain | Scalar | true | |
mo_initType | initType | Type of initialization (1: no init, 2: steady state, 3: initial state, 4: initial output) | Structure | |
mo_initType/choice1 | No initialization (start values are used as guess values with fixed=false) | Number | 0 | |
mo_initType/choice2 | Steady state initialization (derivatives of states are zero) | Number | 0 | |
mo_initType/choice3 | Initialization with initial states | Number | 0 | |
mo_initType/choice4 | Initialization with initial outputs (and steady state of the states if possible) | Number | 0 | |
mo_x_start | x_start | Initial or guess value of state | Scalar | |
mo_y_start | y_start | Initial value of output (= state) | Scalar | |
mo_x | x | x | Structure | |
mo_x/fixed | fixed | Cell of scalars | true | |
mo_x/start | start | Cell of scalars |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |