Chi-Tech
chi_physics__FieldFunctionGridBased.h
Go to the documentation of this file.
1/** \defgroup chi_physics__FieldFunctionGridBased chi_physics.FieldFunctionGridBased
2
3
4\ingroup DocFieldFunction
5
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.FieldFunctionGridBased.Create(params)
18\endcode
19## Required 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>name</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspNamed to be associated with this field function</span></button>
41<div class="content" style="display: none;">
42 <p><I>type=</I><span style="color: blue;"><TT>STRING</TT></span>. Named to be associated with this field function
43</p>
44</div>
45
46<button type="button" class="droppy2" style=
47"
48background-color: #edf0f5;
49color: #9373A5;
50cursor: pointer;
51border: none;
52text-align: left;
53outline: none;
54font-size: 15px;
55margin: 2px 2px;
56border: 2px solid #687372;
57display: block;
58width: 100%;
59vertical-align: middle;
60padding-top: 4px;
61padding-bottom: 0px;
62"
63><span class="arrow" style="padding-left: 0px;">►</span><TT><B>sdm_type</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe spatial discretization type to be used</span></button>
64<div class="content" style="display: none;">
65 <p><I>type=</I><span style="color: blue;"><TT>STRING</TT></span>. The spatial discretization type to be used
66</p>
67 <p>Allowable values: <TT>"FV", "PWLC", "PWLD", "LagrangeC", "LagrangeD"</TT></p>
68</div>
69
70</div>
71\endhtmlonly
72
73## Optional Input parameters
74\htmlonly
75
76<div style="display: block;">
77<button type="button" class="droppy2" style=
78"
79background-color: #edf0f5;
80color: #9373A5;
81cursor: pointer;
82border: none;
83text-align: left;
84outline: none;
85font-size: 15px;
86margin: 2px 2px;
87border: 2px solid #687372;
88display: block;
89width: 100%;
90vertical-align: middle;
91padding-top: 4px;
92padding-bottom: 0px;
93"
94><span class="arrow" style="padding-left: 0px;">►</span><TT><B>coordinate_system</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspCoordinate system to apply to element mappings</span></button>
95<div class="content" style="display: none;">
96 <p><I>type=</I><span style="color: blue;"><TT>STRING</TT></span>. Coordinate system to apply to element mappings
97</p>
98 <p>Default value: <TT style="color:grey">"cartesian"</TT></p>
99 <p>Allowable values: <TT>"cartesian", "cylindrical", "spherical"</TT></p>
100</div>
101
102<button type="button" class="droppy2" style=
103"
104background-color: #edf0f5;
105color: #9373A5;
106cursor: pointer;
107border: none;
108text-align: left;
109outline: none;
110font-size: 15px;
111margin: 2px 2px;
112border: 2px solid #687372;
113display: block;
114width: 100%;
115vertical-align: middle;
116padding-top: 4px;
117padding-bottom: 0px;
118"
119><span class="arrow" style="padding-left: 0px;">►</span><TT><B>initial_value</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe initial value to assign to the field function</span></button>
120<div class="content" style="display: none;">
121 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. The initial value to assign to the field function
122</p>
123 <p>Default value: <TT style="color:grey">0(double)</TT></p>
124</div>
125
126<button type="button" class="droppy2" style=
127"
128background-color: #edf0f5;
129color: #9373A5;
130cursor: pointer;
131border: none;
132text-align: left;
133outline: none;
134font-size: 15px;
135margin: 2px 2px;
136border: 2px solid #687372;
137display: block;
138width: 100%;
139vertical-align: middle;
140padding-top: 4px;
141padding-bottom: 0px;
142"
143><span class="arrow" style="padding-left: 0px;">►</span><TT><B>num_components</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe number of components to attach to the variable</span></button>
144<div class="content" style="display: none;">
145 <p><I>type=</I><span style="color: blue;"><TT>INTEGER</TT></span>. The number of components to attach to the variable. Only effective when "type" is VectorN.
146</p>
147 <p>Default value: <TT style="color:grey">1</TT></p>
148 <p>Allowable values: <TT>>= 1</TT></p>
149</div>
150
151<button type="button" class="droppy2" style=
152"
153background-color: #edf0f5;
154color: #9373A5;
155cursor: pointer;
156border: none;
157text-align: left;
158outline: none;
159font-size: 15px;
160margin: 2px 2px;
161border: 2px solid #687372;
162display: block;
163width: 100%;
164vertical-align: middle;
165padding-top: 4px;
166padding-bottom: 0px;
167"
168><span class="arrow" style="padding-left: 0px;">►</span><TT><B>quadrature_order</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspIf supplied, will overwrite the default for the specific discretization-coordinate system combination</span></button>
169<div class="content" style="display: none;">
170 <p><I>type=</I><span style="color: blue;"><TT>INTEGER</TT></span>. If supplied, will overwrite the default for the specific discretization-coordinate system combination.
171</p>
172 <p>Default value: <TT style="color:grey">0</TT></p>
173</div>
174
175<button type="button" class="droppy2" style=
176"
177background-color: #edf0f5;
178color: #9373A5;
179cursor: pointer;
180border: none;
181text-align: left;
182outline: none;
183font-size: 15px;
184margin: 2px 2px;
185border: 2px solid #687372;
186display: block;
187width: 100%;
188vertical-align: middle;
189padding-top: 4px;
190padding-bottom: 0px;
191"
192><span class="arrow" style="padding-left: 0px;">►</span><TT><B>unknown_type</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe type of the variable for this field function</span></button>
193<div class="content" style="display: none;">
194 <p><I>type=</I><span style="color: blue;"><TT>STRING</TT></span>. The type of the variable for this field function
195</p>
196 <p>Default value: <TT style="color:grey">"Scalar"</TT></p>
197 <p>Allowable values: <TT>"Scalar", "Vector2", "Vector3", "VectorN"</TT></p>
198</div>
199
200</div>
201\endhtmlonly
202
203\htmlonly
204
205<script>
206
207{
208 var coll = document.getElementsByClassName("droppy2");
209 var i;
210
211 for (i = 0; i < coll.length; i++) {
212 coll[i].addEventListener("click", function() {
213 this.classList.toggle("active");
214 var content = this.nextElementSibling;
215 if (content.style.display === "block") {
216 content.style.display = "none";
217 this.childNodes[0].innerText = "►"
218 } else {
219 content.style.display = "block";
220 this.children[0].innerText = "▼"
221 }
222 });
223 }
224}</script>
225
226\endhtmlonly
227
228*/