You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BuildSysPro/BaseClasses/HeatTransfer/Sources/FixedHeatFlow.mo
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,8 @@ equation
45
45
-100},{100,100}}), graphics),
46
46
Documentation(info="<html>
47
47
<p><u><b>Hypothesis and equations</b></u></p>
48
-
<p>This model allows a specified amount of heat flow rate to be "injected" into a thermal system at a given port. The constant amount of heat flow rate Q_flow is given as a parameter. The heat flows into the component to which the component FixedHeatFlow is connected, if parameter Q_flow is positive.</p>
49
-
<p>If parameter alpha is > 0, the heat flow is mulitplied by (1 + alpha*(port.T - T_ref)) in order to simulate temperature dependent losses (which are given an reference temperature T_ref).</p>
48
+
<p>This model allows a specified amount of heat flow rate to be "injected" into a thermal system at a given port. The constant amount of heat flow rate Q_flow is given as a parameter. The heat flows into the component to which the component FixedHeatFlow is connected, if parameter Q_flow is positive.</p>
49
+
<p>If parameter alpha is > 0, the heat flow is mulitplied by (1 + alpha*(port.T - T_ref)) in order to simulate temperature dependent losses (which are given an reference temperature T_ref).</p>
<p>This model allows a specified amount of heat flow rate to be "injected" into a thermal system at a given port. The amount of heat is given by the input signal Q_flow into the model. The heat flows into the component to which the component PrescribedHeatFlow is connected, if the input signal is positive.</p>
52
-
<p>If parameter alpha is > 0, the heat flow is mulitplied by (1 + alpha*(port.T - T_ref)) in order to simulate temperature dependent losses (which are given an reference temperature T_ref).</p>
51
+
<p>This model allows a specified amount of heat flow rate to be "injected" into a thermal system at a given port. The amount of heat is given by the input signal Q_flow into the model. The heat flows into the component to which the component PrescribedHeatFlow is connected, if the input signal is positive.</p>
52
+
<p>If parameter alpha is > 0, the heat flow is mulitplied by (1 + alpha*(port.T - T_ref)) in order to simulate temperature dependent losses (which are given an reference temperature T_ref).</p>
<span style=\"font-family: Courier New,courier;\"> that der(y) is continuous.</span></pre>
119
119
<li>If the table has only <b>one row</b>, no interpolation is performed and the table values of this row are just returned.</li>
120
-
<li>Via parameters <b>startTime</b> and <b>offset</b> the curve defined by the table can be shifted both in time and in the ordinate value. The time instants stored in the table are therefore <b>relative</b> to <b>startTime</b>. If time < startTime, no interpolation is performed and the offset is used as ordinate value for all outputs. </li>
120
+
<li>Via parameters <b>startTime</b> and <b>offset</b> the curve defined by the table can be shifted both in time and in the ordinate value. The time instants stored in the table are therefore <b>relative</b> to <b>startTime</b>. If time < startTime, no interpolation is performed and the offset is used as ordinate value for all outputs. </li>
121
121
<li>The table is implemented in a numerically sound way by generating <b>time events</b> at interval boundaries, in order to not integrate over a discontinuous or not differentiable points. </li>
122
122
<li>For special applications it is sometimes needed to know the minimum and maximum time instant defined in the table as a parameter. For this reason parameters <b>t_min</b> and <b>t_max</b> are provided and can be access from the outside of the table object. </li>
123
123
</ul>
@@ -134,16 +134,16 @@ initial equation
134
134
<span style=\"font-family: Courier New,courier;\"> e.g., time = 5.0, the output y = 23.0 (i.e. extrapolation via last 2 points).</span></pre>
135
135
<p>The table matrix can be defined in the following ways: </p>
136
136
<ol>
137
-
<li>Explicitly supplied as <b>parameter matrix</b> "table", and the other parameters have the following values: </li>
138
-
<pre><span style=\"font-family: Courier New,courier;\"> tableName is "NoName" or has only blanks,</span>
139
-
<span style=\"font-family: Courier New,courier;\"> fileName is "NoName" or has only blanks.</span></pre>
140
-
<li><b>Read</b> from a <b>file</b> "fileName" where the matrix is stored as "tableName". Both ASCII and binary file format is possible. (the ASCII format is described below). It is most convenient to generate the binary file from Matlab (Matlab 4 storage format), e.g., by command </li>
137
+
<li>Explicitly supplied as <b>parameter matrix</b> "table", and the other parameters have the following values: </li>
138
+
<pre><span style=\"font-family: Courier New,courier;\"> tableName is "NoName" or has only blanks,</span>
139
+
<span style=\"font-family: Courier New,courier;\"> fileName is "NoName" or has only blanks.</span></pre>
140
+
<li><b>Read</b> from a <b>file</b> "fileName" where the matrix is stored as "tableName". Both ASCII and binary file format is possible. (the ASCII format is described below). It is most convenient to generate the binary file from Matlab (Matlab 4 storage format), e.g., by command </li>
141
141
<pre><span style=\"font-family: Courier New,courier;\"> save tables.mat tab1 tab2 tab3 -V4</span></pre>
142
142
<p>when the three tables tab1, tab2, tab3 should be used from the model.</p>
143
-
<li>Statically stored in function "usertab" in file "usertab.c". The matrix is identified by "tableName". Parameter fileName = "NoName" or has only blanks.</li>
143
+
<li>Statically stored in function "usertab" in file "usertab.c". The matrix is identified by "tableName". Parameter fileName = "NoName" or has only blanks.</li>
144
144
</ol>
145
-
<p>Table definition methods (1) and (3) do <b>not</b> allocate dynamic memory, and do not access files, whereas method (2) does. Therefore (1) and (3) are suited for hardware-in-the-loop simulation (e.g. with dSpace hardware). When the constant "NO_FILE" is defined in "usertab.c", all parts of the source code of method (2) are removed by the C-preprocessor, such that no dynamic memory allocation and no access to files takes place. </p>
146
-
<p>If tables are read from an ASCII-file, the file need to have the following structure ("-----" is not part of the file content): </p>
145
+
<p>Table definition methods (1) and (3) do <b>not</b> allocate dynamic memory, and do not access files, whereas method (2) does. Therefore (1) and (3) are suited for hardware-in-the-loop simulation (e.g. with dSpace hardware). When the constant "NO_FILE" is defined in "usertab.c", all parts of the source code of method (2) are removed by the C-preprocessor, such that no dynamic memory allocation and no access to files takes place. </p>
146
+
<p>If tables are read from an ASCII-file, the file need to have the following structure ("-----" is not part of the file content): </p>
<p>Note, that the first two characters in the file need to be "#1". Afterwards, the corresponding matrix has to be declared with type, name and actual dimensions. Finally, in successive rows of the file, the elements of the matrix have to be given. Several matrices may be defined one after another. </p>
164
+
<p>Note, that the first two characters in the file need to be "#1". Afterwards, the corresponding matrix has to be declared with type, name and actual dimensions. Finally, in successive rows of the file, the elements of the matrix have to be given. Several matrices may be defined one after another. </p>
<li>Blocage des paramètres propres aux scénarios perso lorsque les scénarios pré-établis sont sélectionnés (AICVF et M324)</li>
118
-
<li>Remplacement du modèle CombiStep1Ds par le nouveau scénario "FctEscalierMat"</li>
118
+
<li>Remplacement du modèle CombiStep1Ds par le nouveau scénario "FctEscalierMat"</li>
119
119
</ul></p>
120
120
<p><br>Aurélie Kaemmerlen 10/2013 : Suppression des paramètres en protected avec les équations conditionnelles définissant les chemins vers les fichiers AICVF et M324 - Donnait une erreur lors de l'exécution après chiffrement du modèle !</p>
Copy file name to clipboardExpand all lines: BuildSysPro/BoundaryConditions/Scenarios/ScenarioRT.mo
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -534,11 +534,11 @@ Regulation 2012"),
534
534
<td><p>Water vapour generation out of occupancy and lighting</p><p>1 = presence</p><p>0 = absence</p><p>Possible modulation between 0 and 1</p></td>
535
535
</tr>
536
536
</table></p>
537
-
<p>Scenarios describing the occupancy and specific uses provide "physical" information (superior ports of the model). The heat loads can be directly connected to an air node, and vapors inputs are in [kg steam/sec]. These are expressed through a RealOutput connector (causal modelling) and will then be adapted to the connectors selected for the multi-physics modelling.</p>
537
+
<p>Scenarios describing the occupancy and specific uses provide "physical" information (superior ports of the model). The heat loads can be directly connected to an air node, and vapors inputs are in [kg steam/sec]. These are expressed through a RealOutput connector (causal modelling) and will then be adapted to the connectors selected for the multi-physics modelling.</p>
538
538
<p>The use of thermal ports is conditioned by the Booleans (<code>UtilApportThOcc, UtilApportThUsageSpe, UtilApportThEclairage</code>). In situations where these ports are not used but the Booleans are set to TRUE, the following error occurs:</p>
539
539
<p><i><span style=\"color: #ff0000;\">Error: Singular inconsistent scalar system for scenarioRT.ApportsThOccupants.T = (scenarioRT.prescribedHeatFlow.Q_flow*(1-scenarioRT.prescribedHeatFlow.alpha*scenarioRT.prescribedHeatFlow.T_ref))/( -scenarioRT.prescribedHeatFlow.Q_flow*scenarioRT.prescribedHeatFlow.alpha) = .../-0</span></i></p>
540
540
<p>To fix the problem change the value of concerned booleans.</p>
541
-
<p>Right ports of the model correspond to "controls". They can be connected to models such as ventilation, hot water, lighting, heating and cooling or comfort analysis.</p>
541
+
<p>Right ports of the model correspond to "controls". They can be connected to models such as ventilation, hot water, lighting, heating and cooling or comfort analysis.</p>
542
542
<p><u><b>Known limits / Use precautions</b></u></p>
Copy file name to clipboardExpand all lines: BuildSysPro/BoundaryConditions/Scenarios/StepFunctionMat.mo
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -189,15 +189,15 @@ with n rows and two columns and a second table <code>table2 [i, j]</code> n rows
189
189
<ul>
190
190
<li>the interpolation is effcient because the search for a new interpolation starts from the last interval used for the previous interpolation</li>
191
191
<li>if the table has only one row, its values are returned regardless of the input signal value</li>
192
-
<li>if the value of the input signal <code>u</code> is outside the range defined by the first column of the table, for example, u> table [size (table, 1), 1] or u <table [1, 1], the corresponding value is determined by linear extrapolation from the first or last two points of the table</li>
192
+
<li>if the value of the input signal <code>u</code> is outside the range defined by the first column of the table, for example, u> table [size (table, 1), 1] or u <table [1, 1], the corresponding value is determined by linear extrapolation from the first or last two points of the table</li>
193
193
<li>the first column must be strictly monotonic</li>
194
194
</ul>
195
195
<p>A table can be defined as follows:</p>
196
196
<ol>
197
-
<li>By explicit entry of parameter "table", and other parameters must be set as follows:</li>
198
-
<pre> tableName = "NoName" or with blanks,
199
-
fileName = "NoName" or with blanks.</pre>
200
-
<li>By reading a file "fileName" where the matrix is stored with the name specified in the parameter "tableName". Both ASCII and binary formats are possible. See details and additional information in the <a href=\"Modelica.Blocks.Tables.CombiTable1Ds\"><code>Modelica.Blocks.Tables.CombiTable1Ds</code></a> documentation</li>
197
+
<li>By explicit entry of parameter "table", and other parameters must be set as follows:</li>
198
+
<pre> tableName = "NoName" or with blanks,
199
+
fileName = "NoName" or with blanks.</pre>
200
+
<li>By reading a file "fileName" where the matrix is stored with the name specified in the parameter "tableName". Both ASCII and binary formats are possible. See details and additional information in the <a href=\"Modelica.Blocks.Tables.CombiTable1Ds\"><code>Modelica.Blocks.Tables.CombiTable1Ds</code></a> documentation</li>
Copy file name to clipboardExpand all lines: BuildSysPro/BoundaryConditions/Scenarios/StepFunctionMatPeriodic.mo
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -190,15 +190,15 @@ with n rows and two columns and a second table <code>table2 [i, j]</code> n rows
190
190
<ul>
191
191
<li>the interpolation is effcient because the search for a new interpolation starts from the last interval used for the previous interpolation</li>
192
192
<li>if the table has only one row, its values are returned regardless of the input signal value</li>
193
-
<li>if the value of the input signal <code>u</code> is outside the range defined by the first column of the table, for example, u> table [size (table, 1), 1] or u <table [1, 1], the corresponding value is determined by linear extrapolation from the first or last two points of the table</li>
193
+
<li>if the value of the input signal <code>u</code> is outside the range defined by the first column of the table, for example, u> table [size (table, 1), 1] or u <table [1, 1], the corresponding value is determined by linear extrapolation from the first or last two points of the table</li>
194
194
<li>the first column must be strictly monotonic</li>
195
195
</ul>
196
196
<p>A table can be defined as follows:</p>
197
197
<ol>
198
-
<li>By explicit entry of parameter "table", and other parameters must be set as follows:</li>
199
-
<pre> tableName = "NoName" or with blanks,
200
-
fileName = "NoName" or with blanks.</pre>
201
-
<li>By reading a file "fileName" where the matrix is stored with the name specified in the parameter "tableName". Both ASCII and binary formats are possible. See details and additional information in the <a href=\"Modelica.Blocks.Tables.CombiTable1Ds\"><code>Modelica.Blocks.Tables.CombiTable1Ds</code></a> documentation</li>
198
+
<li>By explicit entry of parameter "table", and other parameters must be set as follows:</li>
199
+
<pre> tableName = "NoName" or with blanks,
200
+
fileName = "NoName" or with blanks.</pre>
201
+
<li>By reading a file "fileName" where the matrix is stored with the name specified in the parameter "tableName". Both ASCII and binary formats are possible. See details and additional information in the <a href=\"Modelica.Blocks.Tables.CombiTable1Ds\"><code>Modelica.Blocks.Tables.CombiTable1Ds</code></a> documentation</li>
0 commit comments