Skip to content

Commit 88d454e

Browse files
committed
Checked out files from patch_userGuide_format
1 parent 2f4c3e4 commit 88d454e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+548
-1304
lines changed

Buildings/Resources/Documentation/userGuide/build/html/_sources/bestPractice.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ We will now explain how state variables, such as temperature and pressure, can b
111111

112112
Consider a model consisting of a mass flow source ``Modelica.Fluid.Sources.MassFlowSource_T``, a fluid volume ``Buildings.Fluid.MixingVolumes.MixingVolume`` and
113113
a fixed boundary condition ``Buildings.Fluid.Sources.Boundary_pT``,
114-
connected in series as shown in the figure below. Note that the instance ``bou``
115-
implements an equation that sets the medium pressure at its port, i.e., the port pressure ``bou.ports.p`` is fixed.
114+
connected in series as shown in the figure below. Note that the instance ``sin``
115+
implements an equation that sets the medium pressure at its port, i.e., the port pressure ``sin.ports.p`` is fixed.
116116

117117
.. figure:: img/MixingVolumeInitialization.*
118118
:width: 300px

Buildings/Resources/Documentation/userGuide/build/html/_sources/development.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,14 @@ The following rules need to be followed, in addition to the guidelines described
649649
$ node app.js -f Buildings/Controls/OBC/ASHRAE/PrimarySystem/{path to package} -o json -m cdl
650650
651651
652+
.. _sec_template:
653+
654+
HVAC and control templates
655+
--------------------------
656+
657+
Developing HVAC and control templates, such as for `Buildings.Temlates`, is an advanced topic
658+
which is explained in http://lbl-srg.github.io/modelica-buildings-templates/.
659+
652660
.. _sec_val:
653661

654662
Validation and unit tests

Buildings/Resources/Documentation/userGuide/build/html/_sources/gettingStarted.rst.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Literature for Users
1010
--------------------
1111
The following books are useful for new users to get started:
1212

13+
* Modelica Buildings Library trainings documentation at https://simulationresearch.lbl.gov/modelica/training.html.
1314
* The online book with interactive examples of Michael Tiller at https://mbe.modelica.university/.
1415
* The books by Michael Tiller [Til2001]_ and Peter Fritzson ([Fri2011]_ and [Fri2004]_).
1516
* The tutorials that are listed at https://modelica.org/publications.
@@ -27,9 +28,15 @@ as well as tools for workflow automation.
2728
It also contains numerous examples that apply these technologies to the
2829
design and operation of building and community energy systems.
2930

31+
Training Videos
32+
---------------
33+
34+
Some of the Modelica Buildings Library trainings has posted recordings at https://simulationresearch.lbl.gov/modelica/training.html.
3035

3136
Spoken tutorials for beginners are available at https://spoken-tutorial.org/tutorial-search/?search_foss=OpenModelica&search_language=English.
3237

38+
Modelon has various online tutorials, including getting started with the Modelica Buildings Library, at
39+
https://help.modelon.com/latest/videos/video_overview/.
3340

3441
Running the First Simulations
3542
-----------------------------
@@ -72,7 +79,7 @@ Hence, we also recommend reading the paper about the standardization of thermo-f
7279

7380
The `Modelica Web Reference <https://webref.modelica.university>`_ gives a concise overview, explanation and further links about the Modelica language.
7481

75-
See :numref:`sec_sty_gui` for conventions and guidelines of the `Buildings` library.
82+
See :numref:`Development` for instructions, conventions and guidelines for contributing to the `Buildings` library.
7683

7784

7885
References
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/* Compatability shim for jQuery and underscores.js.
2+
*
3+
* Copyright Sphinx contributors
4+
* Released under the two clause BSD licence
5+
*/
6+
7+
/**
8+
* small helper function to urldecode strings
9+
*
10+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
11+
*/
12+
jQuery.urldecode = function(x) {
13+
if (!x) {
14+
return x
15+
}
16+
return decodeURIComponent(x.replace(/\+/g, ' '));
17+
};
18+
19+
/**
20+
* small helper function to urlencode strings
21+
*/
22+
jQuery.urlencode = encodeURIComponent;
23+
24+
/**
25+
* This function returns the parsed url parameters of the
26+
* current request. Multiple values per key are supported,
27+
* it will always return arrays of strings for the value parts.
28+
*/
29+
jQuery.getQueryParameters = function(s) {
30+
if (typeof s === 'undefined')
31+
s = document.location.search;
32+
var parts = s.substr(s.indexOf('?') + 1).split('&');
33+
var result = {};
34+
for (var i = 0; i < parts.length; i++) {
35+
var tmp = parts[i].split('=', 2);
36+
var key = jQuery.urldecode(tmp[0]);
37+
var value = jQuery.urldecode(tmp[1]);
38+
if (key in result)
39+
result[key].push(value);
40+
else
41+
result[key] = [value];
42+
}
43+
return result;
44+
};
45+
46+
/**
47+
* highlight a given string on a jquery object by wrapping it in
48+
* span elements with the given class name.
49+
*/
50+
jQuery.fn.highlightText = function(text, className) {
51+
function highlight(node, addItems) {
52+
if (node.nodeType === 3) {
53+
var val = node.nodeValue;
54+
var pos = val.toLowerCase().indexOf(text);
55+
if (pos >= 0 &&
56+
!jQuery(node.parentNode).hasClass(className) &&
57+
!jQuery(node.parentNode).hasClass("nohighlight")) {
58+
var span;
59+
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
60+
if (isInSVG) {
61+
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
62+
} else {
63+
span = document.createElement("span");
64+
span.className = className;
65+
}
66+
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
67+
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
68+
document.createTextNode(val.substr(pos + text.length)),
69+
node.nextSibling));
70+
node.nodeValue = val.substr(0, pos);
71+
if (isInSVG) {
72+
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
73+
var bbox = node.parentElement.getBBox();
74+
rect.x.baseVal.value = bbox.x;
75+
rect.y.baseVal.value = bbox.y;
76+
rect.width.baseVal.value = bbox.width;
77+
rect.height.baseVal.value = bbox.height;
78+
rect.setAttribute('class', className);
79+
addItems.push({
80+
"parent": node.parentNode,
81+
"target": rect});
82+
}
83+
}
84+
}
85+
else if (!jQuery(node).is("button, select, textarea")) {
86+
jQuery.each(node.childNodes, function() {
87+
highlight(this, addItems);
88+
});
89+
}
90+
}
91+
var addItems = [];
92+
var result = this.each(function() {
93+
highlight(this, addItems);
94+
});
95+
for (var i = 0; i < addItems.length; ++i) {
96+
jQuery(addItems[i].parent).before(addItems[i].target);
97+
}
98+
return result;
99+
};
100+
101+
/*
102+
* backward compatibility for jQuery.browser
103+
* This will be supported until firefox bug is fixed.
104+
*/
105+
if (!jQuery.browser) {
106+
jQuery.uaMatch = function(ua) {
107+
ua = ua.toLowerCase();
108+
109+
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
110+
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
111+
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
112+
/(msie) ([\w.]+)/.exec(ua) ||
113+
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
114+
[];
115+
116+
return {
117+
browser: match[ 1 ] || "",
118+
version: match[ 2 ] || "0"
119+
};
120+
};
121+
jQuery.browser = {};
122+
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
123+
}

Buildings/Resources/Documentation/userGuide/build/html/_static/custom.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@ body{
6363
vertical-align: middle;
6464
}
6565

66-
/* Scale down logo on narrow screens */
67-
@media (max-width: 768px) {
68-
.navbar-logo {
69-
max-height: 45px;
70-
height: 45px;
71-
margin-right: 15px;
72-
}
73-
}
7466

7567
.navbar .navbar-nav{
7668
background: #f8f8f8;
@@ -377,3 +369,13 @@ table.citation{
377369
}
378370
/* End stylesheet from main web site -------------------- */
379371
/* ------------------------------------------------------ */
372+
373+
374+
/* Fix mobile dropdown expansion for globaltoc's nested <ul> */
375+
@media (max-width: 767px) {
376+
.navbar-logo {
377+
max-height: 45px;
378+
height: 45px;
379+
margin-right: 15px;
380+
}
381+
}

Buildings/Resources/Documentation/userGuide/build/html/_static/dropdown-fix.js

Lines changed: 0 additions & 155 deletions
This file was deleted.

Buildings/Resources/Documentation/userGuide/build/html/_static/jquery.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)