5 <component-name>?</component-name>
6 <interface-name>?</interface-name>
7 <node-name>LoopGraph</node-name>
9 <coupled-node>?</coupled-node>
11 <service-name>LoopGraph</service-name>
14 <inParameter-type>long</inParameter-type>
15 <inParameter-name>Init\index</inParameter-name> </inParameter>
17 <inParameter-type>long</inParameter-type>
18 <inParameter-name>Init\min</inParameter-name> </inParameter>
20 <inParameter-type>long</inParameter-type>
21 <inParameter-name>Init\max</inParameter-name> </inParameter>
23 <inParameter-type>objref</inParameter-type>
24 <inParameter-name>Init\medfield</inParameter-name> </inParameter>
26 <inParameter-type>double</inParameter-type>
27 <inParameter-name>Init\x1</inParameter-name> </inParameter> </inParameter-list>
30 <outParameter-type>long</outParameter-type>
31 <outParameter-name>EndInit\index</outParameter-name> </outParameter>
33 <outParameter-type>long</outParameter-type>
34 <outParameter-name>EndInit\min</outParameter-name> </outParameter>
36 <outParameter-type>long</outParameter-type>
37 <outParameter-name>EndInit\max</outParameter-name> </outParameter>
39 <outParameter-type>objref</outParameter-type>
40 <outParameter-name>EndInit\medfield</outParameter-name> </outParameter>
42 <outParameter-type>double</outParameter-type>
43 <outParameter-name>EndInit\x1</outParameter-name> </outParameter>
45 <outParameter-type>objref</outParameter-type>
46 <outParameter-name>EndInit\aVisu</outParameter-name> </outParameter>
48 <outParameter-type>objref</outParameter-type>
49 <outParameter-name>EndInit\aView</outParameter-name> </outParameter> </outParameter-list> </service>
52 <creation-date>20/6/2003 - 15:13:42</creation-date>
53 <lastmodification-date>19/9/2003 - 16:10:16</lastmodification-date>
54 <editor-release>1.04</editor-release>
56 <container>?</container>
58 <x-position>0</x-position>
59 <y-position>0</y-position> </node> </info-list>
62 <component-name>?</component-name>
63 <interface-name>?</interface-name>
64 <node-name>InitDisplay</node-name>
66 <coupled-node>?</coupled-node>
68 <service-name>InitDisplay</service-name>
72 <outParameter-type>objref</outParameter-type>
73 <outParameter-name>aVisu</outParameter-name> </outParameter>
75 <outParameter-type>objref</outParameter-type>
76 <outParameter-name>aView</outParameter-name> </outParameter> </outParameter-list> </service>
80 <FuncName>InitDisplay</FuncName>
81 <PyFunc><![CDATA[from LifeCycleCORBA import * ]]></PyFunc>
82 <PyFunc><![CDATA[from VISU import * ]]></PyFunc>
83 <PyFunc><![CDATA[def InitDisplay(): ]]></PyFunc>
84 <PyFunc><![CDATA[ # initialize the ORB ]]></PyFunc>
85 <PyFunc><![CDATA[ orb = CORBA.ORB_init([], CORBA.ORB_ID) ]]></PyFunc>
86 <PyFunc><![CDATA[ # create an LifeCycleCORBA instance ]]></PyFunc>
87 <PyFunc><![CDATA[ lcc = LifeCycleCORBA(orb) ]]></PyFunc>
88 <PyFunc><![CDATA[ # ----------------------------------------- ]]></PyFunc>
89 <PyFunc><![CDATA[ # loading visu component ]]></PyFunc>
90 <PyFunc><![CDATA[ aVisu = lcc.FindOrLoadComponent("FactoryServer","Visu") ]]></PyFunc>
91 <PyFunc><![CDATA[ print "InitDisplay --> aVisu = ",aVisu ]]></PyFunc>
92 <PyFunc><![CDATA[ aViewManager = aVisu.GetViewManager() ]]></PyFunc>
93 <PyFunc><![CDATA[ print "InitDisplay --> aViewManager = ",aViewManager ]]></PyFunc>
94 <PyFunc><![CDATA[ # aView = aViewManager.GetCurrentView() ]]></PyFunc>
95 <PyFunc><![CDATA[ aView = aViewManager.Create3DView() ]]></PyFunc>
96 <PyFunc><![CDATA[ print "InitDisplay --> aView = ",aView ]]></PyFunc>
97 <PyFunc><![CDATA[ return aVisu,aView ]]></PyFunc> </PyFunction> </PyFunction-list>
98 <creation-date>19/9/2003 - 16:10:16</creation-date>
99 <lastmodification-date>19/9/2003 - 16:10:16</lastmodification-date>
100 <editor-release>1.04</editor-release>
102 <container>?</container>
103 <comment>Compute Node</comment>
104 <x-position>0</x-position>
105 <y-position>163</y-position> </node>
107 <component-name>?</component-name>
108 <interface-name>?</interface-name>
109 <node-name>Init</node-name>
111 <coupled-node>EndInit</coupled-node>
113 <service-name>Init</service-name>
116 <inParameter-type>long</inParameter-type>
117 <inParameter-name>index</inParameter-name> </inParameter>
119 <inParameter-type>long</inParameter-type>
120 <inParameter-name>min</inParameter-name> </inParameter>
122 <inParameter-type>long</inParameter-type>
123 <inParameter-name>max</inParameter-name> </inParameter>
125 <inParameter-type>objref</inParameter-type>
126 <inParameter-name>medfield</inParameter-name> </inParameter>
128 <inParameter-type>double</inParameter-type>
129 <inParameter-name>x1</inParameter-name> </inParameter>
131 <inParameter-type>objref</inParameter-type>
132 <inParameter-name>aVisu</inParameter-name> </inParameter>
134 <inParameter-type>objref</inParameter-type>
135 <inParameter-name>aView</inParameter-name> </inParameter> </inParameter-list>
138 <outParameter-type>long</outParameter-type>
139 <outParameter-name>index</outParameter-name> </outParameter>
141 <outParameter-type>long</outParameter-type>
142 <outParameter-name>min</outParameter-name> </outParameter>
144 <outParameter-type>long</outParameter-type>
145 <outParameter-name>max</outParameter-name> </outParameter>
147 <outParameter-type>objref</outParameter-type>
148 <outParameter-name>medfield</outParameter-name> </outParameter>
150 <outParameter-type>double</outParameter-type>
151 <outParameter-name>x1</outParameter-name> </outParameter>
153 <outParameter-type>objref</outParameter-type>
154 <outParameter-name>aVisu</outParameter-name> </outParameter>
156 <outParameter-type>objref</outParameter-type>
157 <outParameter-name>aView</outParameter-name> </outParameter> </outParameter-list> </service>
161 <FuncName>Init</FuncName>
162 <PyFunc><![CDATA[def Init(index,min,max,medfield,x1,aVisu,aView): ]]></PyFunc>
163 <PyFunc><![CDATA[ if max >= min : ]]></PyFunc>
164 <PyFunc><![CDATA[ index = min ]]></PyFunc>
165 <PyFunc><![CDATA[ else : ]]></PyFunc>
166 <PyFunc><![CDATA[ index = max ]]></PyFunc>
167 <PyFunc><![CDATA[ print "Init --> index = ",index ]]></PyFunc>
168 <PyFunc><![CDATA[ print " min = ",min ]]></PyFunc>
169 <PyFunc><![CDATA[ print " max = ",max ]]></PyFunc>
170 <PyFunc><![CDATA[ print " medfield = ",medfield ]]></PyFunc>
171 <PyFunc><![CDATA[ return index,min,max,medfield,x1,aVisu,aView ]]></PyFunc> </PyFunction>
173 <FuncName>More</FuncName>
174 <PyFunc><![CDATA[def More(index,min,max,medfield,x1,aVisu,aView): ]]></PyFunc>
175 <PyFunc><![CDATA[ if max >= index : ]]></PyFunc>
176 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
177 <PyFunc><![CDATA[ else : ]]></PyFunc>
178 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
179 <PyFunc><![CDATA[ print "More --> DoLoop = ",DoLoop ]]></PyFunc>
180 <PyFunc><![CDATA[ print " index = ",index ]]></PyFunc>
181 <PyFunc><![CDATA[ print " min = ",min ]]></PyFunc>
182 <PyFunc><![CDATA[ print " max = ",max ]]></PyFunc>
183 <PyFunc><![CDATA[ print " medfield = ",medfield ]]></PyFunc>
184 <PyFunc><![CDATA[ return DoLoop,index,min,max,medfield,x1,aVisu,aView ]]></PyFunc> </PyFunction>
186 <FuncName>Next</FuncName>
187 <PyFunc><![CDATA[def Next(index,min,max,medfield,x1,aVisu,aView): ]]></PyFunc>
188 <PyFunc><![CDATA[ index = index + 1 ]]></PyFunc>
189 <PyFunc><![CDATA[ print "Next --> index = ",index ]]></PyFunc>
190 <PyFunc><![CDATA[ print " min = ",min ]]></PyFunc>
191 <PyFunc><![CDATA[ print " max = ",max ]]></PyFunc>
192 <PyFunc><![CDATA[ print " medfield = ",medfield ]]></PyFunc>
193 <PyFunc><![CDATA[ return index,min,max,medfield,x1,aVisu,aView ]]></PyFunc> </PyFunction> </PyFunction-list>
194 <creation-date>19/9/2003 - 16:10:16</creation-date>
195 <lastmodification-date>19/9/2003 - 16:10:16</lastmodification-date>
196 <editor-release>1.04</editor-release>
198 <container>?</container>
199 <comment>no comment</comment>
200 <x-position>205</x-position>
201 <y-position>63</y-position> </node>
203 <component-name>?</component-name>
204 <interface-name>?</interface-name>
205 <node-name>EndInit</node-name>
207 <coupled-node>Init</coupled-node>
209 <service-name>EndInit</service-name>
212 <inParameter-type>long</inParameter-type>
213 <inParameter-name>index</inParameter-name> </inParameter>
215 <inParameter-type>long</inParameter-type>
216 <inParameter-name>min</inParameter-name> </inParameter>
218 <inParameter-type>long</inParameter-type>
219 <inParameter-name>max</inParameter-name> </inParameter>
221 <inParameter-type>objref</inParameter-type>
222 <inParameter-name>medfield</inParameter-name> </inParameter>
224 <inParameter-type>double</inParameter-type>
225 <inParameter-name>x1</inParameter-name> </inParameter>
227 <inParameter-type>objref</inParameter-type>
228 <inParameter-name>aVisu</inParameter-name> </inParameter>
230 <inParameter-type>objref</inParameter-type>
231 <inParameter-name>aView</inParameter-name> </inParameter> </inParameter-list>
234 <outParameter-type>long</outParameter-type>
235 <outParameter-name>index</outParameter-name> </outParameter>
237 <outParameter-type>long</outParameter-type>
238 <outParameter-name>min</outParameter-name> </outParameter>
240 <outParameter-type>long</outParameter-type>
241 <outParameter-name>max</outParameter-name> </outParameter>
243 <outParameter-type>objref</outParameter-type>
244 <outParameter-name>medfield</outParameter-name> </outParameter>
246 <outParameter-type>double</outParameter-type>
247 <outParameter-name>x1</outParameter-name> </outParameter>
249 <outParameter-type>objref</outParameter-type>
250 <outParameter-name>aVisu</outParameter-name> </outParameter>
252 <outParameter-type>objref</outParameter-type>
253 <outParameter-name>aView</outParameter-name> </outParameter> </outParameter-list> </service>
256 <PyFunction/> </PyFunction-list>
257 <creation-date>19/9/2003 - 16:10:16</creation-date>
258 <lastmodification-date>19/9/2003 - 16:10:16</lastmodification-date>
259 <editor-release>1.04</editor-release>
261 <container>?</container>
262 <comment>no comment</comment>
263 <x-position>776</x-position>
264 <y-position>64</y-position> </node>
266 <component-name>Calculator</component-name>
267 <interface-name>Calculator</interface-name>
268 <node-name>Mul</node-name>
270 <coupled-node>?</coupled-node>
272 <service-name>Mul</service-name>
275 <inParameter-type>objref</inParameter-type>
276 <inParameter-name>field1</inParameter-name> </inParameter>
278 <inParameter-type>double</inParameter-type>
279 <inParameter-name>x1</inParameter-name> </inParameter> </inParameter-list>
282 <outParameter-type>objref</outParameter-type>
283 <outParameter-name>return</outParameter-name> </outParameter> </outParameter-list> </service>
286 <creation-date>19/9/2003 - 16:10:16</creation-date>
287 <lastmodification-date>19/9/2003 - 16:10:16</lastmodification-date>
288 <editor-release>1.04</editor-release>
290 <container>localhost/FactoryServer</container>
291 <comment>Multiply a field by a constant</comment>
292 <x-position>387</x-position>
293 <y-position>104</y-position> </node>
295 <component-name>?</component-name>
296 <interface-name>?</interface-name>
297 <node-name>DisplayMed</node-name>
299 <coupled-node>?</coupled-node>
301 <service-name>DisplayMed</service-name>
304 <inParameter-type>objref</inParameter-type>
305 <inParameter-name>INmedfield</inParameter-name> </inParameter>
307 <inParameter-type>long</inParameter-type>
308 <inParameter-name>index</inParameter-name> </inParameter>
310 <inParameter-type>objref</inParameter-type>
311 <inParameter-name>aVisu</inParameter-name> </inParameter>
313 <inParameter-type>objref</inParameter-type>
314 <inParameter-name>aView</inParameter-name> </inParameter> </inParameter-list>
317 <outParameter-type>objref</outParameter-type>
318 <outParameter-name>OUTmedfield</outParameter-name> </outParameter> </outParameter-list> </service>
322 <FuncName>DisplayMed</FuncName>
323 <PyFunc><![CDATA[import os ]]></PyFunc>
324 <PyFunc><![CDATA[import SALOME_MED ]]></PyFunc>
325 <PyFunc><![CDATA[from VISU import * ]]></PyFunc>
326 <PyFunc><![CDATA[from LifeCycleCORBA import * ]]></PyFunc>
327 <PyFunc><![CDATA[def DisplayMed(medfield,index,aVisu,aView): ]]></PyFunc>
328 <PyFunc><![CDATA[ # initialize the ORB ]]></PyFunc>
329 <PyFunc><![CDATA[ orb = CORBA.ORB_init([''], CORBA.ORB_ID) ]]></PyFunc>
330 <PyFunc><![CDATA[ # create an LifeCycleCORBA instance ]]></PyFunc>
331 <PyFunc><![CDATA[ lcc = LifeCycleCORBA(orb) ]]></PyFunc>
332 <PyFunc><![CDATA[ print " " ]]></PyFunc>
333 <PyFunc><![CDATA[ print "***************************************************************" ]]></PyFunc>
334 <PyFunc><![CDATA[ calc = lcc.FindOrLoadComponent("FactoryServer", "Calculator") ]]></PyFunc>
335 <PyFunc><![CDATA[ print "-----> calc = ",calc ]]></PyFunc>
336 <PyFunc><![CDATA[ medfilename = "/tmp/LoopGraphFile" + str(index) + ".med" ]]></PyFunc>
337 <PyFunc><![CDATA[ print "-----> Writing Med field in temporary file : ",medfilename ]]></PyFunc>
338 <PyFunc><![CDATA[ calc.writeMEDfile(medfield,medfilename) ]]></PyFunc>
339 <PyFunc><![CDATA[ print "-----> calc = ",calc ]]></PyFunc>
340 <PyFunc><![CDATA[ print "***************************************************************" ]]></PyFunc>
341 <PyFunc><![CDATA[ myResult1 = aVisu.ImportFile(medfilename) ]]></PyFunc>
342 <PyFunc><![CDATA[ print "-----> myResult1 = ",myResult1 ]]></PyFunc>
343 <PyFunc><![CDATA[ field_name = medfield.getName() ]]></PyFunc>
344 <PyFunc><![CDATA[ print "-----> field_name = ",field_name ]]></PyFunc>
345 <PyFunc><![CDATA[ mesh_name = medfield.getSupport().getMesh().getName() ]]></PyFunc>
346 <PyFunc><![CDATA[ print "-----> mesh_name = ",mesh_name ]]></PyFunc>
347 <PyFunc><![CDATA[ aMesh1 = aVisu.MeshOnEntity(myResult1,mesh_name,CELL) ]]></PyFunc>
348 <PyFunc><![CDATA[ print "-----> aMesh1 = ",aMesh1 ]]></PyFunc>
349 <PyFunc><![CDATA[ aScalarMap1 = aVisu.ScalarMapOnField(myResult1,mesh_name,NODE,field_name,1) ]]></PyFunc>
350 <PyFunc><![CDATA[ print "-----> aScalarMap1 = ",aScalarMap1 ]]></PyFunc>
351 <PyFunc><![CDATA[ aView.DisplayOnly(aScalarMap1) ]]></PyFunc>
352 <PyFunc><![CDATA[ aView.FitAll() ]]></PyFunc>
353 <PyFunc><![CDATA[ command = "rm " + medfilename ]]></PyFunc>
354 <PyFunc><![CDATA[ os.system(command) ]]></PyFunc>
355 <PyFunc><![CDATA[ print "-----> Delete temporary Med file : ",medfilename ]]></PyFunc>
356 <PyFunc><![CDATA[ print "***************************************************************" ]]></PyFunc>
357 <PyFunc><![CDATA[ print " " ]]></PyFunc>
358 <PyFunc><![CDATA[ return medfield ]]></PyFunc> </PyFunction> </PyFunction-list>
359 <creation-date>19/9/2003 - 16:10:16</creation-date>
360 <lastmodification-date>19/9/2003 - 16:10:16</lastmodification-date>
361 <editor-release>1.04</editor-release>
363 <container>?</container>
364 <comment>Compute Node</comment>
365 <x-position>594</x-position>
366 <y-position>105</y-position> </node> </node-list>
369 <fromnode-name>InitDisplay</fromnode-name>
370 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
371 <tonode-name>Init</tonode-name>
372 <toserviceparameter-name>aVisu</toserviceparameter-name>
373 <coord-list/> </link>
375 <fromnode-name>InitDisplay</fromnode-name>
376 <fromserviceparameter-name>aView</fromserviceparameter-name>
377 <tonode-name>Init</tonode-name>
378 <toserviceparameter-name>aView</toserviceparameter-name>
379 <coord-list/> </link>
381 <fromnode-name>Init</fromnode-name>
382 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
383 <tonode-name>EndInit</tonode-name>
384 <toserviceparameter-name>DoLoop</toserviceparameter-name>
385 <coord-list/> </link>
387 <fromnode-name>Init</fromnode-name>
388 <fromserviceparameter-name>index</fromserviceparameter-name>
389 <tonode-name>EndInit</tonode-name>
390 <toserviceparameter-name>index</toserviceparameter-name>
391 <coord-list/> </link>
393 <fromnode-name>Init</fromnode-name>
394 <fromserviceparameter-name>index</fromserviceparameter-name>
395 <tonode-name>DisplayMed</tonode-name>
396 <toserviceparameter-name>index</toserviceparameter-name>
403 <y>96</y> </coord> </coord-list> </link>
405 <fromnode-name>Init</fromnode-name>
406 <fromserviceparameter-name>min</fromserviceparameter-name>
407 <tonode-name>EndInit</tonode-name>
408 <toserviceparameter-name>min</toserviceparameter-name>
409 <coord-list/> </link>
411 <fromnode-name>Init</fromnode-name>
412 <fromserviceparameter-name>max</fromserviceparameter-name>
413 <tonode-name>EndInit</tonode-name>
414 <toserviceparameter-name>max</toserviceparameter-name>
415 <coord-list/> </link>
417 <fromnode-name>Init</fromnode-name>
418 <fromserviceparameter-name>medfield</fromserviceparameter-name>
419 <tonode-name>Mul</tonode-name>
420 <toserviceparameter-name>field1</toserviceparameter-name>
421 <coord-list/> </link>
423 <fromnode-name>Init</fromnode-name>
424 <fromserviceparameter-name>x1</fromserviceparameter-name>
425 <tonode-name>EndInit</tonode-name>
426 <toserviceparameter-name>x1</toserviceparameter-name>
427 <coord-list/> </link>
429 <fromnode-name>Init</fromnode-name>
430 <fromserviceparameter-name>x1</fromserviceparameter-name>
431 <tonode-name>Mul</tonode-name>
432 <toserviceparameter-name>x1</toserviceparameter-name>
433 <coord-list/> </link>
435 <fromnode-name>Init</fromnode-name>
436 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
437 <tonode-name>EndInit</tonode-name>
438 <toserviceparameter-name>aVisu</toserviceparameter-name>
439 <coord-list/> </link>
441 <fromnode-name>Init</fromnode-name>
442 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
443 <tonode-name>DisplayMed</tonode-name>
444 <toserviceparameter-name>aVisu</toserviceparameter-name>
457 <y>242</y> </coord> </coord-list> </link>
459 <fromnode-name>Init</fromnode-name>
460 <fromserviceparameter-name>aView</fromserviceparameter-name>
461 <tonode-name>EndInit</tonode-name>
462 <toserviceparameter-name>aView</toserviceparameter-name>
463 <coord-list/> </link>
465 <fromnode-name>Init</fromnode-name>
466 <fromserviceparameter-name>aView</fromserviceparameter-name>
467 <tonode-name>DisplayMed</tonode-name>
468 <toserviceparameter-name>aView</toserviceparameter-name>
469 <coord-list/> </link>
471 <fromnode-name>EndInit</fromnode-name>
472 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
473 <tonode-name>Init</tonode-name>
474 <toserviceparameter-name>InitLoop</toserviceparameter-name>
487 <y>235</y> </coord> </coord-list> </link>
489 <fromnode-name>Mul</fromnode-name>
490 <fromserviceparameter-name>return</fromserviceparameter-name>
491 <tonode-name>DisplayMed</tonode-name>
492 <toserviceparameter-name>INmedfield</toserviceparameter-name>
493 <coord-list/> </link>
495 <fromnode-name>DisplayMed</fromnode-name>
496 <fromserviceparameter-name>OUTmedfield</fromserviceparameter-name>
497 <tonode-name>EndInit</tonode-name>
498 <toserviceparameter-name>medfield</toserviceparameter-name>
499 <coord-list/> </link> </link-list>
502 <fromnode-name>LoopGraph</fromnode-name>
503 <fromserviceparameter-name>Init\index</fromserviceparameter-name>
504 <tonode-name>Init</tonode-name>
505 <toserviceparameter-name>index</toserviceparameter-name>
507 <value-type>3</value-type>
508 <value>0</value> </data-value>
509 <coord-list/> </data>
511 <fromnode-name>LoopGraph</fromnode-name>
512 <fromserviceparameter-name>Init\min</fromserviceparameter-name>
513 <tonode-name>Init</tonode-name>
514 <toserviceparameter-name>min</toserviceparameter-name>
516 <value-type>3</value-type>
517 <value>0</value> </data-value>
518 <coord-list/> </data>
520 <fromnode-name>LoopGraph</fromnode-name>
521 <fromserviceparameter-name>Init\max</fromserviceparameter-name>
522 <tonode-name>Init</tonode-name>
523 <toserviceparameter-name>max</toserviceparameter-name>
525 <value-type>3</value-type>
526 <value>4</value> </data-value>
527 <coord-list/> </data>
529 <fromnode-name>LoopGraph</fromnode-name>
530 <fromserviceparameter-name>Init\x1</fromserviceparameter-name>
531 <tonode-name>Init</tonode-name>
532 <toserviceparameter-name>x1</toserviceparameter-name>
534 <value-type>7</value-type>
535 <value>2</value> </data-value>
536 <coord-list/> </data> </data-list></dataflow>