1 | package Modelica "Modelica Standard Library - Version 3.2.3"
|
---|
2 | extends Modelica.Icons.Package;
|
---|
3 |
|
---|
4 | package Icons "Library of icons"
|
---|
5 | extends Icons.Package;
|
---|
6 |
|
---|
7 | partial package Package "Icon for standard packages"
|
---|
8 |
|
---|
9 | annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}}), graphics={
|
---|
10 | Rectangle(
|
---|
11 | lineColor={200,200,200},
|
---|
12 | fillColor={248,248,248},
|
---|
13 | fillPattern=FillPattern.HorizontalCylinder,
|
---|
14 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
15 | radius=25.0),
|
---|
16 | Rectangle(
|
---|
17 | lineColor={128,128,128},
|
---|
18 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
19 | radius=25.0)}), Documentation(info="<html>
|
---|
20 | <p>Standard package icon.</p>
|
---|
21 | </html>"));
|
---|
22 | end Package;
|
---|
23 |
|
---|
24 | partial package VariantsPackage "Icon for package containing variants"
|
---|
25 | extends Modelica.Icons.Package;
|
---|
26 | annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},
|
---|
27 | {100,100}}), graphics={
|
---|
28 | Ellipse(
|
---|
29 | origin={10.0,10.0},
|
---|
30 | fillColor={76,76,76},
|
---|
31 | pattern=LinePattern.None,
|
---|
32 | fillPattern=FillPattern.Solid,
|
---|
33 | extent={{-80.0,-80.0},{-20.0,-20.0}}),
|
---|
34 | Ellipse(
|
---|
35 | origin={10.0,10.0},
|
---|
36 | pattern=LinePattern.None,
|
---|
37 | fillPattern=FillPattern.Solid,
|
---|
38 | extent={{0.0,-80.0},{60.0,-20.0}}),
|
---|
39 | Ellipse(
|
---|
40 | origin={10.0,10.0},
|
---|
41 | fillColor={128,128,128},
|
---|
42 | pattern=LinePattern.None,
|
---|
43 | fillPattern=FillPattern.Solid,
|
---|
44 | extent={{0.0,0.0},{60.0,60.0}}),
|
---|
45 | Ellipse(
|
---|
46 | origin={10.0,10.0},
|
---|
47 | lineColor={128,128,128},
|
---|
48 | fillColor={255,255,255},
|
---|
49 | fillPattern=FillPattern.Solid,
|
---|
50 | extent={{-80.0,0.0},{-20.0,60.0}})}),
|
---|
51 | Documentation(info="<html>
|
---|
52 | <p>This icon shall be used for a package/library that contains several variants of one component.</p>
|
---|
53 | </html>"));
|
---|
54 | end VariantsPackage;
|
---|
55 | annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
|
---|
56 | -100},{100,100}}), graphics={Polygon(
|
---|
57 | origin={-8.167,-17},
|
---|
58 | fillColor={128,128,128},
|
---|
59 | pattern=LinePattern.None,
|
---|
60 | fillPattern=FillPattern.Solid,
|
---|
61 | points={{-15.833,20.0},{-15.833,30.0},{14.167,40.0},{24.167,20.0},{
|
---|
62 | 4.167,-30.0},{14.167,-30.0},{24.167,-30.0},{24.167,-40.0},{-5.833,
|
---|
63 | -50.0},{-15.833,-30.0},{4.167,20.0},{-5.833,20.0}},
|
---|
64 | smooth=Smooth.Bezier), Ellipse(
|
---|
65 | origin={-0.5,56.5},
|
---|
66 | fillColor={128,128,128},
|
---|
67 | pattern=LinePattern.None,
|
---|
68 | fillPattern=FillPattern.Solid,
|
---|
69 | extent={{-12.5,-12.5},{12.5,12.5}})}), Documentation(info="<html>
|
---|
70 | <p>This package contains definitions for the graphical layout of components which may be used in different libraries. The icons can be utilized by inheriting them in the desired class using "extends" or by directly copying the "icon" layer.</p>
|
---|
71 |
|
---|
72 | <h4>Main Authors:</h4>
|
---|
73 |
|
---|
74 | <dl>
|
---|
75 | <dt><a href=\"http://www.robotic.dlr.de/Martin.Otter/\">Martin Otter</a></dt>
|
---|
76 | <dd>Deutsches Zentrum fuer Luft und Raumfahrt e.V. (DLR)</dd>
|
---|
77 | <dd>Oberpfaffenhofen</dd>
|
---|
78 | <dd>Postfach 1116</dd>
|
---|
79 | <dd>D-82230 Wessling</dd>
|
---|
80 | <dd>email: <a href=\"mailto:Martin.Otter@dlr.de\">Martin.Otter@dlr.de</a></dd>
|
---|
81 | <dt>Christian Kral</dt>
|
---|
82 |
|
---|
83 | <dd> <a href=\"https://christiankral.net/\">Electric Machines, Drives and Systems</a><br>
|
---|
84 | </dd>
|
---|
85 | <dd>1060 Vienna, Austria</dd>
|
---|
86 | <dd>email: <a href=\"mailto:dr.christian.kral@gmail.com\">dr.christian.kral@gmail.com</a></dd>
|
---|
87 | <dt>Johan Andreasson</dt>
|
---|
88 | <dd><a href=\"http://www.modelon.se/\">Modelon AB</a></dd>
|
---|
89 | <dd>Ideon Science Park</dd>
|
---|
90 | <dd>22370 Lund, Sweden</dd>
|
---|
91 | <dd>email: <a href=\"mailto:johan.andreasson@modelon.se\">johan.andreasson@modelon.se</a></dd>
|
---|
92 | </dl>
|
---|
93 |
|
---|
94 | <p>
|
---|
95 | Copyright © 1998-2019, Modelica Association and contributors
|
---|
96 | </p>
|
---|
97 | </html>"));
|
---|
98 | end Icons;
|
---|
99 | annotation (
|
---|
100 | preferredView="info",
|
---|
101 | version="3.2.3",
|
---|
102 | versionBuild=2,
|
---|
103 | versionDate="2019-01-23",
|
---|
104 | dateModified = "2019-03-20 12:00:00Z",
|
---|
105 | revisionId="8f65f621a 2019-03-20 09:22:19 +0100",
|
---|
106 | uses(Complex(version="3.2.3"), ModelicaServices(version="3.2.3")),
|
---|
107 | conversion(
|
---|
108 | noneFromVersion="3.2.2",
|
---|
109 | noneFromVersion="3.2.1",
|
---|
110 | noneFromVersion="3.2",
|
---|
111 | noneFromVersion="3.1",
|
---|
112 | noneFromVersion="3.0.1",
|
---|
113 | noneFromVersion="3.0",
|
---|
114 | from(version="2.1", script="modelica://Modelica/Resources/Scripts/Dymola/ConvertModelica_from_2.2.2_to_3.0.mos"),
|
---|
115 | from(version="2.2", script="modelica://Modelica/Resources/Scripts/Dymola/ConvertModelica_from_2.2.2_to_3.0.mos"),
|
---|
116 | from(version="2.2.1", script="modelica://Modelica/Resources/Scripts/Dymola/ConvertModelica_from_2.2.2_to_3.0.mos"),
|
---|
117 | from(version="2.2.2", script="modelica://Modelica/Resources/Scripts/Dymola/ConvertModelica_from_2.2.2_to_3.0.mos")),
|
---|
118 | Icon(coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}}), graphics={
|
---|
119 | Polygon(
|
---|
120 | origin={-6.9888,20.048},
|
---|
121 | pattern=LinePattern.None,
|
---|
122 | fillPattern=FillPattern.Solid,
|
---|
123 | points={{-93.0112,10.3188},{-93.0112,10.3188},{-73.011,24.6},{-63.011,31.221},{-51.219,36.777},{-39.842,38.629},{-31.376,36.248},{-25.819,29.369},{-24.232,22.49},{-23.703,17.463},{-15.501,25.135},{-6.24,32.015},{3.02,36.777},{15.191,39.423},{27.097,37.306},{32.653,29.633},{35.035,20.108},{43.501,28.046},{54.085,35.19},{65.991,39.952},{77.897,39.688},{87.422,33.338},{91.126,21.696},{90.068,9.525},{86.099,-1.058},{79.749,-10.054},{71.283,-21.431},{62.816,-33.337},{60.964,-32.808},{70.489,-16.14},{77.368,-2.381},{81.072,10.054},{79.749,19.05},{72.605,24.342},{61.758,23.019},{49.587,14.817},{39.003,4.763},{29.214,-6.085},{21.012,-16.669},{13.339,-26.458},{5.401,-36.777},{-1.213,-46.037},{-6.24,-53.446},{-8.092,-52.387},{-0.684,-40.746},{5.401,-30.692},{12.81,-17.198},{19.424,-3.969},{23.658,7.938},{22.335,18.785},{16.514,23.283},{8.047,23.019},{-1.478,19.05},{-11.267,11.113},{-19.734,2.381},{-29.259,-8.202},{-38.519,-19.579},{-48.044,-31.221},{-56.511,-43.392},{-64.449,-55.298},{-72.386,-66.939},{-77.678,-74.612},{-79.53,-74.083},{-71.857,-61.383},{-62.861,-46.037},{-52.278,-28.046},{-44.869,-15.346},{-38.784,-2.117},{-35.344,8.731},{-36.403,19.844},{-42.488,23.813},{-52.013,22.49},{-60.744,16.933},{-68.947,10.054},{-76.884,2.646},{-93.0112,-12.1707},{-93.0112,-12.1707}},
|
---|
124 | smooth=Smooth.Bezier),
|
---|
125 | Ellipse(
|
---|
126 | origin={40.8208,-37.7602},
|
---|
127 | fillColor={161,0,4},
|
---|
128 | pattern=LinePattern.None,
|
---|
129 | fillPattern=FillPattern.Solid,
|
---|
130 | extent={{-17.8562,-17.8563},{17.8563,17.8562}})}),
|
---|
131 | Documentation(info="<html>
|
---|
132 | <p>
|
---|
133 | Package <strong>Modelica®</strong> is a <strong>standardized</strong> and <strong>free</strong> package
|
---|
134 | that is developed together with the Modelica® language from the
|
---|
135 | Modelica Association, see
|
---|
136 | <a href=\"https://www.Modelica.org\">https://www.Modelica.org</a>.
|
---|
137 | It is also called <strong>Modelica Standard Library</strong>.
|
---|
138 | It provides model components in many domains that are based on
|
---|
139 | standardized interface definitions. Some typical examples are shown
|
---|
140 | in the next figure:
|
---|
141 | </p>
|
---|
142 |
|
---|
143 | <p>
|
---|
144 | <img src=\"modelica://Modelica/Resources/Images/UsersGuide/ModelicaLibraries.png\">
|
---|
145 | </p>
|
---|
146 |
|
---|
147 | <p>
|
---|
148 | For an introduction, have especially a look at:
|
---|
149 | </p>
|
---|
150 | <ul>
|
---|
151 | <li> <a href=\"modelica://Modelica.UsersGuide.Overview\">Overview</a>
|
---|
152 | provides an overview of the Modelica Standard Library
|
---|
153 | inside the <a href=\"modelica://Modelica.UsersGuide\">User's Guide</a>.</li>
|
---|
154 | <li><a href=\"modelica://Modelica.UsersGuide.ReleaseNotes\">Release Notes</a>
|
---|
155 | summarizes the changes of new versions of this package.</li>
|
---|
156 | <li> <a href=\"modelica://Modelica.UsersGuide.Contact\">Contact</a>
|
---|
157 | lists the contributors of the Modelica Standard Library.</li>
|
---|
158 | <li> The <strong>Examples</strong> packages in the various libraries, demonstrate
|
---|
159 | how to use the components of the corresponding sublibrary.</li>
|
---|
160 | </ul>
|
---|
161 |
|
---|
162 | <p>
|
---|
163 | This version of the Modelica Standard Library consists of
|
---|
164 | </p>
|
---|
165 | <ul>
|
---|
166 | <li><strong>1288</strong> component models and blocks,</li>
|
---|
167 | <li><strong>404</strong> example models, and</li>
|
---|
168 | <li><strong>1227</strong> functions</li>
|
---|
169 | </ul>
|
---|
170 | <p>
|
---|
171 | that are directly usable (= number of public, non-partial, non-internal and non-obsolete classes). It is fully compliant
|
---|
172 | to <a href=\"https://www.modelica.org/documents/ModelicaSpec32Revision2.pdf\">Modelica Specification Version 3.2 Revision 2</a>
|
---|
173 | and it has been tested with Modelica tools from different vendors.
|
---|
174 | </p>
|
---|
175 |
|
---|
176 | <p>
|
---|
177 | <strong>Licensed by the Modelica Association under the 3-Clause BSD License</strong><br>
|
---|
178 | Copyright © 1998-2019, Modelica Association and <a href=\"modelica://Modelica.UsersGuide.Contact\">contributors</a>.
|
---|
179 | </p>
|
---|
180 |
|
---|
181 | <p>
|
---|
182 | <em>This Modelica package is <u>free</u> software and the use is completely at <u>your own risk</u>; it can be redistributed and/or modified under the terms of the 3-Clause BSD license. For license conditions (including the disclaimer of warranty) visit <a href=\"https://modelica.org/licenses/modelica-3-clause-bsd\">https://modelica.org/licenses/modelica-3-clause-bsd</a>.</em>
|
---|
183 | </p>
|
---|
184 |
|
---|
185 | <p>
|
---|
186 | <strong>Modelica®</strong> is a registered trademark of the Modelica Association.
|
---|
187 | </p>
|
---|
188 | </html>"));
|
---|
189 | end Modelica;
|
---|
190 |
|
---|
191 | package Buildings "Library with models for building energy and control systems"
|
---|
192 | extends Modelica.Icons.Package;
|
---|
193 |
|
---|
194 | package Controls "Package with models for controls"
|
---|
195 | extends Modelica.Icons.Package;
|
---|
196 |
|
---|
197 | package OBC "Blocks and preconfigured control sequences"
|
---|
198 | extends Modelica.Icons.VariantsPackage;
|
---|
199 |
|
---|
200 | package CDL
|
---|
201 | "Package with blocks, examples and validation tests for control description language"
|
---|
202 |
|
---|
203 | package Continuous "Package with blocks for continuous variables"
|
---|
204 |
|
---|
205 | block MultiMax "Output the maximum element of the input vector"
|
---|
206 |
|
---|
207 | parameter Integer nin(min=0) = 0 "Number of input connections"
|
---|
208 | annotation (Dialog(connectorSizing=true), HideResult=true);
|
---|
209 | Interfaces.RealInput u[nin] "Connector of Real input signals"
|
---|
210 | annotation (Placement(transformation(extent={{-140,20},{-100,-20}})));
|
---|
211 | Interfaces.RealOutput y "Connector of Real output signals"
|
---|
212 | annotation (Placement(transformation(extent={{100,-20},{140,20}})));
|
---|
213 |
|
---|
214 | equation
|
---|
215 | y = max(u);
|
---|
216 |
|
---|
217 | annotation (Icon(coordinateSystem(
|
---|
218 | preserveAspectRatio=false,
|
---|
219 | extent={{-100,-100},{100,100}}),
|
---|
220 | graphics={
|
---|
221 | Rectangle(
|
---|
222 | extent={{-100,-100},{100,100}},
|
---|
223 | lineColor={0,0,127},
|
---|
224 | fillColor={255,255,255},
|
---|
225 | fillPattern=FillPattern.Solid),
|
---|
226 | Text(
|
---|
227 | extent={{-150,150},{150,110}},
|
---|
228 | textString="%name",
|
---|
229 | lineColor={0,0,255}),
|
---|
230 | Text(
|
---|
231 | extent={{-90,36},{90,-36}},
|
---|
232 | lineColor={160,160,164},
|
---|
233 | textString="max()")}),
|
---|
234 | Documentation(info="<html>
|
---|
235 | <p>
|
---|
236 | Outputs the maximum element of the input vector.
|
---|
237 | </p>
|
---|
238 | </html>", revisions="<html>
|
---|
239 | <ul>
|
---|
240 | <li>
|
---|
241 | September 14, 2017, by Jianjun Hu:<br/>
|
---|
242 | First implementation, based on the implementation of the
|
---|
243 | Modelica Standard Library.
|
---|
244 | </li>
|
---|
245 | </ul>
|
---|
246 | </html>"));
|
---|
247 | end MultiMax;
|
---|
248 |
|
---|
249 | package Sources "Package with blocks that generate source signals"
|
---|
250 |
|
---|
251 | block Constant "Output constant signal of type Real"
|
---|
252 | parameter Real k "Constant output value";
|
---|
253 |
|
---|
254 | Interfaces.RealOutput y
|
---|
255 | "Connector of Real output signal"
|
---|
256 | annotation (Placement(transformation(extent={{100,-20},{140,20}})));
|
---|
257 |
|
---|
258 | equation
|
---|
259 | y = k;
|
---|
260 | annotation (
|
---|
261 | defaultComponentName="con",
|
---|
262 | Icon(coordinateSystem(
|
---|
263 | preserveAspectRatio=true,
|
---|
264 | extent={{-100,-100},{100,100}}), graphics={
|
---|
265 | Rectangle(
|
---|
266 | extent={{-100,-100},{100,100}},
|
---|
267 | lineColor={0,0,127},
|
---|
268 | fillColor={255,255,255},
|
---|
269 | fillPattern=FillPattern.Solid),
|
---|
270 | Text(
|
---|
271 | lineColor={0,0,255},
|
---|
272 | extent={{-150,110},{150,150}},
|
---|
273 | textString="%name"),
|
---|
274 | Line(points={{-80,68},{-80,-80}}, color={192,192,192}),
|
---|
275 | Polygon(
|
---|
276 | points={{-80,90},{-88,68},{-72,68},{-80,90}},
|
---|
277 | lineColor={192,192,192},
|
---|
278 | fillColor={192,192,192},
|
---|
279 | fillPattern=FillPattern.Solid),
|
---|
280 | Line(points={{-90,-70},{82,-70}}, color={192,192,192}),
|
---|
281 | Polygon(
|
---|
282 | points={{90,-70},{68,-62},{68,-78},{90,-70}},
|
---|
283 | lineColor={192,192,192},
|
---|
284 | fillColor={192,192,192},
|
---|
285 | fillPattern=FillPattern.Solid),
|
---|
286 | Line(points={{-80,0},{80,0}}),
|
---|
287 | Text(
|
---|
288 | extent={{-150,-150},{150,-110}},
|
---|
289 | lineColor={0,0,0},
|
---|
290 | textString="k=%k")}),
|
---|
291 | Documentation(info="<html>
|
---|
292 | <p>
|
---|
293 | Block that outputs a constant signal <code>y = k</code>,
|
---|
294 | where <code>k</code> is a real-valued parameter.
|
---|
295 | </p>
|
---|
296 | <p align=\"center\">
|
---|
297 | <img src=\"modelica://Buildings/Resources/Images/Controls/OBC/CDL/Continuous/Constant.png\"
|
---|
298 | alt=\"Constant.png\" />
|
---|
299 | </p>
|
---|
300 | </html>"));
|
---|
301 | end Constant;
|
---|
302 | annotation (
|
---|
303 | Documentation(
|
---|
304 | info="<html>
|
---|
305 | <p>
|
---|
306 | Package with blocks that generate signals.
|
---|
307 | </p>
|
---|
308 | </html>"), Icon(graphics={
|
---|
309 | Rectangle(
|
---|
310 | lineColor={200,200,200},
|
---|
311 | fillColor={248,248,248},
|
---|
312 | fillPattern=FillPattern.HorizontalCylinder,
|
---|
313 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
314 | radius=25.0),
|
---|
315 | Rectangle(
|
---|
316 | fillColor = {128,128,128},
|
---|
317 | pattern = LinePattern.None,
|
---|
318 | fillPattern = FillPattern.Solid,
|
---|
319 | extent = {{-70,-4.5},{0,4.5}}),
|
---|
320 | Polygon(origin={23.3333,0.0},
|
---|
321 | fillColor={128,128,128},
|
---|
322 | pattern=LinePattern.None,
|
---|
323 | fillPattern=FillPattern.Solid,
|
---|
324 | points={{-23.333,30.0},{46.667,0.0},{-23.333,-30.0}}),
|
---|
325 | Rectangle(
|
---|
326 | lineColor={128,128,128},
|
---|
327 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
328 | radius=25.0)}));
|
---|
329 | end Sources;
|
---|
330 | annotation (
|
---|
331 | Documentation(
|
---|
332 | info="<html>
|
---|
333 | <p>
|
---|
334 | Package with blocks for elementary mathematical functions
|
---|
335 | for continuous variables.
|
---|
336 | </p>
|
---|
337 | </html>",
|
---|
338 | revisions="<html>
|
---|
339 | <ul>
|
---|
340 | <li>
|
---|
341 | December 22, 2016, by Michael Wetter:<br/>
|
---|
342 | Firt implementation, based on the blocks from the Modelica Standard Library.
|
---|
343 | </li>
|
---|
344 | </ul>
|
---|
345 | </html>"),
|
---|
346 | Icon(graphics={
|
---|
347 | Rectangle(
|
---|
348 | lineColor={200,200,200},
|
---|
349 | fillColor={248,248,248},
|
---|
350 | fillPattern=FillPattern.HorizontalCylinder,
|
---|
351 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
352 | radius=25.0),
|
---|
353 | Text(
|
---|
354 | extent={{-52,86},{52,-92}},
|
---|
355 | lineColor={0,0,0},
|
---|
356 | fillColor={0,0,0},
|
---|
357 | fillPattern=FillPattern.Solid,
|
---|
358 | textString="R"),
|
---|
359 | Rectangle(
|
---|
360 | lineColor={128,128,128},
|
---|
361 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
362 | radius=25.0)}));
|
---|
363 | end Continuous;
|
---|
364 |
|
---|
365 | package Interfaces
|
---|
366 | "Package with connectors for input and output signals"
|
---|
367 |
|
---|
368 | connector RealInput = input Real "'input Real' as connector"
|
---|
369 | annotation (
|
---|
370 | defaultComponentName="u",
|
---|
371 | Icon(graphics={
|
---|
372 | Polygon(
|
---|
373 | lineColor={0,0,127},
|
---|
374 | fillColor={0,0,127},
|
---|
375 | fillPattern=FillPattern.Solid,
|
---|
376 | points={{0,50},{100,0},{0,-50}})},
|
---|
377 | coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
378 | preserveAspectRatio=true,
|
---|
379 | initialScale=0.2)),
|
---|
380 | Diagram(
|
---|
381 | coordinateSystem(preserveAspectRatio=true,
|
---|
382 | initialScale=0.2,
|
---|
383 | extent={{-100.0,-100.0},{100.0,100.0}}),
|
---|
384 | graphics={
|
---|
385 | Polygon(
|
---|
386 | lineColor={0,0,127},
|
---|
387 | fillColor={0,0,127},
|
---|
388 | fillPattern=FillPattern.Solid,
|
---|
389 | points={{0.0,50.0},{100.0,0.0},{0.0,-50.0},{0.0,50.0}}),
|
---|
390 | Text(
|
---|
391 | lineColor={0,0,127},
|
---|
392 | extent={{-10.0,60.0},{-10.0,85.0}},
|
---|
393 | textString="%name")}),
|
---|
394 | Documentation(info="<html>
|
---|
395 | <p>
|
---|
396 | Connector with one input signal of type Real.
|
---|
397 | </p>
|
---|
398 | </html>", revisions="<html>
|
---|
399 | <ul>
|
---|
400 | <li>
|
---|
401 | March 1, 2019, by Michael Wetter:<br/>
|
---|
402 | On the icon layer, changed connector size and added the connector name.<br/>
|
---|
403 | This is for
|
---|
404 | <a href=\"modelica://https://github.com/lbl-srg/modelica-buildings/issues/1375\">issue 1375</a>.
|
---|
405 | </li>
|
---|
406 | <li>
|
---|
407 | January 6, 2017, by Michael Wetter:<br/>
|
---|
408 | First implementation, based on the implementation of the
|
---|
409 | Modelica Standard Library.
|
---|
410 | </li>
|
---|
411 | </ul>
|
---|
412 | </html>"));
|
---|
413 |
|
---|
414 | connector RealOutput = output Real "'output Real' as connector"
|
---|
415 | annotation (
|
---|
416 | defaultComponentName="y",
|
---|
417 | Icon(
|
---|
418 | coordinateSystem(preserveAspectRatio=true,
|
---|
419 | initialScale=0.2,
|
---|
420 | extent={{-100.0,-100.0},{100.0,100.0}}),
|
---|
421 | graphics={
|
---|
422 | Polygon(
|
---|
423 | lineColor={0,0,127},
|
---|
424 | fillColor={255,255,255},
|
---|
425 | fillPattern=FillPattern.Solid,
|
---|
426 | points={{-100,50},{0,0},{-100,-50}})}),
|
---|
427 | Diagram(
|
---|
428 | coordinateSystem(preserveAspectRatio=true,
|
---|
429 | initialScale=0.2,
|
---|
430 | extent={{-100.0,-100.0},{100.0,100.0}}),
|
---|
431 | graphics={
|
---|
432 | Polygon(
|
---|
433 | lineColor={0,0,127},
|
---|
434 | fillColor={255,255,255},
|
---|
435 | fillPattern=FillPattern.Solid,
|
---|
436 | points={{-100.0,50.0},{0.0,0.0},{-100.0,-50.0}}),
|
---|
437 | Text(
|
---|
438 | lineColor={0,0,127},
|
---|
439 | extent={{30.0,60.0},{30.0,110.0}},
|
---|
440 | textString="%name")}),
|
---|
441 | Documentation(info="<html>
|
---|
442 | <p>
|
---|
443 | Connector with one output signal of type Real.
|
---|
444 | </p>
|
---|
445 | </html>", revisions="<html>
|
---|
446 | <ul>
|
---|
447 | <li>
|
---|
448 | July 19, 2019, by Jianjun Hu:<br/>
|
---|
449 | On both icon and diagram layer, added the initialScale.<br/>
|
---|
450 | This is for
|
---|
451 | <a href=\"modelica://https://github.com/lbl-srg/modelica-buildings/issues/1375\">issue 1375</a>.
|
---|
452 | </li>
|
---|
453 | <li>
|
---|
454 | March 1, 2019, by Michael Wetter:<br/>
|
---|
455 | On the icon layer, changed connector size and added the connector name.<br/>
|
---|
456 | This is for
|
---|
457 | <a href=\"modelica://https://github.com/lbl-srg/modelica-buildings/issues/1375\">issue 1375</a>.
|
---|
458 | </li>
|
---|
459 | <li>
|
---|
460 | January 6, 2017, by Michael Wetter:<br/>
|
---|
461 | First implementation, based on the implementation of the
|
---|
462 | Modelica Standard Library.
|
---|
463 | </li>
|
---|
464 | </ul>
|
---|
465 | </html>"));
|
---|
466 | annotation (preferredView="info", Documentation(info="<html>
|
---|
467 | <p>
|
---|
468 | This package contains implementations of connectors for input
|
---|
469 | and output signals of blocks.
|
---|
470 | </p>
|
---|
471 | <p>
|
---|
472 | The connectors are compatible with, and equivalent to,
|
---|
473 | the connectors from the Modelica Standard Library.
|
---|
474 | They are here implemented to make the <code>CDL</code>
|
---|
475 | package a self-contained package.
|
---|
476 | </p>
|
---|
477 | </html>"),Icon(graphics={
|
---|
478 | Rectangle(
|
---|
479 | lineColor={200,200,200},
|
---|
480 | fillColor={248,248,248},
|
---|
481 | fillPattern=FillPattern.HorizontalCylinder,
|
---|
482 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
483 | radius=25.0),
|
---|
484 | Rectangle(
|
---|
485 | lineColor={128,128,128},
|
---|
486 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
487 | radius=25.0),
|
---|
488 | Polygon(origin={20.0,0.0},
|
---|
489 | lineColor={64,64,64},
|
---|
490 | fillColor={255,255,255},
|
---|
491 | fillPattern=FillPattern.Solid,
|
---|
492 | points={{-10.0,70.0},{10.0,70.0},{40.0,20.0},{80.0,20.0},{80.0,-20.0},{40.0,-20.0},{10.0,-70.0},{-10.0,-70.0}}),
|
---|
493 | Polygon(fillColor={102,102,102},
|
---|
494 | pattern=LinePattern.None,
|
---|
495 | fillPattern=FillPattern.Solid,
|
---|
496 | points={{-100.0,20.0},{-60.0,20.0},{-30.0,70.0},{-10.0,70.0},{-10.0,-70.0},{-30.0,-70.0},{-60.0,-20.0},{-100.0,-20.0}})}));
|
---|
497 | end Interfaces;
|
---|
498 | annotation (
|
---|
499 | Documentation(info="<html>
|
---|
500 | <p>
|
---|
501 | Package that has elementary input-output blocks
|
---|
502 | that form the Control Description Language (CDL).
|
---|
503 | The implementation is structured into sub-packages.
|
---|
504 | The packages <code>Validation</code> and <code>Examples</code>
|
---|
505 | contain validation and example models.
|
---|
506 | These are not part of the CDL specification, but rather
|
---|
507 | implemented to provide reference responses computed by the CDL blocks.
|
---|
508 | For a specification of CDL, see
|
---|
509 | <a href=\"http://obc.lbl.gov/specification/cdl.html\">
|
---|
510 | http://obc.lbl.gov/specification/cdl.html</a>.
|
---|
511 | </p>
|
---|
512 | </html>",
|
---|
513 | revisions="<html>
|
---|
514 | <ul>
|
---|
515 | <li>
|
---|
516 | December 22, 2016, by Michael Wetter:<br/>
|
---|
517 | Firt implementation, based on the blocks from the Modelica Standard Library.
|
---|
518 | </li>
|
---|
519 | </ul>
|
---|
520 | </html>"), Icon(graphics={
|
---|
521 | Rectangle(
|
---|
522 | lineColor={200,200,200},
|
---|
523 | fillColor={248,248,248},
|
---|
524 | fillPattern=FillPattern.HorizontalCylinder,
|
---|
525 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
526 | radius=25.0),
|
---|
527 | Rectangle(
|
---|
528 | lineColor={128,128,128},
|
---|
529 | extent={{-100.0,-100.0},{100.0,100.0}},
|
---|
530 | radius=25.0),
|
---|
531 | Ellipse(
|
---|
532 | origin={10.0,10.0},
|
---|
533 | fillColor={76,76,76},
|
---|
534 | pattern=LinePattern.None,
|
---|
535 | fillPattern=FillPattern.Solid,
|
---|
536 | extent={{-80.0,-80.0},{-20.0,-20.0}}),
|
---|
537 | Ellipse(
|
---|
538 | origin={10.0,10.0},
|
---|
539 | pattern=LinePattern.None,
|
---|
540 | fillPattern=FillPattern.Solid,
|
---|
541 | extent={{0.0,-80.0},{60.0,-20.0}}),
|
---|
542 | Ellipse(
|
---|
543 | origin={10.0,10.0},
|
---|
544 | fillColor={128,128,128},
|
---|
545 | pattern=LinePattern.None,
|
---|
546 | fillPattern=FillPattern.Solid,
|
---|
547 | extent={{0.0,0.0},{60.0,60.0}}),
|
---|
548 | Ellipse(
|
---|
549 | origin={10.0,10.0},
|
---|
550 | lineColor={128,128,128},
|
---|
551 | fillColor={255,255,255},
|
---|
552 | fillPattern=FillPattern.Solid,
|
---|
553 | extent={{-80.0,0.0},{-20.0,60.0}})}));
|
---|
554 | end CDL;
|
---|
555 | annotation (
|
---|
556 | Documentation(info="<html>
|
---|
557 | <p>
|
---|
558 | Package that contains a library of elementary control blocks
|
---|
559 | and a library that implements control sequences from the ASHRAE Guideline 36.
|
---|
560 | </p>
|
---|
561 | <p>
|
---|
562 | These implementations have been developed
|
---|
563 | through the OpenBuildingControl project
|
---|
564 | that aims to develop a process and tools for the
|
---|
565 | performance evaluation, specification and verification
|
---|
566 | of building control sequences.
|
---|
567 | See
|
---|
568 | <a href=\"http://obc.lbl.gov\">
|
---|
569 | http://obc.lbl.gov</a>
|
---|
570 | for further information.
|
---|
571 | </p>
|
---|
572 | </html>"));
|
---|
573 | end OBC;
|
---|
574 | annotation (
|
---|
575 | preferredView="info", Documentation(info="<html>
|
---|
576 | This package contains component models for controls.
|
---|
577 | For additional models, see also
|
---|
578 | <a href=\"modelica://Modelica.Blocks\">
|
---|
579 | Modelica.Blocks</a>.
|
---|
580 | </html>"),
|
---|
581 | Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100.0,-100.0},{100.0,100.0}}), graphics={
|
---|
582 | Rectangle(
|
---|
583 | origin={0.0,35.1488},
|
---|
584 | fillColor={255,255,255},
|
---|
585 | extent={{-30.0,-20.1488},{30.0,20.1488}}),
|
---|
586 | Rectangle(
|
---|
587 | origin={0.0,-34.8512},
|
---|
588 | fillColor={255,255,255},
|
---|
589 | extent={{-30.0,-20.1488},{30.0,20.1488}}),
|
---|
590 | Line(
|
---|
591 | origin={-51.25,0.0},
|
---|
592 | points={{21.25,-35.0},{-13.75,-35.0},{-13.75,35.0},{6.25,35.0}}),
|
---|
593 | Polygon(
|
---|
594 | origin={-40.0,35.0},
|
---|
595 | pattern=LinePattern.None,
|
---|
596 | fillPattern=FillPattern.Solid,
|
---|
597 | points={{10.0,0.0},{-5.0,5.0},{-5.0,-5.0}}),
|
---|
598 | Line(
|
---|
599 | origin={51.25,0.0},
|
---|
600 | points={{-21.25,35.0},{13.75,35.0},{13.75,-35.0},{-6.25,-35.0}}),
|
---|
601 | Polygon(
|
---|
602 | origin={40.0,-35.0},
|
---|
603 | pattern=LinePattern.None,
|
---|
604 | fillPattern=FillPattern.Solid,
|
---|
605 | points={{-10.0,0.0},{5.0,5.0},{5.0,-5.0}})}));
|
---|
606 | end Controls;
|
---|
607 | annotation (
|
---|
608 | preferredView="info",
|
---|
609 | version="7.0.0",
|
---|
610 | versionDate="2019-07-15",
|
---|
611 | dateModified="2019-07-15",
|
---|
612 | uses(Modelica(version="3.2.3")),
|
---|
613 | conversion(
|
---|
614 | from(version={"6.0.0"},
|
---|
615 | script="modelica://Buildings/Resources/Scripts/Dymola/ConvertBuildings_from_6_to_7.0.0.mos")),
|
---|
616 | preferredView="info",
|
---|
617 | Documentation(info="<html>
|
---|
618 | <p>
|
---|
619 | The <code>Buildings</code> library is a free library
|
---|
620 | for modeling building energy and control systems.
|
---|
621 | Many models are based on models from the package
|
---|
622 | <code>Modelica.Fluid</code> and use
|
---|
623 | the same ports to ensure compatibility with the Modelica Standard
|
---|
624 | Library.
|
---|
625 | </p>
|
---|
626 | <p>
|
---|
627 | The figure below shows a section of the schematic view of the model
|
---|
628 | <a href=\"modelica://Buildings.Examples.HydronicHeating\">
|
---|
629 | Buildings.Examples.HydronicHeating</a>.
|
---|
630 | In the lower part of the figure, there is a dynamic model of a boiler, a pump and a stratified energy storage tank. Based on the temperatures of the storage tank, a finite state machine switches the boiler and its pump on and off.
|
---|
631 | The heat distribution is done using a hydronic heating system with a three way valve and a pump with variable revolutions. The upper right hand corner shows a room model that is connected to a radiator whose flow is controlled by a thermostatic valve.
|
---|
632 | </p>
|
---|
633 | <p align=\"center\">
|
---|
634 | <img alt=\"image\" src=\"modelica://Buildings/Resources/Images/UsersGuide/HydronicHeating.png\" border=\"1\"/>
|
---|
635 | </p>
|
---|
636 | <p>
|
---|
637 | The web page for this library is
|
---|
638 | <a href=\"http://simulationresearch.lbl.gov/modelica\">http://simulationresearch.lbl.gov/modelica</a>,
|
---|
639 | and the development page is
|
---|
640 | <a href=\"https://github.com/lbl-srg/modelica-buildings\">https://github.com/lbl-srg/modelica-buildings</a>.
|
---|
641 | Contributions to further advance the library are welcomed.
|
---|
642 | Contributions may not only be in the form of model development, but also
|
---|
643 | through model use, model testing,
|
---|
644 | requirements definition or providing feedback regarding the model applicability
|
---|
645 | to solve specific problems.
|
---|
646 | </p>
|
---|
647 | </html>"));
|
---|
648 | end Buildings;
|
---|
649 |
|
---|
650 | model MultiMax "Validation model for the MultiMax block"
|
---|
651 | parameter Integer nZon=2 "Size of the input vector";
|
---|
652 |
|
---|
653 | Buildings.Controls.OBC.CDL.Continuous.MultiMax maxVal(nin=2)
|
---|
654 | annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
|
---|
655 | Buildings.Controls.OBC.CDL.Continuous.Sources.Constant con[nZon](k=1)
|
---|
656 | "Block that generates ramp signal"
|
---|
657 | annotation (Placement(transformation(extent={{-58,-10},{-38,10}})));
|
---|
658 |
|
---|
659 | equation
|
---|
660 | connect(con.y, maxVal.u[1:2])
|
---|
661 | annotation (Line(points={{-36,0},{-24,0},{-24,-1},{-12,-1}}, color={0,0,127}));
|
---|
662 | end MultiMax;
|
---|