root/trunk/Modelica/Blocks/Types.mo

Revision 887, 3.1 kB (checked in by otter, 12 months ago)

Removed superfluous "fillPattern" annotations, if not accommpanied by a "fillColor" annotation (using special Dymola version provided by Erik)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1within Modelica.Blocks;
2package Types
3  "Library of constants and types with choices, especially to build menus"
4  extends Modelica.Icons.Library;
5  annotation ( Documentation(info="<HTML>
6<p>
7In this package <b>types</b> and <b>constants</b> are defined that are used
8in library Modelica.Blocks. The types have additional annotation choices
9definitions that define the menus to be built up in the graphical
10user interface when the type is used as parameter in a declaration.
11</p>
12</HTML>"));
13  type Smoothness = enumeration(
14      LinearSegments "Table points are linearly interpolated",
15      ContinuousDerivative
16        "Table points are interpolated such that the first derivative is continuous")
17    "Enumeration defining the smoothness of table interpolation" 
18    annotation (Documentation(info="<html>
19 
20</html>"));
21type Extrapolation = enumeration(
22      HoldLastPoint "Hold the last table point outside of the table scope",
23      LastTwoPoints
24        "Extrapolate linearly through the last two table points outside of the table scope", 
25
26      Periodic "Repeat the table scope periodically")
27    "Enumeration defining the extrapolation of time table interpolation" 
28        annotation ( Documentation(info="<html>
29 
30</html>"));
31
32  type Init = enumeration(
33      NoInit
34        "No initialization (start values are used as guess values with fixed=false)", 
35
36      SteadyState
37        "Steady state initialization (derivatives of states are zero)",
38      InitialState "Initialization with initial states",
39      InitialOutput
40        "Initialization with initial outputs (and steady state of the states if possibles)")
41    "Enumeration defining initialization of a block" 
42      annotation (Evaluate=true, Documentation(info="<html>
43 
44</html>"));
45
46  type InitPID = enumeration(
47      NoInit
48        "No initialization (start values are used as guess values with fixed=false)", 
49
50      SteadyState
51        "Steady state initialization (derivatives of states are zero)",
52      InitialState "Initialization with initial states",
53      InitialOutput
54        "Initialization with initial outputs (and steady state of the states if possibles)", 
55
56      DoNotUse_InitialIntegratorState
57        "Don't use, only for backward compatibility (initialize only integrator state)")
58    "Enumeration defining initialization of PID and LimPID blocks" 
59    annotation (Documentation(info="<html>
60<p>
61This initialization type is identical to Types.Init and has just one
62additional option <b>DoNotUse_InitialIntegratorState</b>. This option
63is introduced in order that the default initialization for the
64Continuous.PID and Continuous.LimPID blocks are backward
65compatible. In Modelica 2.2, the integrators have been initialized
66with their given states where as the D-part has not been initialized.
67The option \"DoNotUse_InitialIntegratorState\" leads to this
68initialization definition.
69</p>
70 
71</html>"),   Evaluate=true);
72
73  type SimpleController = enumeration(
74      P "P controller",
75      PI "PI controller",
76      PD "PD controller",
77      PID "PID controller")
78    "Enumeration defining P, PI, PD, or PID simple controller type" 
79      annotation (Evaluate=true, Documentation(info="<html>
80 
81</html>"));
82
83end Types;
Note: See TracBrowser for help on using the browser.