Chi-Tech
chi_physics__ConstantTimeStepper.h
Go to the documentation of this file.
1/** \defgroup chi_physics__ConstantTimeStepper chi_physics.ConstantTimeStepper
2
3
4\ingroup doc_TimeStepControllers
5Timestep controller that does not dynamically change.
6
7
8## Example usage:
9Create this object:
10\code
11params =
12{
13 param_name1 = value1,
14 param_name2 = value2,
15 --etc.
16}
17chi_physics.ConstantTimeStepper.Create(params)
18\endcode
19## Optional Input parameters
20\htmlonly
21
22<div style="display: block;">
23<button type="button" class="droppy2" style=
24"
25background-color: #edf0f5;
26color: #9373A5;
27cursor: pointer;
28border: none;
29text-align: left;
30outline: none;
31font-size: 15px;
32margin: 2px 2px;
33border: 2px solid #687372;
34display: block;
35width: 100%;
36vertical-align: middle;
37padding-top: 4px;
38padding-bottom: 0px;
39"
40><span class="arrow" style="padding-left: 0px;">►</span><TT><B>dt</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspInitial timestep to use</span></button>
41<div class="content" style="display: none;">
42 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. Initial timestep to use
43</p>
44 <p>Default value: <TT style="color:grey">0.01(double)</TT></p>
45</div>
46
47<button type="button" class="droppy2" style=
48"
49background-color: #edf0f5;
50color: #9373A5;
51cursor: pointer;
52border: none;
53text-align: left;
54outline: none;
55font-size: 15px;
56margin: 2px 2px;
57border: 2px solid #687372;
58display: block;
59width: 100%;
60vertical-align: middle;
61padding-top: 4px;
62padding-bottom: 0px;
63"
64><span class="arrow" style="padding-left: 0px;">►</span><TT><B>dt_min</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspMinimum allowable timestep</span></button>
65<div class="content" style="display: none;">
66 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. Minimum allowable timestep.
67</p>
68 <p>Default value: <TT style="color:grey">1e-05(double)</TT></p>
69</div>
70
71<button type="button" class="droppy2" style=
72"
73background-color: #edf0f5;
74color: #9373A5;
75cursor: pointer;
76border: none;
77text-align: left;
78outline: none;
79font-size: 15px;
80margin: 2px 2px;
81border: 2px solid #687372;
82display: block;
83width: 100%;
84vertical-align: middle;
85padding-top: 4px;
86padding-bottom: 0px;
87"
88><span class="arrow" style="padding-left: 0px;">►</span><TT><B>end_time</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspEnd time</span></button>
89<div class="content" style="display: none;">
90 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. End time
91</p>
92 <p>Default value: <TT style="color:grey">1(double)</TT></p>
93</div>
94
95<button type="button" class="droppy2" style=
96"
97background-color: #edf0f5;
98color: #9373A5;
99cursor: pointer;
100border: none;
101text-align: left;
102outline: none;
103font-size: 15px;
104margin: 2px 2px;
105border: 2px solid #687372;
106display: block;
107width: 100%;
108vertical-align: middle;
109padding-top: 4px;
110padding-bottom: 0px;
111"
112><span class="arrow" style="padding-left: 0px;">►</span><TT><B>eps</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspGeneral time tolerance</span></button>
113<div class="content" style="display: none;">
114 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. General time tolerance. This is used in fuzzy equals.
115</p>
116 <p>Default value: <TT style="color:grey">1e-08(double)</TT></p>
117</div>
118
119<button type="button" class="droppy2" style=
120"
121background-color: #edf0f5;
122color: #9373A5;
123cursor: pointer;
124border: none;
125text-align: left;
126outline: none;
127font-size: 15px;
128margin: 2px 2px;
129border: 2px solid #687372;
130display: block;
131width: 100%;
132vertical-align: middle;
133padding-top: 4px;
134padding-bottom: 0px;
135"
136><span class="arrow" style="padding-left: 0px;">►</span><TT><B>max_time_steps</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspMaximum number of timesteps to take</span></button>
137<div class="content" style="display: none;">
138 <p><I>type=</I><span style="color: blue;"><TT>INTEGER</TT></span>. Maximum number of timesteps to take. A negative number disables this.
139</p>
140 <p>Default value: <TT style="color:grey">-1</TT></p>
141</div>
142
143<button type="button" class="droppy2" style=
144"
145background-color: #edf0f5;
146color: #9373A5;
147cursor: pointer;
148border: none;
149text-align: left;
150outline: none;
151font-size: 15px;
152margin: 2px 2px;
153border: 2px solid #687372;
154display: block;
155width: 100%;
156vertical-align: middle;
157padding-top: 4px;
158padding-bottom: 0px;
159"
160><span class="arrow" style="padding-left: 0px;">►</span><TT><B>start_time</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspStart time</span></button>
161<div class="content" style="display: none;">
162 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. Start time
163</p>
164 <p>Default value: <TT style="color:grey">0(double)</TT></p>
165</div>
166
167<button type="button" class="droppy2" style=
168"
169background-color: #edf0f5;
170color: #9373A5;
171cursor: pointer;
172border: none;
173text-align: left;
174outline: none;
175font-size: 15px;
176margin: 2px 2px;
177border: 2px solid #687372;
178display: block;
179width: 100%;
180vertical-align: middle;
181padding-top: 4px;
182padding-bottom: 0px;
183"
184><span class="arrow" style="padding-left: 0px;">►</span><TT><B>time</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspInitial time</span></button>
185<div class="content" style="display: none;">
186 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. Initial time
187</p>
188 <p>Default value: <TT style="color:grey">0(double)</TT></p>
189</div>
190
191<button type="button" class="droppy2" style=
192"
193background-color: #edf0f5;
194color: #9373A5;
195cursor: pointer;
196border: none;
197text-align: left;
198outline: none;
199font-size: 15px;
200margin: 2px 2px;
201border: 2px solid #687372;
202display: block;
203width: 100%;
204vertical-align: middle;
205padding-top: 4px;
206padding-bottom: 0px;
207"
208><span class="arrow" style="padding-left: 0px;">►</span><TT><B>time_index</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspTime index</span></button>
209<div class="content" style="display: none;">
210 <p><I>type=</I><span style="color: blue;"><TT>INTEGER</TT></span>. Time index. Useful for output control.
211</p>
212 <p>Default value: <TT style="color:grey">0</TT></p>
213</div>
214
215</div>
216\endhtmlonly
217
218\htmlonly
219
220<script>
221
222{
223 var coll = document.getElementsByClassName("droppy2");
224 var i;
225
226 for (i = 0; i < coll.length; i++) {
227 coll[i].addEventListener("click", function() {
228 this.classList.toggle("active");
229 var content = this.nextElementSibling;
230 if (content.style.display === "block") {
231 content.style.display = "none";
232 this.childNodes[0].innerText = "►"
233 } else {
234 content.style.display = "block";
235 this.children[0].innerText = "▼"
236 }
237 });
238 }
239}</script>
240
241\endhtmlonly
242
243*/