/[escript]/trunk/esys2/finley/test/python/ContactMeshCheck.py
ViewVC logotype

Annotation of /trunk/esys2/finley/test/python/ContactMeshCheck.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations)
Wed Dec 15 07:08:39 2004 UTC (16 years, 2 months ago) by jgs
File MIME type: text/x-python
File size: 17151 byte(s)
*** empty log message ***

1 jgs 82 # $Id$
2     """checks the contact mesh generator for a single element by comparing the generated mesh file with a reference"""
3     import sys
4     import os
5     import unittest
6    
7     esys_root=os.getenv('ESYS_ROOT')
8     sys.path.append(esys_root+'/finley/lib')
9     sys.path.append(esys_root+'/escript/lib')
10     sys.path.append(esys_root+'/escript/py_src')
11    
12     from escript import *
13     from util import *
14    
15     import finley
16     import math
17     TMPFILE="tmp.msh"
18     numElm=1
19    
20     Contact_2D_order1="""+Rectangular 2 x 2 mesh+Rectangular 2 x 2 mesh
21     2D-Nodes 8
22     0 0 11 0.000000000000000e+00 0.000000000000000e+00
23     1 1 12 1.000000000000000e+00 0.000000000000000e+00
24     2 2 21 0.000000000000000e+00 5.000000000000000e-01
25     3 3 22 1.000000000000000e+00 5.000000000000000e-01
26     4 4 11 0.000000000000000e+00 5.000000000000000e-01
27     5 5 12 1.000000000000000e+00 5.000000000000000e-01
28     6 6 21 0.000000000000000e+00 1.000000000000000e+00
29     7 7 22 1.000000000000000e+00 1.000000000000000e+00
30     Rec4 2
31     0 0 0 1 3 2
32     5 0 4 5 7 6
33     Line2 6
34     1 10 0 1
35     3 1 2 0
36     4 2 1 3
37     8 1 6 4
38     9 2 5 7
39     7 20 7 6
40     Line2_Contact 1
41     2 10 3 2 5 4
42     Point1 0
43     """
44    
45     Contact_2D_order1_onFace="""+Rectangular 2 x 2 mesh+Rectangular 2 x 2 mesh
46     2D-Nodes 8
47     0 0 11 0.000000000000000e+00 0.000000000000000e+00
48     1 1 12 1.000000000000000e+00 0.000000000000000e+00
49     2 2 21 0.000000000000000e+00 5.000000000000000e-01
50     3 3 22 1.000000000000000e+00 5.000000000000000e-01
51     4 4 11 0.000000000000000e+00 5.000000000000000e-01
52     5 5 12 1.000000000000000e+00 5.000000000000000e-01
53     6 6 21 0.000000000000000e+00 1.000000000000000e+00
54     7 7 22 1.000000000000000e+00 1.000000000000000e+00
55     Rec4 2
56     0 0 0 1 3 2
57     5 0 4 5 7 6
58     Rec4Face 6
59     1 10 0 1 3 2
60     3 1 2 0 1 3
61     4 2 1 3 2 0
62     7 20 7 6 4 5
63     8 1 6 4 5 7
64     9 2 5 7 6 4
65     Rec4Face_Contact 1
66     2 10 3 2 0 1 5 4 6 7
67     Point1 0
68     """
69    
70     Contact_2D_order2="""+Rectangular 3 x 3 mesh+Rectangular 3 x 3 mesh
71     2D-Nodes 16
72     0 0 11 0.000000000000000e+00 0.000000000000000e+00
73     1 1 10 5.000000000000000e-01 0.000000000000000e+00
74     2 2 12 1.000000000000000e+00 0.000000000000000e+00
75     3 3 1 0.000000000000000e+00 2.500000000000000e-01
76     5 4 2 1.000000000000000e+00 2.500000000000000e-01
77     6 5 21 0.000000000000000e+00 5.000000000000000e-01
78     7 6 20 5.000000000000000e-01 5.000000000000000e-01
79     8 7 22 1.000000000000000e+00 5.000000000000000e-01
80     9 8 11 0.000000000000000e+00 5.000000000000000e-01
81     10 9 10 5.000000000000000e-01 5.000000000000000e-01
82     11 10 12 1.000000000000000e+00 5.000000000000000e-01
83     12 11 1 0.000000000000000e+00 7.500000000000000e-01
84     14 12 2 1.000000000000000e+00 7.500000000000000e-01
85     15 13 21 0.000000000000000e+00 1.000000000000000e+00
86     16 14 20 5.000000000000000e-01 1.000000000000000e+00
87     17 15 22 1.000000000000000e+00 1.000000000000000e+00
88     Rec8 2
89     0 0 0 2 8 6 1 5 7 3
90     5 0 9 11 17 15 10 14 16 12
91     Line3 6
92     1 10 0 2 1
93     3 1 6 0 3
94     4 2 2 8 5
95     8 1 15 9 12
96     9 2 11 17 14
97     7 20 17 15 16
98     Line3_Contact 1
99     2 10 8 6 7 11 9 10
100     Point1 0
101     """
102    
103     Contact_2D_order2_onFace="""+Rectangular 3 x 3 mesh+Rectangular 3 x 3 mesh
104     2D-Nodes 16
105     0 0 11 0.000000000000000e+00 0.000000000000000e+00
106     1 1 10 5.000000000000000e-01 0.000000000000000e+00
107     2 2 12 1.000000000000000e+00 0.000000000000000e+00
108     3 3 1 0.000000000000000e+00 2.500000000000000e-01
109     5 4 2 1.000000000000000e+00 2.500000000000000e-01
110     6 5 21 0.000000000000000e+00 5.000000000000000e-01
111     7 6 20 5.000000000000000e-01 5.000000000000000e-01
112     8 7 22 1.000000000000000e+00 5.000000000000000e-01
113     9 8 11 0.000000000000000e+00 5.000000000000000e-01
114     10 9 10 5.000000000000000e-01 5.000000000000000e-01
115     11 10 12 1.000000000000000e+00 5.000000000000000e-01
116     12 11 1 0.000000000000000e+00 7.500000000000000e-01
117     14 12 2 1.000000000000000e+00 7.500000000000000e-01
118     15 13 21 0.000000000000000e+00 1.000000000000000e+00
119     16 14 20 5.000000000000000e-01 1.000000000000000e+00
120     17 15 22 1.000000000000000e+00 1.000000000000000e+00
121     Rec8 2
122     0 0 0 2 8 6 1 5 7 3
123     5 0 9 11 17 15 10 14 16 12
124     Rec8Face 6
125     1 10 0 2 8 6 1 5 7 3
126     3 1 6 0 2 8 3 1 5 7
127     4 2 2 8 6 0 5 7 3 1
128     7 20 17 15 9 11 16 12 10 14
129     8 1 15 9 11 17 12 10 14 16
130     9 2 11 17 15 9 14 16 12 10
131     Rec8Face_Contact 1
132     2 10 8 6 0 2 7 3 1 5 11 9 15 17 10 12 16 14
133     Point1 0
134     """
135    
136     Contact_3D_order1="""+Rectangular 2 x 2 x 2 mesh+Rectangular 2 x 2 x 2 mesh
137     3D-Nodes 16
138     0 0 111 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
139     1 1 112 1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
140     2 2 121 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
141     3 3 122 1.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
142     4 4 211 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
143     5 5 212 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
144     6 6 221 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
145     7 7 222 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
146     8 8 111 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
147     9 9 112 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
148     10 10 121 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
149     11 11 122 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
150     12 12 211 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
151     13 13 212 1.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
152     14 14 221 0.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
153     15 15 222 1.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
154     Hex8 2
155     0 0 0 1 3 2 4 5 7 6
156     7 0 8 9 11 10 12 13 15 14
157     Rec4 10
158     1 100 0 2 3 1
159     3 1 0 4 6 2
160     5 10 0 1 5 4
161     4 2 1 3 7 5
162     6 20 2 6 7 3
163     10 1 8 12 14 10
164     12 10 8 9 13 12
165     11 2 9 11 15 13
166     13 20 10 14 15 11
167     9 200 12 13 15 14
168     Rec4_Contact 1
169     2 100 4 5 7 6 8 9 11 10
170     Point1 0
171     """
172    
173     Contact_3D_order1_onFace="""+Rectangular 2 x 2 x 2 mesh+Rectangular 2 x 2 x 2 mesh
174     3D-Nodes 16
175     0 0 111 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
176     1 1 112 1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
177     2 2 121 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
178     3 3 122 1.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
179     4 4 211 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
180     5 5 212 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
181     6 6 221 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
182     7 7 222 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
183     8 8 111 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
184     9 9 112 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
185     10 10 121 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
186     11 11 122 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
187     12 12 211 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
188     13 13 212 1.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
189     14 14 221 0.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
190     15 15 222 1.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
191     Hex8 2
192     0 0 0 1 3 2 4 5 7 6
193     7 0 8 9 11 10 12 13 15 14
194     Hex8Face 10
195     1 100 0 2 3 1 4 6 7 5
196     3 1 0 4 6 2 1 5 7 3
197     4 2 1 3 7 5 0 2 6 4
198     5 10 0 1 5 4 2 3 7 6
199     6 20 2 6 7 3 0 4 5 1
200     9 200 12 13 15 14 8 9 11 10
201     10 1 8 12 14 10 9 13 15 11
202     11 2 9 11 15 13 8 10 14 12
203     12 10 8 9 13 12 10 11 15 14
204     13 20 10 14 15 11 8 12 13 9
205     Hex8Face_Contact 1
206     2 100 4 5 7 6 0 1 3 2 8 9 11 10 12 13 15 14
207     Point1 0
208     """
209    
210     Contact_3D_order2="""+Rectangular 3 x 3 x 3 mesh+Rectangular 3 x 3 x 3 mesh
211     3D-Nodes 40
212     0 0 111 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
213     1 1 110 5.000000000000000e-01 0.000000000000000e+00 0.000000000000000e+00
214     2 2 112 1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
215     3 3 101 0.000000000000000e+00 5.000000000000000e-01 0.000000000000000e+00
216     5 4 102 1.000000000000000e+00 5.000000000000000e-01 0.000000000000000e+00
217     6 5 121 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
218     7 6 120 5.000000000000000e-01 1.000000000000000e+00 0.000000000000000e+00
219     8 7 122 1.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
220     9 8 11 0.000000000000000e+00 0.000000000000000e+00 2.500000000000000e-01
221     11 9 12 1.000000000000000e+00 0.000000000000000e+00 2.500000000000000e-01
222     15 10 21 0.000000000000000e+00 1.000000000000000e+00 2.500000000000000e-01
223     17 11 22 1.000000000000000e+00 1.000000000000000e+00 2.500000000000000e-01
224     18 12 211 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
225     19 13 210 5.000000000000000e-01 0.000000000000000e+00 5.000000000000000e-01
226     20 14 212 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
227     21 15 201 0.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
228     23 16 202 1.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
229     24 17 221 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
230     25 18 220 5.000000000000000e-01 1.000000000000000e+00 5.000000000000000e-01
231     26 19 222 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
232     27 20 111 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
233     28 21 110 5.000000000000000e-01 0.000000000000000e+00 5.000000000000000e-01
234     29 22 112 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
235     30 23 101 0.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
236     32 24 102 1.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
237     33 25 121 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
238     34 26 120 5.000000000000000e-01 1.000000000000000e+00 5.000000000000000e-01
239     35 27 122 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
240     36 28 11 0.000000000000000e+00 0.000000000000000e+00 7.500000000000000e-01
241     38 29 12 1.000000000000000e+00 0.000000000000000e+00 7.500000000000000e-01
242     42 30 21 0.000000000000000e+00 1.000000000000000e+00 7.500000000000000e-01
243     44 31 22 1.000000000000000e+00 1.000000000000000e+00 7.500000000000000e-01
244     45 32 211 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
245     46 33 210 5.000000000000000e-01 0.000000000000000e+00 1.000000000000000e+00
246     47 34 212 1.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
247     48 35 201 0.000000000000000e+00 5.000000000000000e-01 1.000000000000000e+00
248     50 36 202 1.000000000000000e+00 5.000000000000000e-01 1.000000000000000e+00
249     51 37 221 0.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
250     52 38 220 5.000000000000000e-01 1.000000000000000e+00 1.000000000000000e+00
251     53 39 222 1.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
252     Hex20 2
253     0 0 0 2 8 6 18 20 26 24 1 5 7 3 9 11 17 15 19 23 25 21
254     7 0 27 29 35 33 45 47 53 51 28 32 34 30 36 38 44 42 46 50 52 48
255     Rec8 10
256     1 100 0 6 8 2 3 7 5 1
257     3 1 0 18 24 6 9 21 15 3
258     5 10 0 2 20 18 1 11 19 9
259     4 2 2 8 26 20 5 17 23 11
260     6 20 6 24 26 8 15 25 17 7
261     10 1 27 45 51 33 36 48 42 30
262     12 10 27 29 47 45 28 38 46 36
263     11 2 29 35 53 47 32 44 50 38
264     13 20 33 51 53 35 42 52 44 34
265     9 200 45 47 53 51 46 50 52 48
266     Rec8_Contact 1
267     2 100 18 20 26 24 19 23 25 21 27 29 35 33 28 32 34 30
268     Point1 0
269     """
270    
271     Contact_3D_order2_onFace="""+Rectangular 3 x 3 x 3 mesh+Rectangular 3 x 3 x 3 mesh
272     3D-Nodes 40
273     0 0 111 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
274     1 1 110 5.000000000000000e-01 0.000000000000000e+00 0.000000000000000e+00
275     2 2 112 1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
276     3 3 101 0.000000000000000e+00 5.000000000000000e-01 0.000000000000000e+00
277     5 4 102 1.000000000000000e+00 5.000000000000000e-01 0.000000000000000e+00
278     6 5 121 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
279     7 6 120 5.000000000000000e-01 1.000000000000000e+00 0.000000000000000e+00
280     8 7 122 1.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
281     9 8 11 0.000000000000000e+00 0.000000000000000e+00 2.500000000000000e-01
282     11 9 12 1.000000000000000e+00 0.000000000000000e+00 2.500000000000000e-01
283     15 10 21 0.000000000000000e+00 1.000000000000000e+00 2.500000000000000e-01
284     17 11 22 1.000000000000000e+00 1.000000000000000e+00 2.500000000000000e-01
285     18 12 211 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
286     19 13 210 5.000000000000000e-01 0.000000000000000e+00 5.000000000000000e-01
287     20 14 212 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
288     21 15 201 0.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
289     23 16 202 1.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
290     24 17 221 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
291     25 18 220 5.000000000000000e-01 1.000000000000000e+00 5.000000000000000e-01
292     26 19 222 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
293     27 20 111 0.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
294     28 21 110 5.000000000000000e-01 0.000000000000000e+00 5.000000000000000e-01
295     29 22 112 1.000000000000000e+00 0.000000000000000e+00 5.000000000000000e-01
296     30 23 101 0.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
297     32 24 102 1.000000000000000e+00 5.000000000000000e-01 5.000000000000000e-01
298     33 25 121 0.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
299     34 26 120 5.000000000000000e-01 1.000000000000000e+00 5.000000000000000e-01
300     35 27 122 1.000000000000000e+00 1.000000000000000e+00 5.000000000000000e-01
301     36 28 11 0.000000000000000e+00 0.000000000000000e+00 7.500000000000000e-01
302     38 29 12 1.000000000000000e+00 0.000000000000000e+00 7.500000000000000e-01
303     42 30 21 0.000000000000000e+00 1.000000000000000e+00 7.500000000000000e-01
304     44 31 22 1.000000000000000e+00 1.000000000000000e+00 7.500000000000000e-01
305     45 32 211 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
306     46 33 210 5.000000000000000e-01 0.000000000000000e+00 1.000000000000000e+00
307     47 34 212 1.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
308     48 35 201 0.000000000000000e+00 5.000000000000000e-01 1.000000000000000e+00
309     50 36 202 1.000000000000000e+00 5.000000000000000e-01 1.000000000000000e+00
310     51 37 221 0.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
311     52 38 220 5.000000000000000e-01 1.000000000000000e+00 1.000000000000000e+00
312     53 39 222 1.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
313     Hex20 2
314     0 0 0 2 8 6 18 20 26 24 1 5 7 3 9 11 17 15 19 23 25 21
315     7 0 27 29 35 33 45 47 53 51 28 32 34 30 36 38 44 42 46 50 52 48
316     Hex20Face 10
317     1 100 0 6 8 2 18 24 26 20 3 7 5 1 9 15 17 11 21 25 23 19
318     3 1 0 18 24 6 2 20 26 8 9 21 15 3 1 19 25 7 11 23 17 5
319     4 2 2 8 26 20 0 6 24 18 5 17 23 11 1 7 25 19 3 15 21 9
320     5 10 0 2 20 18 6 8 26 24 1 11 19 9 3 5 23 21 7 17 25 15
321     6 20 6 24 26 8 0 18 20 2 15 25 17 7 3 21 23 5 9 19 11 1
322     9 200 45 47 53 51 27 29 35 33 46 50 52 48 36 38 44 42 28 32 34 30
323     10 1 27 45 51 33 29 47 53 35 36 48 42 30 28 46 52 34 38 50 44 32
324     11 2 29 35 53 47 27 33 51 45 32 44 50 38 28 34 52 46 30 42 48 36
325     12 10 27 29 47 45 33 35 53 51 28 38 46 36 30 32 50 48 34 44 52 42
326     13 20 33 51 53 35 27 45 47 29 42 52 44 34 30 48 50 32 36 46 38 28
327     Hex20Face_Contact 1
328     2 100 18 20 26 24 0 2 8 6 19 23 25 21 9 11 17 15 1 5 7 3 27 29 35 33 45 47 53 51 28 32 34 30 36 38 44 42 46 50 52 48
329     Point1 0
330     """
331    
332     def checker(dom,reference):
333     dom.write(TMPFILE)
334     if reference != open(TMPFILE).read():
335     return None
336     else:
337     return not None
338    
339     def mkMesh(dim,order,onElem):
340     if dim==2:
341     ms1=finley.Rectangle(numElm,numElm,order,l1=0.5,useElementsOnFace=onElem)
342     ms2=finley.Rectangle(numElm,numElm,order,l1=0.5,useElementsOnFace=onElem)
343     ms2.setX(ms2.getX()+[0,0.5])
344     else:
345     ms1=finley.Brick(numElm,numElm,numElm,order,l2=0.5,useElementsOnFace=onElem)
346     ms2=finley.Brick(numElm,numElm,numElm,order,l2=0.5,useElementsOnFace=onElem)
347     ms2.setX(ms2.getX()+[0,0,0.5])
348     return finley.JoinFaces([ms1,ms2])
349    
350     failed=[]
351    
352     case="Contact: 2D, order 1"
353     my_dom=mkMesh(2,1,FALSE)
354     if checker(my_dom,Contact_2D_order1):
355     print case," passed."
356     else:
357     failed.append(case)
358    
359     case="Contact: 2D, order 1,elements on face"
360     my_dom=mkMesh(2,1,TRUE)
361     if checker(my_dom,Contact_2D_order1_onFace):
362     print case," passed."
363     else:
364     failed.append(case)
365    
366     case="Contact: 2D, order 2"
367     my_dom=mkMesh(2,2,FALSE)
368     if checker(my_dom,Contact_2D_order2):
369     print case," passed."
370     else:
371     failed.append(case)
372    
373     case="Contact: 2D, order 2,elements on face"
374     my_dom=mkMesh(2,2,TRUE)
375     if checker(my_dom,Contact_2D_order2_onFace):
376     print case," passed."
377     else:
378     failed.append(case)
379    
380     case="Contact: 3D, order 1"
381     my_dom=mkMesh(3,1,FALSE)
382     if checker(my_dom,Contact_3D_order1):
383     print case," passed."
384     else:
385     failed.append(case)
386    
387     case="Contact: 3D, order 1,elements on face"
388     my_dom=mkMesh(3,1,TRUE)
389     if checker(my_dom,Contact_3D_order1_onFace):
390     print case," passed."
391     else:
392     failed.append(case)
393    
394     case="Contact: 3D, order 2"
395     my_dom=mkMesh(3,2,FALSE)
396     if checker(my_dom,Contact_3D_order2):
397     print case," passed."
398     else:
399     failed.append(case)
400    
401     case="Contact: 3D, order 2,elements on face"
402     my_dom=mkMesh(3,2,TRUE)
403     if checker(my_dom,Contact_3D_order2_onFace):
404     print case," passed."
405     else:
406     failed.append(case)
407    
408     if len(failed) == 0:
409     print "@@ contact mesh generation test passed"
410     else:
411     print "@@ contact mesh generation failed for %s"%failed

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26