-
Notifications
You must be signed in to change notification settings - Fork 2
/
active__set_8h_source.html
278 lines (276 loc) · 39.7 KB
/
active__set_8h_source.html
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ug4: ugbase/lib_algebra/active_set/active_set.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="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
</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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ug4
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('active__set_8h_source.html',''); initResizable(); });
/* @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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">active_set.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="active__set_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2013-2015: G-CSC, Goethe University Frankfurt</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Author: Raphael Prohl</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * </span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This file is part of UG4.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * </span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * UG4 is free software: you can redistribute it and/or modify it under the</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * terms of the GNU Lesser General Public License version 3 (as published by the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Free Software Foundation) with the following additional attribution</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * requirements (according to LGPL/GPL v3 §7):</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * </span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * (1) The following notice must be displayed in the Appropriate Legal Notices</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * of covered and combined works: "Based on UG4 (www.ug4.org/license)".</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * </span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * (2) The following notice must be displayed at a prominent place in the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * </span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * (3) The following bibliography is recommended for citation and must be</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * preserved in all covered files:</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * parallel geometric multigrid solver on hierarchically distributed grids.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * Computing and visualization in science 16, 4 (2013), 151-164"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * flexible software system for simulating pde based models on high performance</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * computers. Computing and visualization in science 16, 4 (2013), 165-179"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * </span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#ifndef ACTIVE_SET_H_</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#define ACTIVE_SET_H_</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="lagrange__multiplier__disc__interface_8h.html">lib_algebra/active_set/lagrange_multiplier_disc_interface.h</a>"</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="grid__function_8h.html">lib_disc/function_spaces/grid_function.h</a>"</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace </span><a class="code" href="namespaceug.html">ug</a> {</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">template</span> <<span class="keyword">typename</span> TDomain, <span class="keyword">typename</span> TAlgebra></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html"> 99</a></span> <span class="keyword">class </span><a class="code" href="classug_1_1_active_set.html">ActiveSet</a></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a6c85b803822310d9c813a0ec26c64ace"> 103</a></span>  <span class="keyword">typedef</span> TAlgebra <a class="code" href="classug_1_1_active_set.html#a6c85b803822310d9c813a0ec26c64ace">algebra_type</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a3b801c631b987d6557c21dad6c8d074e"> 106</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> algebra_type::matrix_type <a class="code" href="classug_1_1_active_set.html#a3b801c631b987d6557c21dad6c8d074e">matrix_type</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a9004ef6b25260540e71c5da6adb8b0bf"> 109</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> algebra_type::vector_type <a class="code" href="classug_1_1_active_set.html#a9004ef6b25260540e71c5da6adb8b0bf">vector_type</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a04039ab44cfcb0470d72a9e93b9e47b0"> 112</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="sparsematrix__interface_8h.html#a265a253612b46abed17c61b0a5e5ce30">vector_type::value_type</a> <a class="code" href="classug_1_1_active_set.html#a04039ab44cfcb0470d72a9e93b9e47b0">value_type</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a18ed28cda171fa80d56a420d49e1c925"> 115</a></span>  <span class="keyword">typedef</span> <a class="code" href="classug_1_1_grid_function.html">GridFunction<TDomain, TAlgebra></a> <a class="code" href="classug_1_1_active_set.html#a18ed28cda171fa80d56a420d49e1c925">function_type</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a763bd5a328b6620df8f8a8edd603ee62"> 118</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structug_1_1domain__traits.html">domain_traits<TDomain::dim>::grid_base_object</a> <a class="code" href="classug_1_1_active_set.html#a763bd5a328b6620df8f8a8edd603ee62">TBaseElem</a>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a09ea5010498f86b944671d0462d308a2"> 121</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="codeRef" href="../plugins/group__small__strain__mechanics.html#ga425548c7b0fe054612f37d1f3a4826b6">dim</a> = <a class="codeRef" href="../plugins/group__small__strain__mechanics.html#ga425548c7b0fe054612f37d1f3a4826b6">TDomain::dim</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a083e40d805f651852b7f525cb81d7f4f"> 125</a></span>  <a class="code" href="classug_1_1_active_set.html#a083e40d805f651852b7f525cb81d7f4f">ActiveSet</a>() : m_bObs(false), m_spLagMultDisc(NULL) {</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="comment">// specifies the number of fcts</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">//value_type u_val;</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">//m_nrFcts = GetSize(u_val); //ToDo: This field is only used in check_dist_to_obs which is commented out. Remove it completely?</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  };</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a0c5c92da8f11b4b187fe4576451c6e66"> 132</a></span>  <span class="keywordtype">void</span> <a class="code" href="classug_1_1_active_set.html#a0c5c92da8f11b4b187fe4576451c6e66">set_obstacle</a>(<a class="code" href="class_const_smart_ptr.html">ConstSmartPtr<function_type></a> obs) {</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  m_spObs = obs; m_bObs = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// if 'obs'-gridfunction is defined on a subset,</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="comment">// which is not a boundary-subset -> UG_LOG</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a4cf0f2a8ff1a9d00c3976a150cd8c77f"> 139</a></span>  <span class="keywordtype">void</span> <a class="code" href="classug_1_1_active_set.html#a4cf0f2a8ff1a9d00c3976a150cd8c77f">set_lagrange_multiplier_disc</a>(</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="class_smart_ptr.html">SmartPtr</a><<a class="code" href="classug_1_1_i_lagrange_multiplier_disc.html">ILagrangeMultiplierDisc<TDomain, function_type></a> > lagMultDisc)</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  {m_spLagMultDisc = lagMultDisc;};</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">void</span> prepare(function_type& u);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="comment">//bool check_dist_to_obs(vector_type& u);</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> TElem, <span class="keyword">typename</span> TIterator></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">void</span> active_index_elem(TIterator iterBegin,</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  TIterator iterEnd, function_type& u,</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  function_type& rhs, function_type& lagrangeMult);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">bool</span> active_index(function_type& u, function_type& rhs, function_type& lagrangeMult,</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  function_type& gap);</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">void</span> set_dirichlet_rows(<a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#a10498f9373a78e4bcc071def1baee06d">matrix_type</a>& mat);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">void</span> lagrange_multiplier(function_type& lagrangeMult, <span class="keyword">const</span> function_type& u);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordtype">void</span> residual_lagrange_mult(<a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a>& lagMult, <span class="keyword">const</span> <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#a10498f9373a78e4bcc071def1baee06d">matrix_type</a>& mat,</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">const</span> <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a>& u, <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a>& rhs);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> TElem, <span class="keyword">typename</span> TIterator></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">bool</span> check_conv_elem(TIterator iterBegin,</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  TIterator iterEnd, function_type& u, <span class="keyword">const</span> function_type& lambda);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordtype">bool</span> check_conv(function_type& u, <span class="keyword">const</span> function_type& lambda, <span class="keyword">const</span> <span class="keywordtype">size_t</span> step);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordtype">bool</span> check_inequ(<span class="keyword">const</span> <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#a10498f9373a78e4bcc071def1baee06d">matrix_type</a>& mat, <span class="keyword">const</span> <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a>& u,</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">const</span> <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a>& lagrangeMult, <span class="keyword">const</span> <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a>& rhs);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> TElem, <span class="keyword">typename</span> TIterator></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordtype">void</span> lagrange_mat_inv_elem(TIterator iterBegin,</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  TIterator iterEnd, <a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#a10498f9373a78e4bcc071def1baee06d">matrix_type</a>& lagrangeMatInv);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordtype">void</span> lagrange_mat_inv(<a class="codeRef" href="../plugins/namespaceug_1_1_demo_plugin.html#a10498f9373a78e4bcc071def1baee06d">matrix_type</a>& lagrangeMatInv);</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  </div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a241e25ef6dc91ee413adf04f0745386c"> 186</a></span>  <a class="code" href="class_smart_ptr.html">SmartPtr<DoFDistribution></a> <a class="code" href="classug_1_1_active_set.html#a241e25ef6dc91ee413adf04f0745386c">m_spDD</a>;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a70f0a48fc41a16e084feed81d6469f19"> 187</a></span>  <a class="code" href="class_smart_ptr.html">SmartPtr<TDomain></a> <a class="code" href="classug_1_1_active_set.html#a70f0a48fc41a16e084feed81d6469f19">m_spDom</a>;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">//size_t m_nrFcts; //ToDo: This field is only used in check_dist_to_obs which is commented out. Remove it completely?</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#adf611ba71ad3377cab5ec40325c5eea6"> 193</a></span>  <a class="code" href="class_const_smart_ptr.html">ConstSmartPtr<function_type></a> <a class="code" href="classug_1_1_active_set.html#adf611ba71ad3377cab5ec40325c5eea6">m_spObs</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#aa4cf12019f15d164f8833348b9968266"> 194</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classug_1_1_active_set.html#aa4cf12019f15d164f8833348b9968266">m_bObs</a>;</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#ad973705ffabacd9cd07d8d9e3e7d8d9e"> 197</a></span>  <a class="code" href="class_smart_ptr.html">SmartPtr<ILagrangeMultiplierDisc<TDomain, function_type></a> > <a class="code" href="classug_1_1_active_set.html#ad973705ffabacd9cd07d8d9e3e7d8d9e">m_spLagMultDisc</a>;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#af7bc0a333c559be6a865069540550c65"> 200</a></span>  vector<int> <a class="code" href="classug_1_1_active_set.html#af7bc0a333c559be6a865069540550c65">m_vActiveSubsets</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="comment">/*template <typename TElem></span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"> struct activeElemAndLocInd{</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> TElem* pElem; // pointer to active elem</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> vector<vector<size_t> > vlocInd; // vector of local active indices</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> };*/</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a8b4e1f203932f5b92082c4417982cedc"> 209</a></span>  vector<DoFIndex> <a class="code" href="classug_1_1_active_set.html#a8b4e1f203932f5b92082c4417982cedc">m_vActiveSetGlob</a>;</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classug_1_1_active_set.html#a22bee43866380a681dcae55b19799529"> 211</a></span>  vector<DoFIndex> <a class="code" href="classug_1_1_active_set.html#a22bee43866380a681dcae55b19799529">m_vActiveSetGlobOld</a>;</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> };</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> } <span class="comment">// namespace ug</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="preprocessor">#include "<a class="code" href="active__set__impl_8h.html">active_set_impl.h</a>"</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="preprocessor">#endif </span><span class="comment">/* ACTIVE_SET_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aactive__set__impl_8h_html"><div class="ttname"><a href="active__set__impl_8h.html">active_set_impl.h</a></div></div>
<div class="ttc" id="aclass_const_smart_ptr_html"><div class="ttname"><a href="class_const_smart_ptr.html">ConstSmartPtr</a></div><div class="ttdef"><b>Definition:</b> smart_pointer.h:296</div></div>
<div class="ttc" id="aclass_smart_ptr_html"><div class="ttname"><a href="class_smart_ptr.html">SmartPtr</a></div><div class="ttdef"><b>Definition:</b> smart_pointer.h:108</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html"><div class="ttname"><a href="classug_1_1_active_set.html">ug::ActiveSet</a></div><div class="ttdoc">Active Set method.</div><div class="ttdef"><b>Definition:</b> active_set.h:100</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a04039ab44cfcb0470d72a9e93b9e47b0"><div class="ttname"><a href="classug_1_1_active_set.html#a04039ab44cfcb0470d72a9e93b9e47b0">ug::ActiveSet::value_type</a></div><div class="ttdeci">vector_type::value_type value_type</div><div class="ttdoc">Type of algebra value.</div><div class="ttdef"><b>Definition:</b> active_set.h:112</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a083e40d805f651852b7f525cb81d7f4f"><div class="ttname"><a href="classug_1_1_active_set.html#a083e40d805f651852b7f525cb81d7f4f">ug::ActiveSet::ActiveSet</a></div><div class="ttdeci">ActiveSet()</div><div class="ttdoc">constructor</div><div class="ttdef"><b>Definition:</b> active_set.h:125</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a0c5c92da8f11b4b187fe4576451c6e66"><div class="ttname"><a href="classug_1_1_active_set.html#a0c5c92da8f11b4b187fe4576451c6e66">ug::ActiveSet::set_obstacle</a></div><div class="ttdeci">void set_obstacle(ConstSmartPtr< function_type > obs)</div><div class="ttdoc">sets obstacle gridfunction, which limits the solution u</div><div class="ttdef"><b>Definition:</b> active_set.h:132</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a18ed28cda171fa80d56a420d49e1c925"><div class="ttname"><a href="classug_1_1_active_set.html#a18ed28cda171fa80d56a420d49e1c925">ug::ActiveSet::function_type</a></div><div class="ttdeci">GridFunction< TDomain, TAlgebra > function_type</div><div class="ttdoc">Type of grid function.</div><div class="ttdef"><b>Definition:</b> active_set.h:115</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a22bee43866380a681dcae55b19799529"><div class="ttname"><a href="classug_1_1_active_set.html#a22bee43866380a681dcae55b19799529">ug::ActiveSet::m_vActiveSetGlobOld</a></div><div class="ttdeci">vector< DoFIndex > m_vActiveSetGlobOld</div><div class="ttdoc">vector remembering the active set of global DoFIndices</div><div class="ttdef"><b>Definition:</b> active_set.h:211</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a241e25ef6dc91ee413adf04f0745386c"><div class="ttname"><a href="classug_1_1_active_set.html#a241e25ef6dc91ee413adf04f0745386c">ug::ActiveSet::m_spDD</a></div><div class="ttdeci">SmartPtr< DoFDistribution > m_spDD</div><div class="ttdoc">pointer to the DofDistribution on the whole domain</div><div class="ttdef"><b>Definition:</b> active_set.h:186</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a3b801c631b987d6557c21dad6c8d074e"><div class="ttname"><a href="classug_1_1_active_set.html#a3b801c631b987d6557c21dad6c8d074e">ug::ActiveSet::matrix_type</a></div><div class="ttdeci">algebra_type::matrix_type matrix_type</div><div class="ttdoc">Type of algebra matrix.</div><div class="ttdef"><b>Definition:</b> active_set.h:106</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a4cf0f2a8ff1a9d00c3976a150cd8c77f"><div class="ttname"><a href="classug_1_1_active_set.html#a4cf0f2a8ff1a9d00c3976a150cd8c77f">ug::ActiveSet::set_lagrange_multiplier_disc</a></div><div class="ttdeci">void set_lagrange_multiplier_disc(SmartPtr< ILagrangeMultiplierDisc< TDomain, function_type > > lagMultDisc)</div><div class="ttdoc">sets a discretization in order to compute the lagrange multiplier</div><div class="ttdef"><b>Definition:</b> active_set.h:139</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a6c85b803822310d9c813a0ec26c64ace"><div class="ttname"><a href="classug_1_1_active_set.html#a6c85b803822310d9c813a0ec26c64ace">ug::ActiveSet::algebra_type</a></div><div class="ttdeci">TAlgebra algebra_type</div><div class="ttdoc">Type of algebra.</div><div class="ttdef"><b>Definition:</b> active_set.h:103</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a70f0a48fc41a16e084feed81d6469f19"><div class="ttname"><a href="classug_1_1_active_set.html#a70f0a48fc41a16e084feed81d6469f19">ug::ActiveSet::m_spDom</a></div><div class="ttdeci">SmartPtr< TDomain > m_spDom</div><div class="ttdef"><b>Definition:</b> active_set.h:187</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a763bd5a328b6620df8f8a8edd603ee62"><div class="ttname"><a href="classug_1_1_active_set.html#a763bd5a328b6620df8f8a8edd603ee62">ug::ActiveSet::TBaseElem</a></div><div class="ttdeci">domain_traits< TDomain::dim >::grid_base_object TBaseElem</div><div class="ttdoc">base element type of associated domain</div><div class="ttdef"><b>Definition:</b> active_set.h:118</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a8b4e1f203932f5b92082c4417982cedc"><div class="ttname"><a href="classug_1_1_active_set.html#a8b4e1f203932f5b92082c4417982cedc">ug::ActiveSet::m_vActiveSetGlob</a></div><div class="ttdeci">vector< DoFIndex > m_vActiveSetGlob</div><div class="ttdoc">vector of the current active set of global DoFIndices</div><div class="ttdef"><b>Definition:</b> active_set.h:209</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_a9004ef6b25260540e71c5da6adb8b0bf"><div class="ttname"><a href="classug_1_1_active_set.html#a9004ef6b25260540e71c5da6adb8b0bf">ug::ActiveSet::vector_type</a></div><div class="ttdeci">algebra_type::vector_type vector_type</div><div class="ttdoc">Type of algebra vector.</div><div class="ttdef"><b>Definition:</b> active_set.h:109</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_aa4cf12019f15d164f8833348b9968266"><div class="ttname"><a href="classug_1_1_active_set.html#aa4cf12019f15d164f8833348b9968266">ug::ActiveSet::m_bObs</a></div><div class="ttdeci">bool m_bObs</div><div class="ttdef"><b>Definition:</b> active_set.h:194</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_ad973705ffabacd9cd07d8d9e3e7d8d9e"><div class="ttname"><a href="classug_1_1_active_set.html#ad973705ffabacd9cd07d8d9e3e7d8d9e">ug::ActiveSet::m_spLagMultDisc</a></div><div class="ttdeci">SmartPtr< ILagrangeMultiplierDisc< TDomain, function_type > > m_spLagMultDisc</div><div class="ttdoc">pointer to a lagrangeMultiplier-Disc</div><div class="ttdef"><b>Definition:</b> active_set.h:197</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_adf611ba71ad3377cab5ec40325c5eea6"><div class="ttname"><a href="classug_1_1_active_set.html#adf611ba71ad3377cab5ec40325c5eea6">ug::ActiveSet::m_spObs</a></div><div class="ttdeci">ConstSmartPtr< function_type > m_spObs</div><div class="ttdoc">number of functions</div><div class="ttdef"><b>Definition:</b> active_set.h:193</div></div>
<div class="ttc" id="aclassug_1_1_active_set_html_af7bc0a333c559be6a865069540550c65"><div class="ttname"><a href="classug_1_1_active_set.html#af7bc0a333c559be6a865069540550c65">ug::ActiveSet::m_vActiveSubsets</a></div><div class="ttdeci">vector< int > m_vActiveSubsets</div><div class="ttdoc">vector of possible active subsets</div><div class="ttdef"><b>Definition:</b> active_set.h:200</div></div>
<div class="ttc" id="aclassug_1_1_grid_function_html"><div class="ttname"><a href="classug_1_1_grid_function.html">ug::GridFunction</a></div><div class="ttdoc">represents numerical solutions on a grid using an algebraic vector</div><div class="ttdef"><b>Definition:</b> grid_function.h:121</div></div>
<div class="ttc" id="aclassug_1_1_i_lagrange_multiplier_disc_html"><div class="ttname"><a href="classug_1_1_i_lagrange_multiplier_disc.html">ug::ILagrangeMultiplierDisc</a></div><div class="ttdef"><b>Definition:</b> lagrange_multiplier_disc_interface.h:46</div></div>
<div class="ttc" id="agrid__function_8h_html"><div class="ttname"><a href="grid__function_8h.html">grid_function.h</a></div></div>
<div class="ttc" id="agroup__small__strain__mechanics_html_ga425548c7b0fe054612f37d1f3a4826b6"><div class="ttname"><a href="../plugins/group__small__strain__mechanics.html#ga425548c7b0fe054612f37d1f3a4826b6">dim</a></div><div class="ttdeci">static const int dim</div></div>
<div class="ttc" id="alagrange__multiplier__disc__interface_8h_html"><div class="ttname"><a href="lagrange__multiplier__disc__interface_8h.html">lagrange_multiplier_disc_interface.h</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> smart_pointer.h:814</div></div>
<div class="ttc" id="anamespaceug_1_1_demo_plugin_html_a10498f9373a78e4bcc071def1baee06d"><div class="ttname"><a href="../plugins/namespaceug_1_1_demo_plugin.html#a10498f9373a78e4bcc071def1baee06d">matrix_type</a></div><div class="ttdeci">CPUAlgebra::matrix_type matrix_type</div></div>
<div class="ttc" id="anamespaceug_1_1_demo_plugin_html_ac9b1c611e1f3622c954d4a2a604349e1"><div class="ttname"><a href="../plugins/namespaceug_1_1_demo_plugin.html#ac9b1c611e1f3622c954d4a2a604349e1">vector_type</a></div><div class="ttdeci">CPUAlgebra::vector_type vector_type</div></div>
<div class="ttc" id="anamespaceug_html"><div class="ttname"><a href="namespaceug.html">ug</a></div><div class="ttdoc">the ug namespace</div></div>
<div class="ttc" id="asparsematrix__interface_8h_html_a265a253612b46abed17c61b0a5e5ce30"><div class="ttname"><a href="sparsematrix__interface_8h.html#a265a253612b46abed17c61b0a5e5ce30">value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition:</b> sparsematrix_interface.h:2</div></div>
<div class="ttc" id="astructug_1_1domain__traits_html"><div class="ttname"><a href="structug_1_1domain__traits.html">ug::domain_traits</a></div><div class="ttdef"><b>Definition:</b> domain_traits.h:53</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_80abd05104fe5ed4636c8ba64911e654.html">ugbase</a></li><li class="navelem"><a class="el" href="dir_2e5eee3e6a2607df2611cb3dc665a6d5.html">lib_algebra</a></li><li class="navelem"><a class="el" href="dir_7c96bd2845f61b11b267b29fee69af21.html">active_set</a></li><li class="navelem"><a class="el" href="active__set_8h.html">active_set.h</a></li>
<li class="footer">Generated on Mon Nov 25 2024 01:15:14 for ug4 by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>