Modelica.Blocks.Types

Library of constants and types with choices, especially to build menus

Information

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).

Package Content

Name Description
Modelica.Blocks.Types.Smoothness Smoothness Enumeration defining the smoothness of table interpolation
Modelica.Blocks.Types.Extrapolation Extrapolation Enumeration defining the extrapolation of time table interpolation
Modelica.Blocks.Types.Init Init Enumeration defining initialization of a block
Modelica.Blocks.Types.InitPID InitPID Enumeration defining initialization of PID and LimPID blocks
Modelica.Blocks.Types.SimpleController SimpleController Enumeration defining P, PI, PD, or PID simple controller type
Modelica.Blocks.Types.AnalogFilter AnalogFilter Enumeration defining the method of filtering
Modelica.Blocks.Types.FilterType FilterType Enumeration of analog filter types (low, high, band pass or band stop filter)
Modelica.Blocks.Types.Regularization Regularization Enumeration defining the regularization around zero
Modelica.Blocks.Types.ExternalCombiTimeTable ExternalCombiTimeTable External object of 1-dim. table where first column is time
Modelica.Blocks.Types.ExternalCombiTable1D ExternalCombiTable1D External object of 1-dim. table defined by matrix
Modelica.Blocks.Types.ExternalCombiTable2D ExternalCombiTable2D External object of 2-dim. table defined by matrix

Types and constants

  type Smoothness = enumeration(
    LinearSegments   "Table points are linearly interpolated",
    ContinuousDerivative
        "Table points are interpolated (by Akima splines) such that the first derivative is continuous",
    ConstantSegments
        "Table points are not interpolated, but the value from the previous abscissa point is returned",
    MonotoneContinuousDerivative1
        "Table points are interpolated (by Fritsch-Butland splines) such that the monotonicity is preserved and the first derivative is continuous",
    MonotoneContinuousDerivative2
        "Table points are interpolated (by Steffen splines) such that the monotonicity is preserved and the first derivative is continuous")
    "Enumeration defining the smoothness of table interpolation";
  type Extrapolation = enumeration(
    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 defining the extrapolation of time table interpolation";
  type Init = enumeration(
    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 defining initialization of a block";
  type InitPID = enumeration(
    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)",
    DoNotUse_InitialIntegratorState
        "Do not use, only for backward compatibility (initialize only integrator state)")
    "Enumeration defining initialization of PID and LimPID blocks";
  type SimpleController = enumeration(
    P   "P controller",
    PI   "PI controller",
    PD   "PD controller",
    PID   "PID controller")
    "Enumeration defining P, PI, PD, or PID simple controller type";
  type AnalogFilter = enumeration(
    CriticalDamping   "Filter with critical damping",
    Bessel   "Bessel filter",
    Butterworth   "Butterworth filter",
    ChebyshevI   "Chebyshev I filter")
    "Enumeration defining the method of filtering";
  type FilterType = enumeration(
    LowPass   "Low pass filter",
    HighPass   "High pass filter",
    BandPass   "Band pass filter",
    BandStop   "Band stop / notch filter")
    "Enumeration of analog filter types (low, high, band pass or band stop filter)";
  type Regularization = enumeration(
    Exp   "Exponential regularization (smooth)",
    Sine   "Sinusoidal regularization (smooth 1st derivative)",
    Linear   "Linear regularization",
    Cosine   "Cosine regularization")
    "Enumeration defining the regularization around zero";

Modelica.Blocks.Types.ExternalCombiTimeTable

External object of 1-dim. table where first column is time

Information

Extends from ExternalObject.

Modelica definition

class ExternalCombiTimeTable "External object of 1-dim. table where first column is time" extends ExternalObject; function constructor "Initialize 1-dim. table where first column is time" extends Modelica.Icons.Function; input String tableName "Table name"; input String fileName "File name"; input Real table[:, :]; input Modelica.SIunits.Time startTime; input Integer columns[:]; input Modelica.Blocks.Types.Smoothness smoothness; input Modelica.Blocks.Types.Extrapolation extrapolation; output ExternalCombiTimeTable externalCombiTimeTable; external"C" externalCombiTimeTable = ModelicaStandardTables_CombiTimeTable_init( tableName, fileName, table, size(table, 1), size(table, 2), startTime, columns, size(columns, 1), smoothness, extrapolation); end constructor; function destructor "Terminate 1-dim. table where first column is time" extends Modelica.Icons.Function; input ExternalCombiTimeTable externalCombiTimeTable; external"C" ModelicaStandardTables_CombiTimeTable_close( externalCombiTimeTable); end destructor; end ExternalCombiTimeTable;

Modelica.Blocks.Types.ExternalCombiTable1D

External object of 1-dim. table defined by matrix

Information

Extends from ExternalObject.

Modelica definition

class ExternalCombiTable1D "External object of 1-dim. table defined by matrix" extends ExternalObject; function constructor "Initialize 1-dim. table defined by matrix" extends Modelica.Icons.Function; input String tableName "Table name"; input String fileName "File name"; input Real table[:, :]; input Integer columns[:]; input Modelica.Blocks.Types.Smoothness smoothness; output ExternalCombiTable1D externalCombiTable1D; external"C" externalCombiTable1D = ModelicaStandardTables_CombiTable1D_init( tableName, fileName, table, size(table, 1), size(table, 2), columns, size(columns, 1), smoothness); end constructor; function destructor "Terminate 1-dim. table defined by matrix" extends Modelica.Icons.Function; input ExternalCombiTable1D externalCombiTable1D; external"C" ModelicaStandardTables_CombiTable1D_close(externalCombiTable1D); end destructor; end ExternalCombiTable1D;

Modelica.Blocks.Types.ExternalCombiTable2D

External object of 2-dim. table defined by matrix

Information

Extends from ExternalObject.

Modelica definition

class ExternalCombiTable2D "External object of 2-dim. table defined by matrix" extends ExternalObject; function constructor "Initialize 2-dim. table defined by matrix" extends Modelica.Icons.Function; input String tableName "Table name"; input String fileName "File name"; input Real table[:, :]; input Modelica.Blocks.Types.Smoothness smoothness; output ExternalCombiTable2D externalCombiTable2D; external"C" externalCombiTable2D = ModelicaStandardTables_CombiTable2D_init( tableName, fileName, table, size(table, 1), size(table, 2), smoothness); end constructor; function destructor "Terminate 2-dim. table defined by matrix" extends Modelica.Icons.Function; input ExternalCombiTable2D externalCombiTable2D; external"C" ModelicaStandardTables_CombiTable2D_close(externalCombiTable2D); end destructor; end ExternalCombiTable2D;

Automatically generated Mon Sep 11 16:11:56 2017.