blockFirstOrderWithGradientLim
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Information
1. Purpose of model
First order block that allows Tau=0 and has a gain implemented. Additionally, the gradient of the output can be limited to be within the specified bounds.
2. Level of detail, physical effects considered, and physical insight
The model was copied from ClaRa.Components.Utilities.Blocks.FirstOrderClaRa of ClaRa version 1.3.0 and y_aux was eliminated as a state for the case Tau=0. Also a gain was added, as done in Modelica.Blocks.Continuous.FirstOrder.
3. Limits of validity
(no remarks)
4. Interfaces
u: input
y: output
5. Nomenclature
(no elements)
6. Governing Equations
(no equations)
7. Remarks for Usage
(none)
8. Validation
(no validation or testing necessary)
9. References
(none)
10. Version History
Model created by Robert Flesch (flesch@xrg-simulation.de), Feb 2021
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k | 1 | Gain |
| Modelica.Units.SI.Time | Tau | 0 | Time Constant, set Tau=0 for no signal smoothing |
| Integer | initOption | 1 | Initialisation option |
| Real | y_start | 1 | Start value at output |
| Boolean | evaluate_y_start | false | true for Evaluate=true for y_start |
| Boolean | enable_gradientLimiter | true | enable gradient limitation defined by input connectors |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.RealInput | maxGrad | limit for maximum gradient | |
| Modelica.Blocks.Interfaces.RealInput | minGrad | limit for lowest gradient |