Chi-Tech
chi_math__CrankNicolsonTimeIntegration.h
Go to the documentation of this file.
1/** \defgroup chi_math__CrankNicolsonTimeIntegration chi_math.CrankNicolsonTimeIntegration
2
3
4\ingroup DocTimeIntegrations
5General Crank-Nicolson Time Integration
6
7
8## Example usage:
9Create this object:
10\code
11params =
12{
13 param_name1 = value1,
14 param_name2 = value2,
15 --etc.
16}
17chi_math.CrankNicolsonTimeIntegration.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>method</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspInteger representing time stepping scheme</span></button>
41<div class="content" style="display: none;">
42 <p><I>type=</I><span style="color: blue;"><TT>INTEGER</TT></span>. Integer representing time stepping scheme
43</p>
44 <p>Default value: <TT style="color:grey">3</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>theta</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe theta parameter for a theta scheme</span></button>
65<div class="content" style="display: none;">
66 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. The theta parameter for a theta scheme
67</p>
68 <p>Default value: <TT style="color:grey">0.5(double)</TT></p>
69</div>
70
71</div>
72\endhtmlonly
73
74\htmlonly
75
76<script>
77
78{
79 var coll = document.getElementsByClassName("droppy2");
80 var i;
81
82 for (i = 0; i < coll.length; i++) {
83 coll[i].addEventListener("click", function() {
84 this.classList.toggle("active");
85 var content = this.nextElementSibling;
86 if (content.style.display === "block") {
87 content.style.display = "none";
88 this.childNodes[0].innerText = "►"
89 } else {
90 content.style.display = "block";
91 this.children[0].innerText = "▼"
92 }
93 });
94 }
95}</script>
96
97\endhtmlonly
98
99*/