Package Modelica.Blocks.Types
In this package types, constants and external objects are defined that are used in library Modelica.Blocks. The types have additional annotation choices definitions that define the menus to be built up in the graphical user interface when the type is used as parameter in a declaration.
Extends from Modelica.Icons.TypesPackage (Icon for packages containing type definitions).
| Name | Description |
|---|---|
AnalogFilter | Enumeration defining the method of filtering |
ExternalCombiTable1D | External object of 1-dim. table defined by matrix |
ExternalCombiTable2D | External object of 2-dim. table defined by matrix |
ExternalCombiTimeTable | External object of 1-dim. table where first column is time |
Extrapolation | Enumeration defining the extrapolation of table interpolation |
FilterType | Enumeration of analog filter types (low, high, band pass or band stop filter) |
Init | Enumeration defining initialization of a block |
LimiterHomotopy | Enumeration defining use of homotopy in limiter components |
Regularization | Enumeration defining the regularization around zero |
SimpleController | Enumeration defining P, PI, PD, or PID simple controller type |
Smoothness | Enumeration defining the smoothness of table interpolation |
TimeEvents | Enumeration defining the time event handling of time table interpolation |
VariableLimiterHomotopy | Enumeration defining use of homotopy in variable limiter components |
Enumeration Modelica.Blocks.Types.Smoothness| Name | Description |
|---|---|
LinearSegments | Linear interpolation of table points |
ContinuousDerivative | Akima spline interpolation of table points (such that the first derivative is continuous) |
ConstantSegments | Piecewise constant interpolation of table points (the value from the previous abscissa point is returned) |
MonotoneContinuousDerivative1 | Fritsch-Butland spline interpolation (such that the monotonicity is preserved and the first derivative is continuous) |
MonotoneContinuousDerivative2 | Steffen spline interpolation of table points (such that the monotonicity is preserved and the first derivative is continuous) |
ModifiedContinuousDerivative | Modified Akima spline interpolation of table points (such that the first derivative is continuous and shortcomings of the original Akima method are avoided) |
Enumeration Modelica.Blocks.Types.Extrapolation| Name | Description |
|---|---|
HoldLastPoint | Hold the first/last table point outside of the table scope |
LastTwoPoints | Extrapolate by using the derivative at the first/last table points outside of the table scope |
Periodic | Repeat the table scope periodically |
NoExtrapolation | Extrapolation triggers an error |
Enumeration Modelica.Blocks.Types.TimeEvents| Name | Description |
|---|---|
Always | Always generate time events at interval boundaries |
AtDiscontinuities | Generate time events at discontinuities (defined by duplicated sample points) |
NoTimeEvents | No time events at interval boundaries |
Enumeration Modelica.Blocks.Types.Init
The following initialization alternatives are available:
NoInitfixed=false)SteadyStateInitialStateInitialOutput| Name | Description |
|---|---|
NoInit | No initialization (start values are used as guess values with fixed=false) |
SteadyState | Steady state initialization (derivatives of states are zero) |
InitialState | Initialization with initial states |
InitialOutput | Initialization with initial outputs (and steady state of the states if possible) |
Enumeration Modelica.Blocks.Types.SimpleController| Name | Description |
|---|---|
P | P controller |
PI | PI controller |
PD | PD controller |
PID | PID controller |
Enumeration Modelica.Blocks.Types.AnalogFilter| Name | Description |
|---|---|
CriticalDamping | Filter with critical damping |
Bessel | Bessel filter |
Butterworth | Butterworth filter |
ChebyshevI | Chebyshev I filter |
Enumeration Modelica.Blocks.Types.FilterType| Name | Description |
|---|---|
LowPass | Low pass filter |
HighPass | High pass filter |
BandPass | Band pass filter |
BandStop | Band stop / notch filter |
Enumeration Modelica.Blocks.Types.Regularization| Name | Description |
|---|---|
Exp | Exponential regularization (smooth) |
Sine | Sinusoidal regularization (smooth 1st derivative) |
Linear | Linear regularization |
Cosine | Cosine regularization |
Enumeration Modelica.Blocks.Types.LimiterHomotopy| Name | Description |
|---|---|
NoHomotopy | Homotopy is not used |
Linear | Simplified model without limits |
UpperLimit | Simplified model fixed at upper limit |
LowerLimit | Simplified model fixed at lower limit |
Enumeration Modelica.Blocks.Types.VariableLimiterHomotopy| Name | Description |
|---|---|
NoHomotopy | Simplified model = actual model |
Linear | Simplified model: y = u |
Fixed | Simplified model: y = ySimplified |
External Object Modelica.Blocks.Types.ExternalCombiTimeTable| Type | Name | Description |
|---|---|---|
String | tableName | Table name |
String | fileName | File name |
Real | table[:,:] |   |
Modelica.Units.SI.Time | startTime |   |
Integer | columns[:] |   |
Modelica.Blocks.Types.Smoothness | smoothness |   |
Modelica.Blocks.Types.Extrapolation | extrapolation |   |
Modelica.Units.SI.Time | shiftTime |   |
Modelica.Blocks.Types.TimeEvents | timeEvents |   |
Boolean | verboseRead | = true: Print info message; = false: No info message |
External Object Modelica.Blocks.Types.ExternalCombiTable1D| Type | Name | Description |
|---|---|---|
String | tableName | Table name |
String | fileName | File name |
Real | table[:,:] |   |
Integer | columns[:] |   |
Modelica.Blocks.Types.Smoothness | smoothness |   |
Modelica.Blocks.Types.Extrapolation | extrapolation |   |
Boolean | verboseRead | = true: Print info message; = false: No info message |
External Object Modelica.Blocks.Types.ExternalCombiTable2D| Type | Name | Description |
|---|---|---|
String | tableName | Table name |
String | fileName | File name |
Real | table[:,:] |   |
Modelica.Blocks.Types.Smoothness | smoothness |   |
Modelica.Blocks.Types.Extrapolation | extrapolation |   |
Boolean | verboseRead | = true: Print info message; = false: No info message |