/[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 918 - (show annotations)
Wed Jan 3 06:30:00 2007 UTC (13 years, 7 months ago) by gross
File MIME type: text/xml
File size: 7508 byte(s)
fixes on ESySXML to get runmodel going.

    * object ids are now local for read and write of XML
    * ParameterSets are now written with class name
    * ParameterSets linked by other ParameterSets (previously only Models) are written now 
    * list are now lists of str (rather than bools), lists with bool, int or float are mapped to numarray
    * numarray are writen with generic types Bool, Int, Float (portability!)


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

  ViewVC Help
Powered by ViewVC 1.1.26