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

Contents of /trunk/modellib/test/python/drucker_prager.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: 15491 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 0.8
12 </Value>
13 </Parameter>
14 <Parameter type="float">
15 <Name>
16 dt_max
17 </Name>
18 <Value>
19 100.0
20 </Value>
21 </Parameter>
22 <Parameter type="int">
23 <Name>
24 t
25 </Name>
26 <Value>
27 0
28 </Value>
29 </Parameter>
30 </Model>
31 </Component>
32 <Component rank="1">
33 <Model id="102" module="esys.modellib.mechanics" type="DruckerPrager">
34 <Parameter type="NoneType">
35 <Name>
36 stress
37 </Name>
38 <Value>
39 None
40 </Value>
41 </Parameter>
42 <Parameter type="float">
43 <Name>
44 hardening
45 </Name>
46 <Value>
47 0.0
48 </Value>
49 </Parameter>
50 <Parameter type="NoneType">
51 <Name>
52 internal_force
53 </Name>
54 <Value>
55 None
56 </Value>
57 </Parameter>
58 <Parameter type="float">
59 <Name>
60 abs_tol
61 </Name>
62 <Value>
63 1e-15
64 </Value>
65 </Parameter>
66 <Parameter type="float">
67 <Name>
68 shear_modulus
69 </Name>
70 <Value>
71 1.0
72 </Value>
73 </Parameter>
74 <Parameter type="NoneType">
75 <Name>
76 external_force
77 </Name>
78 <Value>
79 None
80 </Value>
81 </Parameter>
82 <Parameter type="int">
83 <Name>
84 max_iter
85 </Name>
86 <Value>
87 10
88 </Value>
89 </Parameter>
90 <Parameter type="float">
91 <Name>
92 expansion_coefficient
93 </Name>
94 <Value>
95 0.0
96 </Value>
97 </Parameter>
98 <Parameter type="Link">
99 <Name>
100 domain
101 </Name>
102 <Value>
103 <Link>
104 <Target>
105 103
106 </Target>
107 <Attribute>
108 domain
109 </Attribute>
110 </Link>
111 </Value>
112 </Parameter>
113 <Parameter type="float">
114 <Name>
115 bulk_modulus
116 </Name>
117 <Value>
118 1000.0
119 </Value>
120 </Parameter>
121 <Parameter type="NoneType">
122 <Name>
123 displacement
124 </Name>
125 <Value>
126 None
127 </Value>
128 </Parameter>
129 <Parameter type="float">
130 <Name>
131 friction_parameter
132 </Name>
133 <Value>
134 0.0
135 </Value>
136 </Parameter>
137 <Parameter type="float">
138 <Name>
139 dilatancy_parameter
140 </Name>
141 <Value>
142 0.0
143 </Value>
144 </Parameter>
145 <Parameter type="float">
146 <Name>
147 rel_tol
148 </Name>
149 <Value>
150 0.01
151 </Value>
152 </Parameter>
153 <Parameter type="float">
154 <Name>
155 shear_length
156 </Name>
157 <Value>
158 0.9
159 </Value>
160 </Parameter>
161 <Parameter type="float">
162 <Name>
163 plastic_stress
164 </Name>
165 <Value>
166 0.0
167 </Value>
168 </Parameter>
169 <Parameter type="Link">
170 <Name>
171 prescribed_velocity
172 </Name>
173 <Value>
174 <Link>
175 <Target>
176 104
177 </Target>
178 <Attribute>
179 value_of_constraint
180 </Attribute>
181 </Link>
182 </Value>
183 </Parameter>
184 <Parameter type="Link">
185 <Name>
186 velocity
187 </Name>
188 <Value>
189 <Link>
190 <Target>
191 105
192 </Target>
193 <Attribute>
194 out
195 </Attribute>
196 </Link>
197 </Value>
198 </Parameter>
199 <Parameter type="Link">
200 <Name>
201 location_prescribed_velocity
202 </Name>
203 <Value>
204 <Link>
205 <Target>
206 104
207 </Target>
208 <Attribute>
209 location_of_constraint
210 </Attribute>
211 </Link>
212 </Value>
213 </Parameter>
214 <Parameter type="NoneType">
215 <Name>
216 temperature
217 </Name>
218 <Value>
219 None
220 </Value>
221 </Parameter>
222 </Model>
223 </Component>
224 <Component rank="2">
225 <Model id="106" module="esys.modellib.visualization" type="WriteVTK">
226 <Parameter type="NoneType">
227 <Name>
228 data17
229 </Name>
230 <Value>
231 None
232 </Value>
233 </Parameter>
234 <Parameter type="str">
235 <Name>
236 filename
237 </Name>
238 <Value>
239 ./temp.xml
240 </Value>
241 </Parameter>
242 <Parameter type="NoneType">
243 <Name>
244 data9
245 </Name>
246 <Value>
247 None
248 </Value>
249 </Parameter>
250 <Parameter type="NoneType">
251 <Name>
252 data8
253 </Name>
254 <Value>
255 None
256 </Value>
257 </Parameter>
258 <Parameter type="NoneType">
259 <Name>
260 data5
261 </Name>
262 <Value>
263 None
264 </Value>
265 </Parameter>
266 <Parameter type="NoneType">
267 <Name>
268 data4
269 </Name>
270 <Value>
271 None
272 </Value>
273 </Parameter>
274 <Parameter type="NoneType">
275 <Name>
276 data7
277 </Name>
278 <Value>
279 None
280 </Value>
281 </Parameter>
282 <Parameter type="NoneType">
283 <Name>
284 data6
285 </Name>
286 <Value>
287 None
288 </Value>
289 </Parameter>
290 <Parameter type="Link">
291 <Name>
292 data1
293 </Name>
294 <Value>
295 <Link>
296 <Target>
297 102
298 </Target>
299 <Attribute>
300 velocity
301 </Attribute>
302 </Link>
303 </Value>
304 </Parameter>
305 <Parameter type="Link">
306 <Name>
307 data0
308 </Name>
309 <Value>
310 <Link>
311 <Target>
312 102
313 </Target>
314 <Attribute>
315 plastic_stress
316 </Attribute>
317 </Link>
318 </Value>
319 </Parameter>
320 <Parameter type="NoneType">
321 <Name>
322 data3
323 </Name>
324 <Value>
325 None
326 </Value>
327 </Parameter>
328 <Parameter type="Link">
329 <Name>
330 data2
331 </Name>
332 <Value>
333 <Link>
334 <Target>
335 102
336 </Target>
337 <Attribute>
338 stress
339 </Attribute>
340 </Link>
341 </Value>
342 </Parameter>
343 <Parameter type="NoneType">
344 <Name>
345 name10
346 </Name>
347 <Value>
348 None
349 </Value>
350 </Parameter>
351 <Parameter type="NoneType">
352 <Name>
353 name11
354 </Name>
355 <Value>
356 None
357 </Value>
358 </Parameter>
359 <Parameter type="NoneType">
360 <Name>
361 name12
362 </Name>
363 <Value>
364 None
365 </Value>
366 </Parameter>
367 <Parameter type="NoneType">
368 <Name>
369 name13
370 </Name>
371 <Value>
372 None
373 </Value>
374 </Parameter>
375 <Parameter type="NoneType">
376 <Name>
377 name14
378 </Name>
379 <Value>
380 None
381 </Value>
382 </Parameter>
383 <Parameter type="NoneType">
384 <Name>
385 name15
386 </Name>
387 <Value>
388 None
389 </Value>
390 </Parameter>
391 <Parameter type="NoneType">
392 <Name>
393 name16
394 </Name>
395 <Value>
396 None
397 </Value>
398 </Parameter>
399 <Parameter type="NoneType">
400 <Name>
401 name17
402 </Name>
403 <Value>
404 None
405 </Value>
406 </Parameter>
407 <Parameter type="NoneType">
408 <Name>
409 name18
410 </Name>
411 <Value>
412 None
413 </Value>
414 </Parameter>
415 <Parameter type="NoneType">
416 <Name>
417 name19
418 </Name>
419 <Value>
420 None
421 </Value>
422 </Parameter>
423 <Parameter type="NoneType">
424 <Name>
425 name6
426 </Name>
427 <Value>
428 None
429 </Value>
430 </Parameter>
431 <Parameter type="NoneType">
432 <Name>
433 name7
434 </Name>
435 <Value>
436 None
437 </Value>
438 </Parameter>
439 <Parameter type="NoneType">
440 <Name>
441 name4
442 </Name>
443 <Value>
444 None
445 </Value>
446 </Parameter>
447 <Parameter type="NoneType">
448 <Name>
449 name5
450 </Name>
451 <Value>
452 None
453 </Value>
454 </Parameter>
455 <Parameter type="NoneType">
456 <Name>
457 name2
458 </Name>
459 <Value>
460 None
461 </Value>
462 </Parameter>
463 <Parameter type="NoneType">
464 <Name>
465 name3
466 </Name>
467 <Value>
468 None
469 </Value>
470 </Parameter>
471 <Parameter type="NoneType">
472 <Name>
473 name0
474 </Name>
475 <Value>
476 None
477 </Value>
478 </Parameter>
479 <Parameter type="NoneType">
480 <Name>
481 name1
482 </Name>
483 <Value>
484 None
485 </Value>
486 </Parameter>
487 <Parameter type="NoneType">
488 <Name>
489 data15
490 </Name>
491 <Value>
492 None
493 </Value>
494 </Parameter>
495 <Parameter type="NoneType">
496 <Name>
497 data14
498 </Name>
499 <Value>
500 None
501 </Value>
502 </Parameter>
503 <Parameter type="float">
504 <Name>
505 dt
506 </Name>
507 <Value>
508 0.01
509 </Value>
510 </Parameter>
511 <Parameter type="NoneType">
512 <Name>
513 data16
514 </Name>
515 <Value>
516 None
517 </Value>
518 </Parameter>
519 <Parameter type="NoneType">
520 <Name>
521 data11
522 </Name>
523 <Value>
524 None
525 </Value>
526 </Parameter>
527 <Parameter type="NoneType">
528 <Name>
529 data10
530 </Name>
531 <Value>
532 None
533 </Value>
534 </Parameter>
535 <Parameter type="NoneType">
536 <Name>
537 name8
538 </Name>
539 <Value>
540 None
541 </Value>
542 </Parameter>
543 <Parameter type="NoneType">
544 <Name>
545 data12
546 </Name>
547 <Value>
548 None
549 </Value>
550 </Parameter>
551 <Parameter type="NoneType">
552 <Name>
553 data13
554 </Name>
555 <Value>
556 None
557 </Value>
558 </Parameter>
559 <Parameter type="int">
560 <Name>
561 n
562 </Name>
563 <Value>
564 0
565 </Value>
566 </Parameter>
567 <Parameter type="NoneType">
568 <Name>
569 name9
570 </Name>
571 <Value>
572 None
573 </Value>
574 </Parameter>
575 <Parameter type="Link">
576 <Name>
577 t
578 </Name>
579 <Value>
580 <Link>
581 <Target>
582 101
583 </Target>
584 <Attribute>
585 t
586 </Attribute>
587 </Link>
588 </Value>
589 </Parameter>
590 <Parameter type="NoneType">
591 <Name>
592 data19
593 </Name>
594 <Value>
595 None
596 </Value>
597 </Parameter>
598 <Parameter type="NoneType">
599 <Name>
600 data18
601 </Name>
602 <Value>
603 None
604 </Value>
605 </Parameter>
606 </Model>
607 </Component>
608 </Simulation>
609 <ParameterSet id="103" module="esys.modellib.geometry" type="RectangularDomain">
610 <Parameter type="int">
611 <Name>
612 dim
613 </Name>
614 <Value>
615 3
616 </Value>
617 </Parameter>
618 <Parameter type="NumArray">
619 <Name>
620 l
621 </Name>
622 <Value>
623 <NumArray>
624 <ArrayType>
625 Float
626 </ArrayType>
627 <Shape>
628 3
629 </Shape>
630 <Data>
631 0.5 1.0 1.0
632 </Data>
633 </NumArray>
634 </Value>
635 </Parameter>
636 <Parameter type="int">
637 <Name>
638 integrationOrder
639 </Name>
640 <Value>
641 -1
642 </Value>
643 </Parameter>
644 <Parameter type="NumArray">
645 <Name>
646 n
647 </Name>
648 <Value>
649 <NumArray>
650 <ArrayType>
651 Int
652 </ArrayType>
653 <Shape>
654 3
655 </Shape>
656 <Data>
657 30 6 6
658 </Data>
659 </NumArray>
660 </Value>
661 </Parameter>
662 <Parameter type="NumArray">
663 <Name>
664 periodic
665 </Name>
666 <Value>
667 <NumArray>
668 <ArrayType>
669 Bool
670 </ArrayType>
671 <Shape>
672 3
673 </Shape>
674 <Data>
675 0 0 0
676 </Data>
677 </NumArray>
678 </Value>
679 </Parameter>
680 <Parameter type="int">
681 <Name>
682 order
683 </Name>
684 <Value>
685 1
686 </Value>
687 </Parameter>
688 </ParameterSet>
689 <Model id="104" module="esys.modellib.geometry" type="VectorConstrainerOverBox">
690 <Parameter type="Link">
691 <Name>
692 domain
693 </Name>
694 <Value>
695 <Link>
696 <Target>
697 103
698 </Target>
699 <Attribute>
700 domain
701 </Attribute>
702 </Link>
703 </Value>
704 </Parameter>
705 <Parameter type="NumArray">
706 <Name>
707 right
708 </Name>
709 <Value>
710 <NumArray>
711 <ArrayType>
712 Bool
713 </ArrayType>
714 <Shape>
715 3
716 </Shape>
717 <Data>
718 1 1 1
719 </Data>
720 </NumArray>
721 </Value>
722 </Parameter>
723 <Parameter type="NumArray">
724 <Name>
725 bottom
726 </Name>
727 <Value>
728 <NumArray>
729 <ArrayType>
730 Bool
731 </ArrayType>
732 <Shape>
733 3
734 </Shape>
735 <Data>
736 0 0 0
737 </Data>
738 </NumArray>
739 </Value>
740 </Parameter>
741 <Parameter type="NumArray">
742 <Name>
743 top
744 </Name>
745 <Value>
746 <NumArray>
747 <ArrayType>
748 Bool
749 </ArrayType>
750 <Shape>
751 3
752 </Shape>
753 <Data>
754 0 0 0
755 </Data>
756 </NumArray>
757 </Value>
758 </Parameter>
759 <Parameter type="NumArray">
760 <Name>
761 back
762 </Name>
763 <Value>
764 <NumArray>
765 <ArrayType>
766 Bool
767 </ArrayType>
768 <Shape>
769 3
770 </Shape>
771 <Data>
772 0 0 0
773 </Data>
774 </NumArray>
775 </Value>
776 </Parameter>
777 <Parameter type="Link">
778 <Name>
779 value
780 </Name>
781 <Value>
782 <Link>
783 <Target>
784 105
785 </Target>
786 <Attribute>
787 out
788 </Attribute>
789 </Link>
790 </Value>
791 </Parameter>
792 <Parameter type="float">
793 <Name>
794 tol
795 </Name>
796 <Value>
797 1e-08
798 </Value>
799 </Parameter>
800 <Parameter type="NumArray">
801 <Name>
802 front
803 </Name>
804 <Value>
805 <NumArray>
806 <ArrayType>
807 Bool
808 </ArrayType>
809 <Shape>
810 3
811 </Shape>
812 <Data>
813 0 0 0
814 </Data>
815 </NumArray>
816 </Value>
817 </Parameter>
818 <Parameter type="NumArray">
819 <Name>
820 left
821 </Name>
822 <Value>
823 <NumArray>
824 <ArrayType>
825 Bool
826 </ArrayType>
827 <Shape>
828 3
829 </Shape>
830 <Data>
831 1 0 0
832 </Data>
833 </NumArray>
834 </Value>
835 </Parameter>
836 </Model>
837 <ParameterSet id="105" module="esys.modellib.input" type="InterpolateOverBox">
838 <Parameter type="Link">
839 <Name>
840 domain
841 </Name>
842 <Value>
843 <Link>
844 <Target>
845 103
846 </Target>
847 <Attribute>
848 domain
849 </Attribute>
850 </Link>
851 </Value>
852 </Parameter>
853 <Parameter type="NumArray">
854 <Name>
855 value_left_top_back
856 </Name>
857 <Value>
858 <NumArray>
859 <ArrayType>
860 Float
861 </ArrayType>
862 <Shape>
863 3
864 </Shape>
865 <Data>
866 -1.0 0.0 0.0
867 </Data>
868 </NumArray>
869 </Value>
870 </Parameter>
871 <Parameter type="NumArray">
872 <Name>
873 value_right_top_front
874 </Name>
875 <Value>
876 <NumArray>
877 <ArrayType>
878 Float
879 </ArrayType>
880 <Shape>
881 3
882 </Shape>
883 <Data>
884 0.0 0.0 0.0
885 </Data>
886 </NumArray>
887 </Value>
888 </Parameter>
889 <Parameter type="NumArray">
890 <Name>
891 value_left_bottom_front
892 </Name>
893 <Value>
894 <NumArray>
895 <ArrayType>
896 Float
897 </ArrayType>
898 <Shape>
899 3
900 </Shape>
901 <Data>
902 -1.0 0.0 0.0
903 </Data>
904 </NumArray>
905 </Value>
906 </Parameter>
907 <Parameter type="NumArray">
908 <Name>
909 value_right_bottom_back
910 </Name>
911 <Value>
912 <NumArray>
913 <ArrayType>
914 Float
915 </ArrayType>
916 <Shape>
917 3
918 </Shape>
919 <Data>
920 0.0 0.0 0.0
921 </Data>
922 </NumArray>
923 </Value>
924 </Parameter>
925 <Parameter type="NumArray">
926 <Name>
927 value_left_top_front
928 </Name>
929 <Value>
930 <NumArray>
931 <ArrayType>
932 Float
933 </ArrayType>
934 <Shape>
935 3
936 </Shape>
937 <Data>
938 -1.0 0.0 0.0
939 </Data>
940 </NumArray>
941 </Value>
942 </Parameter>
943 <Parameter type="NumArray">
944 <Name>
945 value_right_top_back
946 </Name>
947 <Value>
948 <NumArray>
949 <ArrayType>
950 Float
951 </ArrayType>
952 <Shape>
953 3
954 </Shape>
955 <Data>
956 0.0 0.0 0.0
957 </Data>
958 </NumArray>
959 </Value>
960 </Parameter>
961 <Parameter type="NumArray">
962 <Name>
963 value_right_bottom_front
964 </Name>
965 <Value>
966 <NumArray>
967 <ArrayType>
968 Float
969 </ArrayType>
970 <Shape>
971 3
972 </Shape>
973 <Data>
974 0.0 0.0 0.0
975 </Data>
976 </NumArray>
977 </Value>
978 </Parameter>
979 <Parameter type="NumArray">
980 <Name>
981 value_left_bottom_back
982 </Name>
983 <Value>
984 <NumArray>
985 <ArrayType>
986 Float
987 </ArrayType>
988 <Shape>
989 3
990 </Shape>
991 <Data>
992 -1.0 0.0 0.0
993 </Data>
994 </NumArray>
995 </Value>
996 </Parameter>
997 </ParameterSet>
998 </ESys>

  ViewVC Help
Powered by ViewVC 1.1.26