/[escript]/trunk/modellib/test/python/flow.xml
ViewVC logotype

Contents of /trunk/modellib/test/python/flow.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2468 - (show annotations)
Thu Jun 11 02:55:51 2009 UTC (10 years, 11 months ago) by gross
File MIME type: text/xml
File size: 7820 byte(s)
some more work toward numpy
1 <?xml version="1.0" ?>
2 <ESys>
3 <Simulation id="100">
4 <Component rank="0">
5 <Model id="101" module="esys.modellib.input" type="Sequencer">
6 <Parameter type="float">
7 <Name>
8 t_end
9 </Name>
10 <Value>
11 1.0
12 </Value>
13 </Parameter>
14 <Parameter type="float">
15 <Name>
16 dt_max
17 </Name>
18 <Value>
19 0.5
20 </Value>
21 </Parameter>
22 <Parameter type="float">
23 <Name>
24 t
25 </Name>
26 <Value>
27 0.0
28 </Value>
29 </Parameter>
30 </Model>
31 </Component>
32 <Component rank="1">
33 <Model id="102" module="esys.modellib.geometry" type="VectorConstrainerOverBox">
34 <Parameter type="Link">
35 <Name>
36 domain
37 </Name>
38 <Value>
39 <Link>
40 <Target>
41 103
42 </Target>
43 <Attribute>
44 domain
45 </Attribute>
46 </Link>
47 </Value>
48 </Parameter>
49 <Parameter type="ndarray">
50 <Name>
51 right
52 </Name>
53 <Value>
54 <ndarray>
55 <ArrayType>
56 int_
57 </ArrayType>
58 <Shape>
59 3
60 </Shape>
61 <Data>
62 1 0 0
63 </Data>
64 </ndarray>
65 </Value>
66 </Parameter>
67 <Parameter type="ndarray">
68 <Name>
69 bottom
70 </Name>
71 <Value>
72 <ndarray>
73 <ArrayType>
74 int_
75 </ArrayType>
76 <Shape>
77 3
78 </Shape>
79 <Data>
80 0 1 0
81 </Data>
82 </ndarray>
83 </Value>
84 </Parameter>
85 <Parameter type="ndarray">
86 <Name>
87 top
88 </Name>
89 <Value>
90 <ndarray>
91 <ArrayType>
92 int_
93 </ArrayType>
94 <Shape>
95 3
96 </Shape>
97 <Data>
98 0 1 0
99 </Data>
100 </ndarray>
101 </Value>
102 </Parameter>
103 <Parameter type="ndarray">
104 <Name>
105 back
106 </Name>
107 <Value>
108 <ndarray>
109 <ArrayType>
110 int_
111 </ArrayType>
112 <Shape>
113 3
114 </Shape>
115 <Data>
116 0 0 1
117 </Data>
118 </ndarray>
119 </Value>
120 </Parameter>
121 <Parameter type="NoneType">
122 <Name>
123 value
124 </Name>
125 <Value>
126 None
127 </Value>
128 </Parameter>
129 <Parameter type="float">
130 <Name>
131 tol
132 </Name>
133 <Value>
134 1e-08
135 </Value>
136 </Parameter>
137 <Parameter type="ndarray">
138 <Name>
139 front
140 </Name>
141 <Value>
142 <ndarray>
143 <ArrayType>
144 int_
145 </ArrayType>
146 <Shape>
147 3
148 </Shape>
149 <Data>
150 0 0 1
151 </Data>
152 </ndarray>
153 </Value>
154 </Parameter>
155 <Parameter type="ndarray">
156 <Name>
157 left
158 </Name>
159 <Value>
160 <ndarray>
161 <ArrayType>
162 int_
163 </ArrayType>
164 <Shape>
165 3
166 </Shape>
167 <Data>
168 1 0 0
169 </Data>
170 </ndarray>
171 </Value>
172 </Parameter>
173 </Model>
174 </Component>
175 <Component rank="2">
176 <Simulation id="104">
177 <Component rank="0">
178 <Model id="105" module="esys.modellib.flow" type="SteadyIncompressibleFlow">
179 <Parameter type="Link">
180 <Name>
181 domain
182 </Name>
183 <Value>
184 <Link>
185 <Target>
186 103
187 </Target>
188 <Attribute>
189 domain
190 </Attribute>
191 </Link>
192 </Value>
193 </Parameter>
194 <Parameter type="Link">
195 <Name>
196 internal_force
197 </Name>
198 <Value>
199 <Link>
200 <Target>
201 106
202 </Target>
203 <Attribute>
204 out
205 </Attribute>
206 </Link>
207 </Value>
208 </Parameter>
209 <Parameter type="float">
210 <Name>
211 abs_tol
212 </Name>
213 <Value>
214 0.0
215 </Value>
216 </Parameter>
217 <Parameter type="int">
218 <Name>
219 max_iter
220 </Name>
221 <Value>
222 10
223 </Value>
224 </Parameter>
225 <Parameter type="float">
226 <Name>
227 viscosity
228 </Name>
229 <Value>
230 1.0
231 </Value>
232 </Parameter>
233 <Parameter type="float">
234 <Name>
235 pressure
236 </Name>
237 <Value>
238 0.0
239 </Value>
240 </Parameter>
241 <Parameter type="float">
242 <Name>
243 rel_tol
244 </Name>
245 <Value>
246 0.001
247 </Value>
248 </Parameter>
249 <Parameter type="float">
250 <Name>
251 relaxation
252 </Name>
253 <Value>
254 0.0001
255 </Value>
256 </Parameter>
257 <Parameter type="ndarray">
258 <Name>
259 prescribed_velocity
260 </Name>
261 <Value>
262 <ndarray>
263 <ArrayType>
264 float_
265 </ArrayType>
266 <Shape>
267 2
268 </Shape>
269 <Data>
270 0.0 0.0
271 </Data>
272 </ndarray>
273 </Value>
274 </Parameter>
275 <Parameter type="float">
276 <Name>
277 velocity
278 </Name>
279 <Value>
280 0.0
281 </Value>
282 </Parameter>
283 <Parameter type="Link">
284 <Name>
285 location_prescribed_velocity
286 </Name>
287 <Value>
288 <Link>
289 <Target>
290 102
291 </Target>
292 <Attribute>
293 location_of_constraint
294 </Attribute>
295 </Link>
296 </Value>
297 </Parameter>
298 </Model>
299 </Component>
300 </Simulation>
301 </Component>
302 <Component rank="3">
303 <Model id="107" module="esys.modellib.probe" type="Probe">
304 <Parameter type="str">
305 <Name>
306 expression
307 </Name>
308 <Value>
309 (x[0]+x[1]-1.)*t
310 </Value>
311 </Parameter>
312 <Parameter type="Link">
313 <Name>
314 t
315 </Name>
316 <Value>
317 <Link>
318 <Target>
319 101
320 </Target>
321 <Attribute>
322 t
323 </Attribute>
324 </Link>
325 </Value>
326 </Parameter>
327 <Parameter type="Link">
328 <Name>
329 value
330 </Name>
331 <Value>
332 <Link>
333 <Target>
334 105
335 </Target>
336 <Attribute>
337 pressure
338 </Attribute>
339 </Link>
340 </Value>
341 </Parameter>
342 <Parameter type="str">
343 <Name>
344 line_tag
345 </Name>
346 <Value>
347 PROBE
348 </Value>
349 </Parameter>
350 </Model>
351 </Component>
352 </Simulation>
353 <ParameterSet id="103" module="esys.modellib.geometry" type="RectangularDomain">
354 <Parameter type="int">
355 <Name>
356 dim
357 </Name>
358 <Value>
359 2
360 </Value>
361 </Parameter>
362 <Parameter type="ndarray">
363 <Name>
364 l
365 </Name>
366 <Value>
367 <ndarray>
368 <ArrayType>
369 float_
370 </ArrayType>
371 <Shape>
372 3
373 </Shape>
374 <Data>
375 1.0 1.0 1.0
376 </Data>
377 </ndarray>
378 </Value>
379 </Parameter>
380 <Parameter type="int">
381 <Name>
382 integrationOrder
383 </Name>
384 <Value>
385 -1
386 </Value>
387 </Parameter>
388 <Parameter type="ndarray">
389 <Name>
390 n
391 </Name>
392 <Value>
393 <ndarray>
394 <ArrayType>
395 int_
396 </ArrayType>
397 <Shape>
398 3
399 </Shape>
400 <Data>
401 10 10 10
402 </Data>
403 </ndarray>
404 </Value>
405 </Parameter>
406 <Parameter type="ndarray">
407 <Name>
408 periodic
409 </Name>
410 <Value>
411 <ndarray>
412 <ArrayType>
413 bool_
414 </ArrayType>
415 <Shape>
416 3
417 </Shape>
418 <Data>
419 False False False
420 </Data>
421 </ndarray>
422 </Value>
423 </Parameter>
424 <Parameter type="int">
425 <Name>
426 order
427 </Name>
428 <Value>
429 2
430 </Value>
431 </Parameter>
432 </ParameterSet>
433 <ParameterSet id="106" module="esys.modellib.probe" type="EvaluateExpression">
434 <Parameter type="Link">
435 <Name>
436 domain
437 </Name>
438 <Value>
439 <Link>
440 <Target>
441 103
442 </Target>
443 <Attribute>
444 domain
445 </Attribute>
446 </Link>
447 </Value>
448 </Parameter>
449 <Parameter type="list">
450 <Name>
451 expression
452 </Name>
453 <Value>
454 t t
455 </Value>
456 </Parameter>
457 <Parameter type="Link">
458 <Name>
459 t
460 </Name>
461 <Value>
462 <Link>
463 <Target>
464 101
465 </Target>
466 <Attribute>
467 t
468 </Attribute>
469 </Link>
470 </Value>
471 </Parameter>
472 </ParameterSet>
473 </ESys>

  ViewVC Help
Powered by ViewVC 1.1.26