Repository navigation
Expand file tree
/
Copy pathProcessRoutingHBV_8h_source.html
More file actions
196 lines (194 loc) · 19.1 KB
/
Copy pathProcessRoutingHBV_8h_source.html
File metadata and controls
196 lines (194 loc) · 19.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!-- HTML header for doxygen 1.9.5-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hydrobricks: /github/workspace/core/src/processes/ProcessRoutingHBV.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
</script>
<script type="text/javascript" src="doxygen-awesome-interactive-toc.js"></script>
<script type="text/javascript">
DoxygenAwesomeInteractiveToc.init()
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">hydrobricks
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function(){initNavTree('ProcessRoutingHBV_8h_source.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">ProcessRoutingHBV.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef HYDROBRICKS_PROCESS_ROUTING_HBV_H</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define HYDROBRICKS_PROCESS_ROUTING_HBV_H</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "Includes.h"</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include "ProcessOutflow.h"</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="foldopen" id="foldopen00032" data-start="{" data-end="};">
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classProcessRoutingHBV.html"> 32</a></span><span class="keyword">class </span><a class="code hl_class" href="classProcessRoutingHBV.html">ProcessRoutingHBV</a> : <span class="keyword">public</span> <a class="code hl_class" href="classProcessOutflow.html">ProcessOutflow</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classProcessRoutingHBV.html">ProcessRoutingHBV</a>(<a class="code hl_class" href="classWaterContainer.html">WaterContainer</a>* container);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_class" href="classProcessRoutingHBV.html">~ProcessRoutingHBV</a>() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classProcessRoutingHBV.html#af6f554cca85dba4024969f03c3b4ecf2">RegisterProcessSettings</a>(<a class="code hl_class" href="classSettingsModel.html">SettingsModel</a>* modelSettings);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classProcessRoutingHBV.html#a03a9ad505d1b625397cefe800c5a0fea">IsValid</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classProcessRoutingHBV.html#a0c5cc3b8bbb2202bfc4e8e4b90094629">SetParameters</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structProcessSettings.html">ProcessSettings</a>& processSettings) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classProcessRoutingHBV.html#a836803ff2aecad2f303ae09e29d62a7d">Reset</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classProcessRoutingHBV.html#a7522043867fbe26f2a776bbe5bfb4c4c">Finalize</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="foldopen" id="foldopen00073" data-start="{" data-end="}">
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classProcessRoutingHBV.html#a4e7b55879e76b641533f5230d128bafd"> 73</a></span> [[nodiscard]] <span class="keyword">const</span> vecDouble& <a class="code hl_function" href="classProcessRoutingHBV.html#a4e7b55879e76b641533f5230d128bafd">GetChangeRates</a>()<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classProcessRoutingHBV.html#a59859206aa5b1d155279710e790cc2ef">GetRates</a>();</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> }</div>
</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">double</span>* <a class="code hl_function" href="classProcessRoutingHBV.html#ad091b9ea4c3faf93604c56a41d37aba0">GetValuePointer</a>(std::string_view name) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">const</span> <span class="keywordtype">float</span>* _maxbas; <span class="comment">// base of the triangular weighting function [d]</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// Delivery schedule (slot j: water due j timesteps from now) and pre-computed ordinates</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> vecDouble _stuh;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> vecDouble _uhOrd;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordtype">double</span> _lastMaxbas;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// Time step the ordinates were built for. The structure is built before the timer is</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="comment">// initialized, so the first computation falls back on a daily step; the ordinates are</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// rebuilt as soon as the real step is known.</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">double</span> _lastTimeStep;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="comment">// End-of-step container content of the previous timestep (to measure the committed inflow)</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordtype">double</span> _previousContent;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// In-transit water (scheduled, not yet delivered) for water balance logging</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordtype">double</span> _processStorage;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">const</span> vecDouble& <a class="code hl_function" href="classProcessRoutingHBV.html#a59859206aa5b1d155279710e790cc2ef">GetRates</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classProcessRoutingHBV.html#ac70b71810391ce2ac5e13924ea17957e">_recomputeUH</a>();</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classProcessRoutingHBV.html#ae87e20be6665bdd7ef30daf6c86e0317">_cumulativeWeight</a>(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> maxbas);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span>};</div>
</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span><span class="preprocessor">#endif </span><span class="comment">// HYDROBRICKS_PROCESS_ROUTING_HBV_H</span></div>
<div class="ttc" id="aclassProcessOutflow_html"><div class="ttname"><a href="classProcessOutflow.html">ProcessOutflow</a></div><div class="ttdef"><b>Definition</b> ProcessOutflow.h:8</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html"><div class="ttname"><a href="classProcessRoutingHBV.html">ProcessRoutingHBV</a></div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.h:32</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_a03a9ad505d1b625397cefe800c5a0fea"><div class="ttname"><a href="classProcessRoutingHBV.html#a03a9ad505d1b625397cefe800c5a0fea">ProcessRoutingHBV::IsValid</a></div><div class="ttdeci">bool IsValid() const override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:25</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_a0c5cc3b8bbb2202bfc4e8e4b90094629"><div class="ttname"><a href="classProcessRoutingHBV.html#a0c5cc3b8bbb2202bfc4e8e4b90094629">ProcessRoutingHBV::SetParameters</a></div><div class="ttdeci">void SetParameters(const ProcessSettings &processSettings) override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:37</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_a4e7b55879e76b641533f5230d128bafd"><div class="ttname"><a href="classProcessRoutingHBV.html#a4e7b55879e76b641533f5230d128bafd">ProcessRoutingHBV::GetChangeRates</a></div><div class="ttdeci">const vecDouble & GetChangeRates() override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.h:73</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_a59859206aa5b1d155279710e790cc2ef"><div class="ttname"><a href="classProcessRoutingHBV.html#a59859206aa5b1d155279710e790cc2ef">ProcessRoutingHBV::GetRates</a></div><div class="ttdeci">const vecDouble & GetRates() override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:62</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_a7522043867fbe26f2a776bbe5bfb4c4c"><div class="ttname"><a href="classProcessRoutingHBV.html#a7522043867fbe26f2a776bbe5bfb4c4c">ProcessRoutingHBV::Finalize</a></div><div class="ttdeci">void Finalize() override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:82</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_a836803ff2aecad2f303ae09e29d62a7d"><div class="ttname"><a href="classProcessRoutingHBV.html#a836803ff2aecad2f303ae09e29d62a7d">ProcessRoutingHBV::Reset</a></div><div class="ttdeci">void Reset() override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:43</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_ac70b71810391ce2ac5e13924ea17957e"><div class="ttname"><a href="classProcessRoutingHBV.html#ac70b71810391ce2ac5e13924ea17957e">ProcessRoutingHBV::_recomputeUH</a></div><div class="ttdeci">void _recomputeUH()</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:113</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_ad091b9ea4c3faf93604c56a41d37aba0"><div class="ttname"><a href="classProcessRoutingHBV.html#ad091b9ea4c3faf93604c56a41d37aba0">ProcessRoutingHBV::GetValuePointer</a></div><div class="ttdeci">double * GetValuePointer(std::string_view name) override</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:51</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_ae87e20be6665bdd7ef30daf6c86e0317"><div class="ttname"><a href="classProcessRoutingHBV.html#ae87e20be6665bdd7ef30daf6c86e0317">ProcessRoutingHBV::_cumulativeWeight</a></div><div class="ttdeci">static double _cumulativeWeight(double t, double maxbas)</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:140</div></div>
<div class="ttc" id="aclassProcessRoutingHBV_html_af6f554cca85dba4024969f03c3b4ecf2"><div class="ttname"><a href="classProcessRoutingHBV.html#af6f554cca85dba4024969f03c3b4ecf2">ProcessRoutingHBV::RegisterProcessSettings</a></div><div class="ttdeci">static void RegisterProcessSettings(SettingsModel *modelSettings)</div><div class="ttdef"><b>Definition</b> ProcessRoutingHBV.cpp:18</div></div>
<div class="ttc" id="aclassSettingsModel_html"><div class="ttname"><a href="classSettingsModel.html">SettingsModel</a></div><div class="ttdef"><b>Definition</b> SettingsModel.h:87</div></div>
<div class="ttc" id="aclassWaterContainer_html"><div class="ttname"><a href="classWaterContainer.html">WaterContainer</a></div><div class="ttdef"><b>Definition</b> WaterContainer.h:10</div></div>
<div class="ttc" id="astructProcessSettings_html"><div class="ttname"><a href="structProcessSettings.html">ProcessSettings</a></div><div class="ttdef"><b>Definition</b> SettingsModel.h:44</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_c330bf96caf2ae7a48d1d88aea65ed18.html">processes</a></li><li class="navelem"><b>ProcessRoutingHBV.h</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
</ul>
</div>
</body>
</html>