Parent Directory
|
Revision Log
New method for unit testing to compare two saveVTK files. Can detect same-ness even if the nodes are re-ordered. To do: issue with contact elements in that identical nodes confuses test for node re-ordering.
1 | |
2 | ######################################################## |
3 | # |
4 | # Copyright (c) 2003-2008 by University of Queensland |
5 | # Earth Systems Science Computational Center (ESSCC) |
6 | # http://www.uq.edu.au/esscc |
7 | # |
8 | # Primary Business: Queensland, Australia |
9 | # Licensed under the Open Software License version 3.0 |
10 | # http://www.opensource.org/licenses/osl-3.0.php |
11 | # |
12 | ######################################################## |
13 | |
14 | __copyright__="""Copyright (c) 2003-2008 by University of Queensland |
15 | Earth Systems Science Computational Center (ESSCC) |
16 | http://www.uq.edu.au/esscc |
17 | Primary Business: Queensland, Australia""" |
18 | __license__="""Licensed under the Open Software License version 3.0 |
19 | http://www.opensource.org/licenses/osl-3.0.php""" |
20 | __url__="http://www.uq.edu.au/esscc/escript-finley" |
21 | |
22 | import sys, math, re |
23 | import unittest |
24 | from esys.escript import * |
25 | from esys.finley import ReadMesh |
26 | |
27 | try: |
28 | FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA'] |
29 | except KeyError: |
30 | FINLEY_TEST_DATA='.' |
31 | |
32 | try: |
33 | FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR'] |
34 | except KeyError: |
35 | FINLEY_WORKDIR='.' |
36 | |
37 | FINLEY_TEST_MESH_PATH=FINLEY_TEST_DATA+"/data_meshes/" |
38 | # if os.name == "nt": |
39 | # FINLEY_TEST_MESH_PATH = FINLEY_TEST_MESH_PATH+"win32/" |
40 | FINLEY_WORKDIR_PATH=FINLEY_WORKDIR+"/" |
41 | |
42 | class Test_VisualizationInterface(unittest.TestCase): |
43 | def check_vtk_old(self,f,reference_f): |
44 | # if reference_f.startswith("tet_"): os.link(os.path.join(FINLEY_WORKDIR_PATH,f),os.path.join(FINLEY_TEST_MESH_PATH,reference_f)) |
45 | out_string=open(os.path.join(FINLEY_WORKDIR_PATH,f)).read().splitlines() |
46 | ref_string=open(os.path.join(FINLEY_TEST_MESH_PATH,reference_f)).read().splitlines() |
47 | c=0 |
48 | for l in range(0,len(ref_string)): |
49 | if not ref_string[l].strip()[:2]=="<!": |
50 | line=out_string[c].strip() |
51 | if os.name == "nt": |
52 | line=line.replace("e+00","e+0").replace("e-00","e-0") |
53 | # line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00") |
54 | line=line.replace(".000000e-00",".000000e+00").replace("-0.000000e+00","0.000000e+00") |
55 | self.failUnlessEqual(line,ref_string[l].strip(),"line %d (%s) in vtk files does not match reference (%s)"%(c,line,ref_string[l].strip())) |
56 | c+=1 |
57 | |
58 | # Compare two lists of numbers (stored as space-separated strings) using the L2 norm |
59 | def numericCompareL2(self, s1, s2): |
60 | if s2 == None: return False |
61 | TOL = 1.0e-6 |
62 | vector1 = s1.split() |
63 | vector2 = s2.split() |
64 | if len(vector1) != len(vector2): return False |
65 | diff = 0.0 |
66 | for i in range(0, len(vector1)): |
67 | tmp = float(vector1[i]) - float(vector2[i]) |
68 | diff += tmp * tmp |
69 | if math.sqrt(diff) > TOL: return False |
70 | return True |
71 | |
72 | # Compare two elements (stored as space-separated strings of integers) after mapping node labels |
73 | def elementCompareWithMap(self, e1, e2, map): |
74 | if e2 == None: return False |
75 | vector1 = e1.split() |
76 | vector2 = e2.split() |
77 | if len(vector1) != len(vector2): return False |
78 | for i in range(0, len(vector1)): |
79 | if int(vector1[i]) < 0: return False |
80 | if int(vector1[i]) >= len(map): return False |
81 | if map[int(vector1[i])] != int(vector2[i]): return False |
82 | return True |
83 | |
84 | def compareDataSetWithMap(self, d1, d2, map): |
85 | if len(d1) != len(d2): return False |
86 | for i in range(0, len(d1)): |
87 | if map[i] < 0: return False |
88 | if map[i] >= len(d1): return False |
89 | if not self.numericCompareL2(d1[i], d2[map[i]]): return False |
90 | return True |
91 | |
92 | # Compare two VTK files which were generated by Finley method saveVTK |
93 | def saveVtkCompare(self, file1, file2): |
94 | lineList1 = open(file1).read().splitlines() |
95 | lineList2 = open(file2).read().splitlines() |
96 | |
97 | # lineList1: Trim spaces and delete comments and empty lines |
98 | for i in range(len(lineList1)-1, -1, -1): |
99 | lineList1[i] = lineList1[i].strip() |
100 | if lineList1[i][:2] == "<!": del(lineList1[i]) |
101 | elif lineList1[i] == "": del(lineList1[i]) |
102 | |
103 | # lineList2: Trim spaces and delete comments and empty lines |
104 | for i in range(len(lineList2)-1, -1, -1): |
105 | lineList2[i] = lineList2[i].strip() |
106 | if lineList2[i][:2] == "<!": del(lineList2[i]) |
107 | elif lineList2[i] == "": del(lineList2[i]) |
108 | |
109 | if len(lineList1) != len(lineList2): |
110 | return False, "Error: The two files have a different number of lines" |
111 | |
112 | # Now corresponding XML tags are guaranteed to be on the same line numbers |
113 | |
114 | # Do a simple string comparison except for data which might be permuted during optimization |
115 | doStringComparison = 1 |
116 | for i in range(0, len(lineList1)): |
117 | if lineList1[i].startswith('</DataArray'): doStringComparison = 1 |
118 | if doStringComparison and lineList1[i] != lineList2[i]: |
119 | return False, "Files differ at line %d" % int(i+1) |
120 | if lineList1[i].startswith('<DataArray'): doStringComparison = 0 |
121 | if lineList1[i].startswith('<DataArray Name="offsets"'): doStringComparison = 1 |
122 | if lineList1[i].startswith('<DataArray Name="types"'): doStringComparison = 1 |
123 | |
124 | # Find the list of nodes |
125 | nodeList1 = [] |
126 | nodeList2 = [] |
127 | nodeDict1 = {} # These dictionaries are used to detect duplicate nodes, as with contact elements |
128 | nodeDict2 = {} |
129 | withinTheNodeList = False |
130 | for i in range(0, len(lineList1)): |
131 | if withinTheNodeList and lineList1[i].startswith('</DataArray'): break # Finished reading nodes |
132 | if withinTheNodeList: |
133 | nodeList1.append(lineList1[i]) # The two files are guaranteed to have the nodes on |
134 | nodeList2.append(lineList2[i]) # the same lines at this point |
135 | nodeDict1[lineList1[i]] = 1 |
136 | nodeDict2[lineList2[i]] = 1 |
137 | if lineList1[i].startswith('<DataArray'): withinTheNodeList = True |
138 | |
139 | # Check for contact elements |
140 | if len(nodeList1) != len(nodeDict1): |
141 | print "\n\nContact elements present, cannot compare nodes/elements due to duplicate nodes in %s\n" % file1 |
142 | return True, "Contact elements present, cannot compare nodes/elements due to duplicate nodes in %s" % file1 |
143 | if len(nodeList2) != len(nodeDict2): |
144 | print "\n\nContact elements present, cannot compare nodes/elements due to duplicate nodes in %s\n" % file2 |
145 | return True, "Contact elements present, cannot compare nodes/elements due to duplicate nodes in %s" % file2 |
146 | |
147 | if len(nodeList1) != len(nodeList2): |
148 | return False, "Error: The two files have different numbers of nodes" |
149 | |
150 | # Compute the node mapping from file1 to file2 |
151 | nodeMap1to2 = [] |
152 | for i in range(0, len(nodeList1)): |
153 | nodeMap1to2.append(-1) |
154 | for i in range(0, len(nodeList1)): |
155 | str = nodeList1[i] |
156 | for j in range(len(nodeList2)-1, -1, -1): |
157 | if self.numericCompareL2(str, nodeList2[j]): |
158 | nodeMap1to2[i] = j |
159 | nodeList2[j] = None |
160 | break |
161 | |
162 | if nodeMap1to2.count(-1) > 0: |
163 | return False, "Error: Some nodes didn't correspond in the two files" |
164 | |
165 | # Find the list of elements |
166 | elementList1 = [] |
167 | elementList2 = [] |
168 | withinTheElementList = False |
169 | for i in range(0, len(lineList1)): |
170 | if withinTheElementList and lineList1[i].startswith('</DataArray'): break # Finished reading elements |
171 | if withinTheElementList: |
172 | elementList1.append(lineList1[i]) # The two files are guaranteed to have the elements on |
173 | elementList2.append(lineList2[i]) # the same lines at this point |
174 | if lineList1[i].startswith('<DataArray Name="connectivity"'): withinTheElementList = True |
175 | |
176 | if len(elementList1) != len(elementList2): |
177 | return False, "Error: The two files have different numbers of elements" |
178 | |
179 | # Compute the element mapping from file1 to file2 |
180 | elementMap1to2 = [] |
181 | for i in range(0, len(elementList1)): |
182 | elementMap1to2.append(-1) |
183 | for i in range(0, len(elementList1)): |
184 | str = elementList1[i] |
185 | for j in range(len(elementList2)-1, -1, -1): |
186 | if self.elementCompareWithMap(str, elementList2[j], nodeMap1to2): |
187 | elementMap1to2[i] = j |
188 | elementList2[j] = None |
189 | break |
190 | |
191 | if elementMap1to2.count(-1) > 0: |
192 | return False, "Error: Some elements didn't correspond in the two files" |
193 | |
194 | # Find the data sets and compare them |
195 | dataList1 = [] |
196 | dataList2 = [] |
197 | withinCelldata = False |
198 | withinPointdata = False |
199 | withinDataSet = False |
200 | for i in range(0, len(lineList1)): |
201 | if (withinCelldata or withinPointdata) and withinDataSet and lineList1[i].startswith('</DataArray'): |
202 | withinDataSet = False # Finished reading one of the data sets |
203 | if withinCelldata and not self.compareDataSetWithMap(dataList1, dataList2, elementMap1to2): |
204 | return False, "Error: element data in '%s' did not match" % dataName |
205 | if withinPointdata and not self.compareDataSetWithMap(dataList1, dataList2, nodeMap1to2): |
206 | return False, "Error: point data in '%s' did not match" % dataName |
207 | if withinDataSet: |
208 | dataList1.append(lineList1[i]) # The two files are guaranteed to have the elements on |
209 | dataList2.append(lineList2[i]) # the same lines at this point |
210 | if (withinCelldata or withinPointdata) and lineList1[i].startswith('<DataArray'): |
211 | dataName = re.sub('" .*', '', lineList1[i]) |
212 | dataName = re.sub('.*"', '', dataName) |
213 | withinDataSet = True |
214 | dataList1 = [] |
215 | dataList2 = [] |
216 | if lineList1[i].startswith('<PointData'): withinPointdata = True |
217 | if lineList1[i].startswith('</PointData'): withinPointdata = False |
218 | if lineList1[i].startswith('<CellData'): withinCelldata = True |
219 | if lineList1[i].startswith('</CellData'): withinCelldata = False |
220 | |
221 | return True, "Your VTK files match" |
222 | # End of method self.saveVtkCompare |
223 | |
224 | def check_vtk(self,f,reference_f): |
225 | success, reason = self.saveVtkCompare(os.path.join(FINLEY_WORKDIR_PATH,f), os.path.join(FINLEY_TEST_MESH_PATH,reference_f)) |
226 | self.failUnless(success, reason) |
227 | |
228 | def check_dx(self,f,reference_f): |
229 | out_string=open(FINLEY_WORKDIR_PATH+f).read().splitlines() |
230 | ref_string=open(FINLEY_TEST_MESH_PATH+reference_f).read().splitlines() |
231 | c=0 |
232 | for l in range(0,len(ref_string)): |
233 | if not ref_string[l].strip()[0]=="#": |
234 | line=out_string[c].strip() |
235 | if os.name == "nt": |
236 | line=line.replace("e+00","e+0").replace("e-00","e-0") |
237 | line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00") |
238 | self.failUnlessEqual(line,ref_string[l].strip(),"line %d (%s) in dx file does not match reference (%s)"%(c,line,ref_string[l].strip())) |
239 | c+=1 |
240 | |
241 | class Test_VTKFiles(Test_VisualizationInterface): |
242 | # ====================================================================================================================== |
243 | def test_hex_2D_order2_vtk(self): |
244 | reference="hex_2D_o2.xml" |
245 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
246 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2.xml",domain=dom) |
247 | self.check_vtk("hex_2D_order2.xml",reference) |
248 | |
249 | def test_hex_2D_order2_AllPoints_Scalar_vtk(self): |
250 | reference="hex_2D_o1_node_3xs.xml" |
251 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
252 | x=Solution(dom).getX() |
253 | x_r=ReducedSolution(dom).getX() |
254 | x_n=ContinuousFunction(dom).getX() |
255 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_AllPoints_Scalar.xml",data_r=x_r[0],data_n=x_n[0],data=x[0]) |
256 | self.check_vtk("hex_2D_order2_AllPoints_Scalar.xml",reference) |
257 | def test_hex_2D_order2_02Points_Scalar_vtk(self): |
258 | reference="hex_2D_o2_node_2xs.xml" |
259 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
260 | x=Solution(dom).getX() |
261 | x_n=ContinuousFunction(dom).getX() |
262 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_O2Points_Scalar.xml",data_n=x_n[0],data=x[0]) |
263 | self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference) |
264 | def test_hex_2D_order2_2Cells_Scalar_vtk(self): |
265 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
266 | x=Function(dom).getX() |
267 | x_b=FunctionOnBoundary(dom).getX() |
268 | try: |
269 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_2Cells_Scalar.xml",data=x[0],data_b=x_b[0]) |
270 | self.fail("non-matching data not detected.") |
271 | except StandardError: |
272 | pass |
273 | def test_hex_2D_order2_BoundaryPoint_Scalar_vtk(self): |
274 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
275 | x=ContinuousFunction(dom).getX() |
276 | x_b=FunctionOnBoundary(dom).getX() |
277 | try: |
278 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundaryPoint_Scalar.xml",data=x[0],data_b=x_b[0]) |
279 | self.fail("non-matching data not detected.") |
280 | except StandardError: |
281 | pass |
282 | def test_hex_2D_order2_Cells_AllData_vtk(self): |
283 | reference="hex_2D_o2_cell_all.xml" |
284 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
285 | x=Function(dom).getX() |
286 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_Cells_AllData.xml",data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]]) |
287 | self.check_vtk("hex_2D_order2_Cells_AllData.xml",reference) |
288 | |
289 | def test_hex_2D_order2_CellsPoints_AllData_vtk(self): |
290 | reference="hex_2D_o2_cellnode_all.xml" |
291 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False) |
292 | x_c=Function(dom).getX() |
293 | x_p=ContinuousFunction(dom).getX() |
294 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_CellsPoints_AllData.xml",data_sp=x_p[0], |
295 | data_vp=x_p[0]*[1.,2.], |
296 | data_tp=x_p[0]*[[11.,12.],[21.,22.]], |
297 | data_sc=x_c[0], |
298 | data_vc=x_c[0]*[1.,2.], |
299 | data_tc=x_c[0]*[[11.,12.],[21.,22.]]) |
300 | self.check_vtk("hex_2D_order2_CellsPoints_AllData.xml",reference) |
301 | def test_hex_2D_order2p_vtk(self): |
302 | reference="hex_2D_o2p.xml" |
303 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
304 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2.xml",domain=dom) |
305 | self.check_vtk("hex_2D_order2.xml",reference) |
306 | |
307 | def test_hex_2D_order2p_AllPoints_Scalar_vtk(self): |
308 | reference="hex_2D_o1_node_3xs.xml" |
309 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
310 | x=Solution(dom).getX() |
311 | x_r=ReducedSolution(dom).getX() |
312 | x_n=ContinuousFunction(dom).getX() |
313 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_AllPoints_Scalar.xml",data_r=x_r[0],data_n=x_n[0],data=x[0]) |
314 | self.check_vtk("hex_2D_order2_AllPoints_Scalar.xml",reference) |
315 | def test_hex_2D_order2p_02Points_Scalar_vtk(self): |
316 | reference="hex_2D_o2p_node_2xs.xml" |
317 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
318 | x=Solution(dom).getX() |
319 | x_n=ContinuousFunction(dom).getX() |
320 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_O2Points_Scalar.xml",data_n=x_n[0],data=x[0]) |
321 | self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference) |
322 | def test_hex_2D_order2p_2Cells_Scalar_vtk(self): |
323 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
324 | x=Function(dom).getX() |
325 | x_b=FunctionOnBoundary(dom).getX() |
326 | try: |
327 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_2Cells_Scalar.xml",data=x[0],data_b=x_b[0]) |
328 | self.fail("non-matching data not detected.") |
329 | except StandardError: |
330 | pass |
331 | def test_hex_2D_order2p_BoundaryPoint_Scalar_vtk(self): |
332 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
333 | x=ContinuousFunction(dom).getX() |
334 | x_b=FunctionOnBoundary(dom).getX() |
335 | try: |
336 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundaryPoint_Scalar.xml",data=x[0],data_b=x_b[0]) |
337 | self.fail("non-matching data not detected.") |
338 | except StandardError: |
339 | pass |
340 | def test_hex_2D_order2p_Cells_AllData_vtk(self): |
341 | reference="hex_2D_o2p_cell_all.xml" |
342 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
343 | x=Function(dom).getX() |
344 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_Cells_AllData.xml",data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]]) |
345 | self.check_vtk("hex_2D_order2_Cells_AllData.xml",reference) |
346 | |
347 | def test_hex_2D_order2p_CellsPoints_AllData_vtk(self): |
348 | reference="hex_2D_o2p_cellnode_all.xml" |
349 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
350 | x_c=Function(dom).getX() |
351 | x_p=ContinuousFunction(dom).getX() |
352 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_CellsPoints_AllData.xml",data_sp=x_p[0], |
353 | data_vp=x_p[0]*[1.,2.], |
354 | data_tp=x_p[0]*[[11.,12.],[21.,22.]], |
355 | data_sc=x_c[0], |
356 | data_vc=x_c[0]*[1.,2.], |
357 | data_tc=x_c[0]*[[11.,12.],[21.,22.]]) |
358 | self.check_vtk("hex_2D_order2_CellsPoints_AllData.xml",reference) |
359 | # ====================================================================================================================== |
360 | def test_hex_contact_2D_order1_ContinuousFunction_Scalar_vtk(self): |
361 | reference="hex_2D_o1_node_s.xml" |
362 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
363 | x=ContinuousFunction(dom).getX() |
364 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Scalar.xml",data=x[0]) |
365 | self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Scalar.xml",reference) |
366 | def test_hex_contact_2D_order1_ContinuousFunction_Vector_vtk(self): |
367 | reference="hex_2D_o1_node_v.xml" |
368 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
369 | x=ContinuousFunction(dom).getX() |
370 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.]) |
371 | self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Vector.xml",reference) |
372 | def test_hex_contact_2D_order1_ContinuousFunction_Tensor_vtk(self): |
373 | reference="hex_2D_o1_node_t.xml" |
374 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
375 | x=ContinuousFunction(dom).getX() |
376 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
377 | self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Tensor.xml",reference) |
378 | def test_hex_contact_2D_order1_Solution_Scalar_vtk(self): |
379 | reference="hex_2D_o1_node_s.xml" |
380 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
381 | x=Solution(dom).getX() |
382 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Scalar.xml",data=x[0]) |
383 | self.check_vtk("hex_contact_2D_order1_Solution_Scalar.xml",reference) |
384 | def test_hex_contact_2D_order1_Solution_Vector_vtk(self): |
385 | reference="hex_2D_o1_node_v.xml" |
386 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
387 | x=Solution(dom).getX() |
388 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Vector.xml",data=x[0]*[1.,2.]) |
389 | self.check_vtk("hex_contact_2D_order1_Solution_Vector.xml",reference) |
390 | def test_hex_contact_2D_order1_Solution_Tensor_vtk(self): |
391 | reference="hex_2D_o1_node_t.xml" |
392 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
393 | x=Solution(dom).getX() |
394 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
395 | self.check_vtk("hex_contact_2D_order1_Solution_Tensor.xml",reference) |
396 | def test_hex_contact_2D_order1_ReducedSolution_Scalar_vtk(self): |
397 | reference="hex_2D_o1_node_s.xml" |
398 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
399 | x=ReducedSolution(dom).getX() |
400 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Scalar.xml",data=x[0]) |
401 | self.check_vtk("hex_contact_2D_order1_ReducedSolution_Scalar.xml",reference) |
402 | def test_hex_contact_2D_order1_ReducedSolution_Vector_vtk(self): |
403 | reference="hex_2D_o1_node_v.xml" |
404 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
405 | x=ReducedSolution(dom).getX() |
406 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Vector.xml",data=x[0]*[1.,2.]) |
407 | self.check_vtk("hex_contact_2D_order1_ReducedSolution_Vector.xml",reference) |
408 | def test_hex_contact_2D_order1_ReducedSolution_Tensor_vtk(self): |
409 | reference="hex_2D_o1_node_t.xml" |
410 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
411 | x=ReducedSolution(dom).getX() |
412 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
413 | self.check_vtk("hex_contact_2D_order1_ReducedSolution_Tensor.xml",reference) |
414 | def test_hex_contact_2D_order1_Function_Scalar_vtk(self): |
415 | reference="hex_2D_o1_cell_s.xml" |
416 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
417 | x=Function(dom).getX() |
418 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Scalar.xml",data=x[0]) |
419 | self.check_vtk("hex_contact_2D_order1_Function_Scalar.xml",reference) |
420 | def test_hex_contact_2D_order1_Function_Vector_vtk(self): |
421 | reference="hex_2D_o1_cell_v.xml" |
422 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
423 | x=Function(dom).getX() |
424 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Vector.xml",data=x[0]*[1.,2.]) |
425 | self.check_vtk("hex_contact_2D_order1_Function_Vector.xml",reference) |
426 | def test_hex_contact_2D_order1_Function_Tensor_vtk(self): |
427 | reference="hex_2D_o1_cell_t.xml" |
428 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
429 | x=Function(dom).getX() |
430 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
431 | self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference) |
432 | def test_hex_contact_2D_order1_ReducedFunction_Scalar_vtk(self): |
433 | reference="hex_2D_o1_cell_s.xml" |
434 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
435 | x=ReducedFunction(dom).getX() |
436 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Scalar.xml",data=x[0]) |
437 | self.check_vtk("hex_contact_2D_order1_ReducedFunction_Scalar.xml",reference) |
438 | def test_hex_contact_2D_order1_ReducedFunction_Vector_vtk(self): |
439 | reference="hex_2D_o1_cell_v.xml" |
440 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
441 | x=ReducedFunction(dom).getX() |
442 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Vector.xml",data=x[0]*[1.,2.]) |
443 | self.check_vtk("hex_contact_2D_order1_ReducedFunction_Vector.xml",reference) |
444 | def test_hex_contact_2D_order1_ReducedFunction_Tensor_vtk(self): |
445 | reference="hex_2D_o1_cell_t.xml" |
446 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
447 | x=ReducedFunction(dom).getX() |
448 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
449 | self.check_vtk("hex_contact_2D_order1_ReducedFunction_Tensor.xml",reference) |
450 | def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self): |
451 | reference="hex_2D_o1_boundary_s.xml" |
452 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
453 | x=FunctionOnBoundary(dom).getX() |
454 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",data=x[0]) |
455 | self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",reference) |
456 | def test_hex_contact_2D_order1_FunctionOnBoundary_Vector_vtk(self): |
457 | reference="hex_2D_o1_boundary_v.xml" |
458 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
459 | x=FunctionOnBoundary(dom).getX() |
460 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
461 | self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",reference) |
462 | def test_hex_contact_2D_order1_FunctionOnBoundary_Tensor_vtk(self): |
463 | reference="hex_2D_o1_boundary_t.xml" |
464 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
465 | x=FunctionOnBoundary(dom).getX() |
466 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
467 | self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference) |
468 | def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self): |
469 | reference="hex_2D_o1_boundary_s.xml" |
470 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
471 | x=ReducedFunctionOnBoundary(dom).getX() |
472 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
473 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference) |
474 | def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self): |
475 | reference="hex_2D_o1_boundary_v.xml" |
476 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
477 | x=ReducedFunctionOnBoundary(dom).getX() |
478 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
479 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference) |
480 | def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self): |
481 | reference="hex_2D_o1_boundary_t.xml" |
482 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
483 | x=ReducedFunctionOnBoundary(dom).getX() |
484 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
485 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference) |
486 | def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self): |
487 | reference="hex_2D_o1_f_boundary_s.xml" |
488 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
489 | x=FunctionOnBoundary(dom).getX() |
490 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",data=x[0]) |
491 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference) |
492 | def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector_vtk(self): |
493 | reference="hex_2D_o1_f_boundary_v.xml" |
494 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
495 | x=FunctionOnBoundary(dom).getX() |
496 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
497 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",reference) |
498 | def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self): |
499 | reference="hex_2D_o1_f_boundary_t.xml" |
500 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
501 | x=FunctionOnBoundary(dom).getX() |
502 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
503 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference) |
504 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self): |
505 | reference="hex_2D_o1_f_boundary_s.xml" |
506 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
507 | x=ReducedFunctionOnBoundary(dom).getX() |
508 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
509 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference) |
510 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self): |
511 | reference="hex_2D_o1_f_boundary_v.xml" |
512 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
513 | x=ReducedFunctionOnBoundary(dom).getX() |
514 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
515 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference) |
516 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self): |
517 | reference="hex_2D_o1_f_boundary_t.xml" |
518 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
519 | x=ReducedFunctionOnBoundary(dom).getX() |
520 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
521 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference) |
522 | def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self): |
523 | reference="hex_2D_o1_contact_s.xml" |
524 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
525 | x=FunctionOnContactZero(dom).getX() |
526 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",data=x[0]) |
527 | self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",reference) |
528 | def test_hex_contact_2D_order1_FunctionOnContactZero_Vector_vtk(self): |
529 | reference="hex_2D_o1_contact_v.xml" |
530 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
531 | x=FunctionOnContactZero(dom).getX() |
532 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
533 | self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",reference) |
534 | def test_hex_contact_2D_order1_FunctionOnContactZero_Tensor_vtk(self): |
535 | reference="hex_2D_o1_contact_t.xml" |
536 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
537 | x=FunctionOnContactZero(dom).getX() |
538 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
539 | self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference) |
540 | def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self): |
541 | reference="hex_2D_o1_contact_s.xml" |
542 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
543 | x=ReducedFunctionOnContactZero(dom).getX() |
544 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
545 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference) |
546 | def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector_vtk(self): |
547 | reference="hex_2D_o1_contact_v.xml" |
548 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
549 | x=ReducedFunctionOnContactZero(dom).getX() |
550 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
551 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",reference) |
552 | def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self): |
553 | reference="hex_2D_o1_contact_t.xml" |
554 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
555 | x=ReducedFunctionOnContactZero(dom).getX() |
556 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
557 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference) |
558 | def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self): |
559 | reference="hex_2D_o1_contact_s.xml" |
560 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
561 | x=FunctionOnContactZero(dom).getX() |
562 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",data=x[0]) |
563 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference) |
564 | def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector_vtk(self): |
565 | reference="hex_2D_o1_contact_v.xml" |
566 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
567 | x=FunctionOnContactZero(dom).getX() |
568 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
569 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",reference) |
570 | def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self): |
571 | reference="hex_2D_o1_contact_t.xml" |
572 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
573 | x=FunctionOnContactZero(dom).getX() |
574 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
575 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference) |
576 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self): |
577 | reference="hex_2D_o1_contact_s.xml" |
578 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
579 | x=ReducedFunctionOnContactZero(dom).getX() |
580 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
581 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference) |
582 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self): |
583 | reference="hex_2D_o1_contact_v.xml" |
584 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
585 | x=ReducedFunctionOnContactZero(dom).getX() |
586 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
587 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference) |
588 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self): |
589 | reference="hex_2D_o1_contact_t.xml" |
590 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
591 | x=ReducedFunctionOnContactZero(dom).getX() |
592 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
593 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference) |
594 | def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self): |
595 | reference="hex_2D_o1_contact_s.xml" |
596 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
597 | x=FunctionOnContactOne(dom).getX() |
598 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",data=x[0]) |
599 | self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",reference) |
600 | def test_hex_contact_2D_order1_FunctionOnContactOne_Vector_vtk(self): |
601 | reference="hex_2D_o1_contact_v.xml" |
602 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
603 | x=FunctionOnContactOne(dom).getX() |
604 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
605 | self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",reference) |
606 | def test_hex_contact_2D_order1_FunctionOnContactOne_Tensor_vtk(self): |
607 | reference="hex_2D_o1_contact_t.xml" |
608 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
609 | x=FunctionOnContactOne(dom).getX() |
610 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
611 | self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference) |
612 | def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self): |
613 | reference="hex_2D_o1_contact_s.xml" |
614 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
615 | x=ReducedFunctionOnContactOne(dom).getX() |
616 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
617 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference) |
618 | def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector_vtk(self): |
619 | reference="hex_2D_o1_contact_v.xml" |
620 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
621 | x=ReducedFunctionOnContactOne(dom).getX() |
622 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
623 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",reference) |
624 | def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self): |
625 | reference="hex_2D_o1_contact_t.xml" |
626 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False) |
627 | x=ReducedFunctionOnContactOne(dom).getX() |
628 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
629 | self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference) |
630 | def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self): |
631 | reference="hex_2D_o1_contact_s.xml" |
632 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
633 | x=FunctionOnContactOne(dom).getX() |
634 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",data=x[0]) |
635 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference) |
636 | def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector_vtk(self): |
637 | reference="hex_2D_o1_contact_v.xml" |
638 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
639 | x=FunctionOnContactOne(dom).getX() |
640 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
641 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",reference) |
642 | def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self): |
643 | reference="hex_2D_o1_contact_t.xml" |
644 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
645 | x=FunctionOnContactOne(dom).getX() |
646 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
647 | self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference) |
648 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self): |
649 | reference="hex_2D_o1_contact_s.xml" |
650 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
651 | x=ReducedFunctionOnContactOne(dom).getX() |
652 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
653 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference) |
654 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self): |
655 | reference="hex_2D_o1_contact_v.xml" |
656 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
657 | x=ReducedFunctionOnContactOne(dom).getX() |
658 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
659 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference) |
660 | def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self): |
661 | reference="hex_2D_o1_contact_t.xml" |
662 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False) |
663 | x=ReducedFunctionOnContactOne(dom).getX() |
664 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
665 | self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference) |
666 | # ====================================================================================================================== |
667 | def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self): |
668 | reference="hex_2D_o2_node_s.xml" |
669 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
670 | x=ContinuousFunction(dom).getX() |
671 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Scalar.xml",data=x[0]) |
672 | self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Scalar.xml",reference) |
673 | def test_hex_contact_2D_order2_ContinuousFunction_Vector_vtk(self): |
674 | reference="hex_2D_o2_node_v.xml" |
675 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
676 | x=ContinuousFunction(dom).getX() |
677 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.]) |
678 | self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Vector.xml",reference) |
679 | def test_hex_contact_2D_order2_ContinuousFunction_Tensor_vtk(self): |
680 | reference="hex_2D_o2_node_t.xml" |
681 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
682 | x=ContinuousFunction(dom).getX() |
683 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
684 | self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Tensor.xml",reference) |
685 | def test_hex_contact_2D_order2_Solution_Scalar_vtk(self): |
686 | reference="hex_2D_o2_node_s.xml" |
687 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
688 | x=Solution(dom).getX() |
689 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Scalar.xml",data=x[0]) |
690 | self.check_vtk("hex_contact_2D_order2_Solution_Scalar.xml",reference) |
691 | def test_hex_contact_2D_order2_Solution_Vector_vtk(self): |
692 | reference="hex_2D_o2_node_v.xml" |
693 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
694 | x=Solution(dom).getX() |
695 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Vector.xml",data=x[0]*[1.,2.]) |
696 | self.check_vtk("hex_contact_2D_order2_Solution_Vector.xml",reference) |
697 | def test_hex_contact_2D_order2_Solution_Tensor_vtk(self): |
698 | reference="hex_2D_o2_node_t.xml" |
699 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
700 | x=Solution(dom).getX() |
701 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
702 | self.check_vtk("hex_contact_2D_order2_Solution_Tensor.xml",reference) |
703 | def test_hex_contact_2D_order2_ReducedSolution_Scalar_vtk(self): |
704 | reference="hex_2D_o1_node_s.xml" |
705 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
706 | x=ReducedSolution(dom).getX() |
707 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Scalar.xml",data=x[0]) |
708 | self.check_vtk("hex_contact_2D_order2_ReducedSolution_Scalar.xml",reference) |
709 | def test_hex_contact_2D_order2_ReducedSolution_Vector_vtk(self): |
710 | reference="hex_2D_o1_node_v.xml" |
711 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
712 | x=ReducedSolution(dom).getX() |
713 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Vector.xml",data=x[0]*[1.,2.]) |
714 | self.check_vtk("hex_contact_2D_order2_ReducedSolution_Vector.xml",reference) |
715 | def test_hex_contact_2D_order2_ReducedSolution_Tensor_vtk(self): |
716 | reference="hex_2D_o1_node_t.xml" |
717 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
718 | x=ReducedSolution(dom).getX() |
719 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
720 | self.check_vtk("hex_contact_2D_order2_ReducedSolution_Tensor.xml",reference) |
721 | def test_hex_contact_2D_order2_Function_Scalar_vtk(self): |
722 | reference="hex_2D_o2_cell_s.xml" |
723 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
724 | x=Function(dom).getX() |
725 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Scalar.xml",data=x[0]) |
726 | self.check_vtk("hex_contact_2D_order2_Function_Scalar.xml",reference) |
727 | def test_hex_contact_2D_order2_Function_Vector_vtk(self): |
728 | reference="hex_2D_o2_cell_v.xml" |
729 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
730 | x=Function(dom).getX() |
731 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Vector.xml",data=x[0]*[1.,2.]) |
732 | self.check_vtk("hex_contact_2D_order2_Function_Vector.xml",reference) |
733 | def test_hex_contact_2D_order2_Function_Tensor_vtk(self): |
734 | reference="hex_2D_o2_cell_t.xml" |
735 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
736 | x=Function(dom).getX() |
737 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
738 | self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference) |
739 | def test_hex_contact_2D_order2_ReducedFunction_Scalar_vtk(self): |
740 | reference="hex_2D_o2_cell_s.xml" |
741 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
742 | x=ReducedFunction(dom).getX() |
743 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Scalar.xml",data=x[0]) |
744 | self.check_vtk("hex_contact_2D_order2_ReducedFunction_Scalar.xml",reference) |
745 | def test_hex_contact_2D_order2_ReducedFunction_Vector_vtk(self): |
746 | reference="hex_2D_o2_cell_v.xml" |
747 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
748 | x=ReducedFunction(dom).getX() |
749 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Vector.xml",data=x[0]*[1.,2.]) |
750 | self.check_vtk("hex_contact_2D_order2_ReducedFunction_Vector.xml",reference) |
751 | def test_hex_contact_2D_order2_ReducedFunction_Tensor_vtk(self): |
752 | reference="hex_2D_o2_cell_t.xml" |
753 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
754 | x=ReducedFunction(dom).getX() |
755 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
756 | self.check_vtk("hex_contact_2D_order2_ReducedFunction_Tensor.xml",reference) |
757 | def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self): |
758 | reference="hex_2D_o2_boundary_s.xml" |
759 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
760 | x=FunctionOnBoundary(dom).getX() |
761 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",data=x[0]) |
762 | self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",reference) |
763 | def test_hex_contact_2D_order2_FunctionOnBoundary_Vector_vtk(self): |
764 | reference="hex_2D_o2_boundary_v.xml" |
765 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
766 | x=FunctionOnBoundary(dom).getX() |
767 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
768 | self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",reference) |
769 | def test_hex_contact_2D_order2_FunctionOnBoundary_Tensor_vtk(self): |
770 | reference="hex_2D_o2_boundary_t.xml" |
771 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
772 | x=FunctionOnBoundary(dom).getX() |
773 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
774 | self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference) |
775 | def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self): |
776 | reference="hex_2D_o2_boundary_s.xml" |
777 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
778 | x=ReducedFunctionOnBoundary(dom).getX() |
779 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
780 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference) |
781 | def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector_vtk(self): |
782 | reference="hex_2D_o2_boundary_v.xml" |
783 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
784 | x=ReducedFunctionOnBoundary(dom).getX() |
785 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
786 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",reference) |
787 | def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self): |
788 | reference="hex_2D_o2_boundary_t.xml" |
789 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
790 | x=ReducedFunctionOnBoundary(dom).getX() |
791 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
792 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference) |
793 | def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self): |
794 | reference="hex_2D_o2_f_boundary_s.xml" |
795 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
796 | x=FunctionOnBoundary(dom).getX() |
797 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",data=x[0]) |
798 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference) |
799 | def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector_vtk(self): |
800 | reference="hex_2D_o2_f_boundary_v.xml" |
801 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
802 | x=FunctionOnBoundary(dom).getX() |
803 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
804 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",reference) |
805 | def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self): |
806 | reference="hex_2D_o2_f_boundary_t.xml" |
807 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
808 | x=FunctionOnBoundary(dom).getX() |
809 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
810 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference) |
811 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self): |
812 | reference="hex_2D_o2_f_boundary_s.xml" |
813 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
814 | x=ReducedFunctionOnBoundary(dom).getX() |
815 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
816 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference) |
817 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self): |
818 | reference="hex_2D_o2_f_boundary_v.xml" |
819 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
820 | x=ReducedFunctionOnBoundary(dom).getX() |
821 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
822 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference) |
823 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self): |
824 | reference="hex_2D_o2_f_boundary_t.xml" |
825 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
826 | x=ReducedFunctionOnBoundary(dom).getX() |
827 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
828 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference) |
829 | def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self): |
830 | reference="hex_2D_o2_contact_s.xml" |
831 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
832 | x=FunctionOnContactZero(dom).getX() |
833 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",data=x[0]) |
834 | self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",reference) |
835 | def test_hex_contact_2D_order2_FunctionOnContactZero_Vector_vtk(self): |
836 | reference="hex_2D_o2_contact_v.xml" |
837 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
838 | x=FunctionOnContactZero(dom).getX() |
839 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
840 | self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",reference) |
841 | def test_hex_contact_2D_order2_FunctionOnContactZero_Tensor_vtk(self): |
842 | reference="hex_2D_o2_contact_t.xml" |
843 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
844 | x=FunctionOnContactZero(dom).getX() |
845 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
846 | self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference) |
847 | def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self): |
848 | reference="hex_2D_o2_contact_s.xml" |
849 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
850 | x=ReducedFunctionOnContactZero(dom).getX() |
851 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
852 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference) |
853 | def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector_vtk(self): |
854 | reference="hex_2D_o2_contact_v.xml" |
855 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
856 | x=ReducedFunctionOnContactZero(dom).getX() |
857 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
858 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",reference) |
859 | def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self): |
860 | reference="hex_2D_o2_contact_t.xml" |
861 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
862 | x=ReducedFunctionOnContactZero(dom).getX() |
863 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
864 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference) |
865 | def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self): |
866 | reference="hex_2D_o2_contact_s.xml" |
867 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
868 | x=FunctionOnContactZero(dom).getX() |
869 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",data=x[0]) |
870 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference) |
871 | def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector_vtk(self): |
872 | reference="hex_2D_o2_contact_v.xml" |
873 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
874 | x=FunctionOnContactZero(dom).getX() |
875 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
876 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",reference) |
877 | def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self): |
878 | reference="hex_2D_o2_contact_t.xml" |
879 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
880 | x=FunctionOnContactZero(dom).getX() |
881 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
882 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference) |
883 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self): |
884 | reference="hex_2D_o2_contact_s.xml" |
885 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
886 | x=ReducedFunctionOnContactZero(dom).getX() |
887 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
888 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference) |
889 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self): |
890 | reference="hex_2D_o2_contact_v.xml" |
891 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
892 | x=ReducedFunctionOnContactZero(dom).getX() |
893 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.]) |
894 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference) |
895 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self): |
896 | reference="hex_2D_o2_contact_t.xml" |
897 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
898 | x=ReducedFunctionOnContactZero(dom).getX() |
899 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
900 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference) |
901 | def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self): |
902 | reference="hex_2D_o2_contact_s.xml" |
903 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
904 | x=FunctionOnContactOne(dom).getX() |
905 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",data=x[0]) |
906 | self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",reference) |
907 | def test_hex_contact_2D_order2_FunctionOnContactOne_Vector_vtk(self): |
908 | reference="hex_2D_o2_contact_v.xml" |
909 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
910 | x=FunctionOnContactOne(dom).getX() |
911 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
912 | self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",reference) |
913 | def test_hex_contact_2D_order2_FunctionOnContactOne_Tensor_vtk(self): |
914 | reference="hex_2D_o2_contact_t.xml" |
915 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
916 | x=FunctionOnContactOne(dom).getX() |
917 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
918 | self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference) |
919 | def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self): |
920 | reference="hex_2D_o2_contact_s.xml" |
921 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
922 | x=ReducedFunctionOnContactOne(dom).getX() |
923 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
924 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference) |
925 | def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector_vtk(self): |
926 | reference="hex_2D_o2_contact_v.xml" |
927 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
928 | x=ReducedFunctionOnContactOne(dom).getX() |
929 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
930 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",reference) |
931 | def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self): |
932 | reference="hex_2D_o2_contact_t.xml" |
933 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False) |
934 | x=ReducedFunctionOnContactOne(dom).getX() |
935 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
936 | self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference) |
937 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self): |
938 | reference="hex_2D_o2_contact_s.xml" |
939 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
940 | x=FunctionOnContactOne(dom).getX() |
941 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",data=x[0]) |
942 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference) |
943 | def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector_vtk(self): |
944 | reference="hex_2D_o2_contact_v.xml" |
945 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
946 | x=FunctionOnContactOne(dom).getX() |
947 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
948 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",reference) |
949 | def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self): |
950 | reference="hex_2D_o2_contact_t.xml" |
951 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
952 | x=FunctionOnContactOne(dom).getX() |
953 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
954 | self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference) |
955 | |
956 | def test_hex_contact_2D_order2_onFace_ReducedReducedFunctionOnContactOne_Scalar_vtk(self): |
957 | reference="hex_2D_o2_contact_s.xml" |
958 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
959 | x=ReducedFunctionOnContactOne(dom).getX() |
960 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
961 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference) |
962 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self): |
963 | reference="hex_2D_o2_contact_v.xml" |
964 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
965 | x=ReducedFunctionOnContactOne(dom).getX() |
966 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.]) |
967 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference) |
968 | def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self): |
969 | reference="hex_2D_o2_contact_t.xml" |
970 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False) |
971 | x=ReducedFunctionOnContactOne(dom).getX() |
972 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
973 | self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference) |
974 | # ====================================================================================================================== |
975 | def test_hex_2D_order2p_ContinuousFunction_Scalar_vtk(self): |
976 | reference="hex_2D_o2p_node_s.xml" |
977 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
978 | x=ContinuousFunction(dom).getX() |
979 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ContinuousFunction_Scalar.xml",data=x[0]) |
980 | self.check_vtk("hex_2D_order2p_ContinuousFunction_Scalar.xml",reference) |
981 | def test_hex_2D_order2p_ContinuousFunction_Vector_vtk(self): |
982 | reference="hex_2D_o2p_node_v.xml" |
983 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
984 | x=ContinuousFunction(dom).getX() |
985 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.]) |
986 | self.check_vtk("hex_2D_order2p_ContinuousFunction_Vector.xml",reference) |
987 | def test_hex_2D_order2p_ContinuousFunction_Tensor_vtk(self): |
988 | reference="hex_2D_o2p_node_t.xml" |
989 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
990 | x=ContinuousFunction(dom).getX() |
991 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
992 | self.check_vtk("hex_2D_order2p_ContinuousFunction_Tensor.xml",reference) |
993 | def test_hex_2D_order2p_Solution_Scalar_vtk(self): |
994 | reference="hex_2D_o2p_node_s.xml" |
995 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
996 | x=Solution(dom).getX() |
997 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_Solution_Scalar.xml",data=x[0]) |
998 | self.check_vtk("hex_2D_order2p_Solution_Scalar.xml",reference) |
999 | def test_hex_2D_order2p_Solution_Vector_vtk(self): |
1000 | reference="hex_2D_o2p_node_v.xml" |
1001 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1002 | x=Solution(dom).getX() |
1003 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_Solution_Vector.xml",data=x[0]*[1.,2.]) |
1004 | self.check_vtk("hex_2D_order2p_Solution_Vector.xml",reference) |
1005 | def test_hex_2D_order2p_Solution_Tensor_vtk(self): |
1006 | reference="hex_2D_o2p_node_t.xml" |
1007 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1008 | x=Solution(dom).getX() |
1009 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
1010 | self.check_vtk("hex_2D_order2p_Solution_Tensor.xml",reference) |
1011 | def test_hex_2D_order2p_ReducedSolution_Scalar_vtk(self): |
1012 | reference="hex_2D_o2p_reduced_node_s.xml" |
1013 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1014 | x=ReducedSolution(dom).getX() |
1015 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedSolution_Scalar.xml",data=x[0]) |
1016 | self.check_vtk("hex_2D_order2p_ReducedSolution_Scalar.xml",reference) |
1017 | def test_hex_2D_order2p_ReducedSolution_Vector_vtk(self): |
1018 | reference="hex_2D_o2p_reduced_node_v.xml" |
1019 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1020 | x=ReducedSolution(dom).getX() |
1021 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedSolution_Vector.xml",data=x[0]*[1.,2.]) |
1022 | self.check_vtk("hex_2D_order2p_ReducedSolution_Vector.xml",reference) |
1023 | def test_hex_2D_order2p_ReducedSolution_Tensor_vtk(self): |
1024 | reference="hex_2D_o2p_reduced_node_t.xml" |
1025 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1026 | x=ReducedSolution(dom).getX() |
1027 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
1028 | self.check_vtk("hex_2D_order2p_ReducedSolution_Tensor.xml",reference) |
1029 | def test_hex_2D_order2p_Function_Scalar_vtk(self): |
1030 | reference="hex_2D_o2p_cell_s.xml" |
1031 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1032 | x=Function(dom).getX() |
1033 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_Function_Scalar.xml",data=x[0]) |
1034 | self.check_vtk("hex_2D_order2p_Function_Scalar.xml",reference) |
1035 | def test_hex_2D_order2p_Function_Vector_vtk(self): |
1036 | reference="hex_2D_o2p_cell_v.xml" |
1037 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1038 | x=Function(dom).getX() |
1039 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_Function_Vector.xml",data=x[0]*[1.,2.]) |
1040 | self.check_vtk("hex_2D_order2p_Function_Vector.xml",reference) |
1041 | def test_hex_2D_order2p_Function_Tensor_vtk(self): |
1042 | reference="hex_2D_o2p_cell_t.xml" |
1043 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1044 | x=Function(dom).getX() |
1045 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
1046 | self.check_vtk("hex_2D_order2p_Function_Tensor.xml",reference) |
1047 | def test_hex_2D_order2p_ReducedFunction_Scalar_vtk(self): |
1048 | reference="hex_2D_o2p_cell_reduced_s.xml" |
1049 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1050 | x=ReducedFunction(dom).getX() |
1051 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedFunction_Scalar.xml",data=x[0]) |
1052 | self.check_vtk("hex_2D_order2p_ReducedFunction_Scalar.xml",reference) |
1053 | def test_hex_2D_order2p_ReducedFunction_Vector_vtk(self): |
1054 | reference="hex_2D_o2p_cell_reduced_v.xml" |
1055 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1056 | x=ReducedFunction(dom).getX() |
1057 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedFunction_Vector.xml",data=x[0]*[1.,2.]) |
1058 | self.check_vtk("hex_2D_order2p_ReducedFunction_Vector.xml",reference) |
1059 | def test_hex_2D_order2p_ReducedFunction_Tensor_vtk(self): |
1060 | reference="hex_2D_o2p_cell_reduced_t.xml" |
1061 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1062 | x=ReducedFunction(dom).getX() |
1063 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
1064 | self.check_vtk("hex_2D_order2p_ReducedFunction_Tensor.xml",reference) |
1065 | def test_hex_2D_order2p_FunctionOnBoundary_Scalar_vtk(self): |
1066 | reference="hex_2D_o2p_boundary_s.xml" |
1067 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1068 | x=FunctionOnBoundary(dom).getX() |
1069 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_FunctionOnBoundary_Scalar.xml",data=x[0]) |
1070 | self.check_vtk("hex_2D_order2p_FunctionOnBoundary_Scalar.xml",reference) |
1071 | def test_hex_2D_order2p_FunctionOnBoundary_Vector_vtk(self): |
1072 | reference="hex_2D_o2p_boundary_v.xml" |
1073 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1074 | x=FunctionOnBoundary(dom).getX() |
1075 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
1076 | self.check_vtk("hex_2D_order2p_FunctionOnBoundary_Vector.xml",reference) |
1077 | def test_hex_2D_order2p_FunctionOnBoundary_Tensor_vtk(self): |
1078 | reference="hex_2D_o2p_boundary_t.xml" |
1079 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1080 | x=FunctionOnBoundary(dom).getX() |
1081 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
1082 | self.check_vtk("hex_2D_order2p_FunctionOnBoundary_Tensor.xml",reference) |
1083 | def test_hex_2D_order2p_ReducedFunctionOnBoundary_Scalar_vtk(self): |
1084 | reference="hex_2D_o2p_boundary_reduced_s.xml" |
1085 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1086 | x=ReducedFunctionOnBoundary(dom).getX() |
1087 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
1088 | self.check_vtk("hex_2D_order2p_ReducedFunctionOnBoundary_Scalar.xml",reference) |
1089 | def test_hex_2D_order2p_ReducedFunctionOnBoundary_Vector_vtk(self): |
1090 | reference="hex_2D_o2p_boundary_reduced_v.xml" |
1091 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1092 | x=ReducedFunctionOnBoundary(dom).getX() |
1093 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.]) |
1094 | self.check_vtk("hex_2D_order2p_ReducedFunctionOnBoundary_Vector.xml",reference) |
1095 | def test_hex_2D_order2p_ReducedFunctionOnBoundary_Tensor_vtk(self): |
1096 | reference="hex_2D_o2p_boundary_reduced_t.xml" |
1097 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2p.msh",optimize=False) |
1098 | x=ReducedFunctionOnBoundary(dom).getX() |
1099 | saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2p_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]]) |
1100 | self.check_vtk("hex_2D_order2p_ReducedFunctionOnBoundary_Tensor.xml",reference) |
1101 | |
1102 | # ====================================================================================================================== |
1103 | def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self): |
1104 | reference="hex_3D_o1_node_s.xml" |
1105 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1106 | x=ContinuousFunction(dom).getX() |
1107 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Scalar.xml",data=x[0]) |
1108 | self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Scalar.xml",reference) |
1109 | def test_hex_contact_3D_order1_ContinuousFunction_Vector_vtk(self): |
1110 | reference="hex_3D_o1_node_v.xml" |
1111 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1112 | x=ContinuousFunction(dom).getX() |
1113 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.]) |
1114 | self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Vector.xml",reference) |
1115 | def test_hex_contact_3D_order1_ContinuousFunction_Tensor_vtk(self): |
1116 | reference="hex_3D_o1_node_t.xml" |
1117 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1118 | x=ContinuousFunction(dom).getX() |
1119 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1120 | self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Tensor.xml",reference) |
1121 | def test_hex_contact_3D_order1_Solution_Scalar_vtk(self): |
1122 | reference="hex_3D_o1_node_s.xml" |
1123 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1124 | x=Solution(dom).getX() |
1125 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Scalar.xml",data=x[0]) |
1126 | self.check_vtk("hex_contact_3D_order1_Solution_Scalar.xml",reference) |
1127 | def test_hex_contact_3D_order1_Solution_Vector_vtk(self): |
1128 | reference="hex_3D_o1_node_v.xml" |
1129 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1130 | x=Solution(dom).getX() |
1131 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Vector.xml",data=x[0]*[1.,2.,3.]) |
1132 | self.check_vtk("hex_contact_3D_order1_Solution_Vector.xml",reference) |
1133 | def test_hex_contact_3D_order1_Solution_Tensor_vtk(self): |
1134 | reference="hex_3D_o1_node_t.xml" |
1135 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1136 | x=Solution(dom).getX() |
1137 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1138 | self.check_vtk("hex_contact_3D_order1_Solution_Tensor.xml",reference) |
1139 | def test_hex_contact_3D_order1_ReducedSolution_Scalar_vtk(self): |
1140 | reference="hex_3D_o1_node_s.xml" |
1141 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1142 | x=ReducedSolution(dom).getX() |
1143 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Scalar.xml",data=x[0]) |
1144 | self.check_vtk("hex_contact_3D_order1_ReducedSolution_Scalar.xml",reference) |
1145 | def test_hex_contact_3D_order1_ReducedSolution_Vector_vtk(self): |
1146 | reference="hex_3D_o1_node_v.xml" |
1147 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1148 | x=ReducedSolution(dom).getX() |
1149 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.]) |
1150 | self.check_vtk("hex_contact_3D_order1_ReducedSolution_Vector.xml",reference) |
1151 | def test_hex_contact_3D_order1_ReducedSolution_Tensor_vtk(self): |
1152 | reference="hex_3D_o1_node_t.xml" |
1153 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1154 | x=ReducedSolution(dom).getX() |
1155 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1156 | self.check_vtk("hex_contact_3D_order1_ReducedSolution_Tensor.xml",reference) |
1157 | def test_hex_contact_3D_order1_Function_Scalar_vtk(self): |
1158 | reference="hex_3D_o1_cell_s.xml" |
1159 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1160 | x=Function(dom).getX() |
1161 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Scalar.xml",data=x[0]) |
1162 | self.check_vtk("hex_contact_3D_order1_Function_Scalar.xml",reference) |
1163 | def test_hex_contact_3D_order1_Function_Vector_vtk(self): |
1164 | reference="hex_3D_o1_cell_v.xml" |
1165 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1166 | x=Function(dom).getX() |
1167 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Vector.xml",data=x[0]*[1.,2.,3.]) |
1168 | self.check_vtk("hex_contact_3D_order1_Function_Vector.xml",reference) |
1169 | def test_hex_contact_3D_order1_Function_Tensor_vtk(self): |
1170 | reference="hex_3D_o1_cell_t.xml" |
1171 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1172 | x=Function(dom).getX() |
1173 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1174 | self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference) |
1175 | def test_hex_contact_3D_order1_ReducedFunction_Scalar_vtk(self): |
1176 | reference="hex_3D_o1_cell_s.xml" |
1177 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1178 | x=ReducedFunction(dom).getX() |
1179 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Scalar.xml",data=x[0]) |
1180 | self.check_vtk("hex_contact_3D_order1_ReducedFunction_Scalar.xml",reference) |
1181 | def test_hex_contact_3D_order1_ReducedFunction_Vector_vtk(self): |
1182 | reference="hex_3D_o1_cell_v.xml" |
1183 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1184 | x=ReducedFunction(dom).getX() |
1185 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.]) |
1186 | self.check_vtk("hex_contact_3D_order1_ReducedFunction_Vector.xml",reference) |
1187 | def test_hex_contact_3D_order1_ReducedFunction_Tensor_vtk(self): |
1188 | reference="hex_3D_o1_cell_t.xml" |
1189 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1190 | x=ReducedFunction(dom).getX() |
1191 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1192 | self.check_vtk("hex_contact_3D_order1_ReducedFunction_Tensor.xml",reference) |
1193 | def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self): |
1194 | reference="hex_3D_o1_boundary_s.xml" |
1195 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1196 | x=FunctionOnBoundary(dom).getX() |
1197 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",data=x[0]) |
1198 | self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",reference) |
1199 | def test_hex_contact_3D_order1_FunctionOnBoundary_Vector_vtk(self): |
1200 | reference="hex_3D_o1_boundary_v.xml" |
1201 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1202 | x=FunctionOnBoundary(dom).getX() |
1203 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1204 | self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",reference) |
1205 | def test_hex_contact_3D_order1_FunctionOnBoundary_Tensor_vtk(self): |
1206 | reference="hex_3D_o1_boundary_t.xml" |
1207 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1208 | x=FunctionOnBoundary(dom).getX() |
1209 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1210 | self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference) |
1211 | def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self): |
1212 | reference="hex_3D_o1_boundary_s.xml" |
1213 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1214 | x=ReducedFunctionOnBoundary(dom).getX() |
1215 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
1216 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference) |
1217 | def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector_vtk(self): |
1218 | reference="hex_3D_o1_boundary_v.xml" |
1219 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1220 | x=ReducedFunctionOnBoundary(dom).getX() |
1221 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1222 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",reference) |
1223 | def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self): |
1224 | reference="hex_3D_o1_boundary_t.xml" |
1225 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1226 | x=ReducedFunctionOnBoundary(dom).getX() |
1227 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1228 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference) |
1229 | def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self): |
1230 | reference="hex_3D_o1_f_boundary_s.xml" |
1231 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1232 | x=FunctionOnBoundary(dom).getX() |
1233 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",data=x[0]) |
1234 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference) |
1235 | def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector_vtk(self): |
1236 | reference="hex_3D_o1_f_boundary_v.xml" |
1237 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1238 | x=FunctionOnBoundary(dom).getX() |
1239 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1240 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",reference) |
1241 | def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self): |
1242 | reference="hex_3D_o1_f_boundary_t.xml" |
1243 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1244 | x=FunctionOnBoundary(dom).getX() |
1245 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1246 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference) |
1247 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self): |
1248 | reference="hex_3D_o1_f_boundary_s.xml" |
1249 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1250 | x=ReducedFunctionOnBoundary(dom).getX() |
1251 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
1252 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference) |
1253 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self): |
1254 | reference="hex_3D_o1_f_boundary_v.xml" |
1255 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1256 | x=ReducedFunctionOnBoundary(dom).getX() |
1257 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1258 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference) |
1259 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self): |
1260 | reference="hex_3D_o1_f_boundary_t.xml" |
1261 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1262 | x=ReducedFunctionOnBoundary(dom).getX() |
1263 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1264 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference) |
1265 | def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self): |
1266 | reference="hex_3D_o1_contact_s.xml" |
1267 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1268 | x=FunctionOnContactZero(dom).getX() |
1269 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",data=x[0]) |
1270 | self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",reference) |
1271 | def test_hex_contact_3D_order1_FunctionOnContactZero_Vector_vtk(self): |
1272 | reference="hex_3D_o1_contact_v.xml" |
1273 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1274 | x=FunctionOnContactZero(dom).getX() |
1275 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1276 | self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",reference) |
1277 | def test_hex_contact_3D_order1_FunctionOnContactZero_Tensor_vtk(self): |
1278 | reference="hex_3D_o1_contact_t.xml" |
1279 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1280 | x=FunctionOnContactZero(dom).getX() |
1281 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1282 | self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference) |
1283 | def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self): |
1284 | reference="hex_3D_o1_contact_s.xml" |
1285 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1286 | x=ReducedFunctionOnContactZero(dom).getX() |
1287 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
1288 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference) |
1289 | def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector_vtk(self): |
1290 | reference="hex_3D_o1_contact_v.xml" |
1291 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1292 | x=ReducedFunctionOnContactZero(dom).getX() |
1293 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1294 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",reference) |
1295 | def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self): |
1296 | reference="hex_3D_o1_contact_t.xml" |
1297 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1298 | x=ReducedFunctionOnContactZero(dom).getX() |
1299 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1300 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference) |
1301 | def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self): |
1302 | reference="hex_3D_o1_contact_s.xml" |
1303 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1304 | x=FunctionOnContactZero(dom).getX() |
1305 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",data=x[0]) |
1306 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference) |
1307 | def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector_vtk(self): |
1308 | reference="hex_3D_o1_contact_v.xml" |
1309 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1310 | x=FunctionOnContactZero(dom).getX() |
1311 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1312 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",reference) |
1313 | def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self): |
1314 | reference="hex_3D_o1_contact_t.xml" |
1315 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1316 | x=FunctionOnContactZero(dom).getX() |
1317 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1318 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference) |
1319 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self): |
1320 | reference="hex_3D_o1_contact_s.xml" |
1321 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1322 | x=ReducedFunctionOnContactZero(dom).getX() |
1323 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
1324 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference) |
1325 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self): |
1326 | reference="hex_3D_o1_contact_v.xml" |
1327 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1328 | x=ReducedFunctionOnContactZero(dom).getX() |
1329 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1330 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference) |
1331 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self): |
1332 | reference="hex_3D_o1_contact_t.xml" |
1333 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1334 | x=ReducedFunctionOnContactZero(dom).getX() |
1335 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1336 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference) |
1337 | def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self): |
1338 | reference="hex_3D_o1_contact_s.xml" |
1339 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1340 | x=FunctionOnContactOne(dom).getX() |
1341 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",data=x[0]) |
1342 | self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",reference) |
1343 | def test_hex_contact_3D_order1_FunctionOnContactOne_Vector_vtk(self): |
1344 | reference="hex_3D_o1_contact_v.xml" |
1345 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1346 | x=FunctionOnContactOne(dom).getX() |
1347 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1348 | self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",reference) |
1349 | def test_hex_contact_3D_order1_FunctionOnContactOne_Tensor_vtk(self): |
1350 | reference="hex_3D_o1_contact_t.xml" |
1351 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1352 | x=FunctionOnContactOne(dom).getX() |
1353 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1354 | self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference) |
1355 | def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self): |
1356 | reference="hex_3D_o1_contact_s.xml" |
1357 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1358 | x=ReducedFunctionOnContactOne(dom).getX() |
1359 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
1360 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference) |
1361 | def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector_vtk(self): |
1362 | reference="hex_3D_o1_contact_v.xml" |
1363 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1364 | x=ReducedFunctionOnContactOne(dom).getX() |
1365 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1366 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",reference) |
1367 | def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self): |
1368 | reference="hex_3D_o1_contact_t.xml" |
1369 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False) |
1370 | x=ReducedFunctionOnContactOne(dom).getX() |
1371 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1372 | self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference) |
1373 | def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self): |
1374 | reference="hex_3D_o1_contact_s.xml" |
1375 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1376 | x=FunctionOnContactOne(dom).getX() |
1377 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",data=x[0]) |
1378 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference) |
1379 | def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector_vtk(self): |
1380 | reference="hex_3D_o1_contact_v.xml" |
1381 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1382 | x=FunctionOnContactOne(dom).getX() |
1383 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1384 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",reference) |
1385 | def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self): |
1386 | reference="hex_3D_o1_contact_t.xml" |
1387 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1388 | x=FunctionOnContactOne(dom).getX() |
1389 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1390 | self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference) |
1391 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self): |
1392 | reference="hex_3D_o1_contact_s.xml" |
1393 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1394 | x=ReducedFunctionOnContactOne(dom).getX() |
1395 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
1396 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference) |
1397 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self): |
1398 | reference="hex_3D_o1_contact_v.xml" |
1399 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1400 | x=ReducedFunctionOnContactOne(dom).getX() |
1401 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1402 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference) |
1403 | def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self): |
1404 | reference="hex_3D_o1_contact_t.xml" |
1405 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False) |
1406 | x=ReducedFunctionOnContactOne(dom).getX() |
1407 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1408 | self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference) |
1409 | # ====================================================================================================================== |
1410 | def test_hex_contact_3D_order2_ContinuousFunction_Scalar_vtk(self): |
1411 | reference="hex_3D_o2_node_s.xml" |
1412 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1413 | x=ContinuousFunction(dom).getX() |
1414 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Scalar.xml",data=x[0]) |
1415 | self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Scalar.xml",reference) |
1416 | def test_hex_contact_3D_order2_ContinuousFunction_Vector_vtk(self): |
1417 | reference="hex_3D_o2_node_v.xml" |
1418 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1419 | x=ContinuousFunction(dom).getX() |
1420 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.]) |
1421 | self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Vector.xml",reference) |
1422 | def test_hex_contact_3D_order2_ContinuousFunction_Tensor_vtk(self): |
1423 | reference="hex_3D_o2_node_t.xml" |
1424 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1425 | x=ContinuousFunction(dom).getX() |
1426 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1427 | self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Tensor.xml",reference) |
1428 | def test_hex_contact_3D_order2_Solution_Scalar_vtk(self): |
1429 | reference="hex_3D_o2_node_s.xml" |
1430 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1431 | x=Solution(dom).getX() |
1432 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Scalar.xml",data=x[0]) |
1433 | self.check_vtk("hex_contact_3D_order2_Solution_Scalar.xml",reference) |
1434 | def test_hex_contact_3D_order2_Solution_Vector_vtk(self): |
1435 | reference="hex_3D_o2_node_v.xml" |
1436 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1437 | x=Solution(dom).getX() |
1438 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Vector.xml",data=x[0]*[1.,2.,3.]) |
1439 | self.check_vtk("hex_contact_3D_order2_Solution_Vector.xml",reference) |
1440 | def test_hex_contact_3D_order2_Solution_Tensor_vtk(self): |
1441 | reference="hex_3D_o2_node_t.xml" |
1442 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1443 | x=Solution(dom).getX() |
1444 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1445 | self.check_vtk("hex_contact_3D_order2_Solution_Tensor.xml",reference) |
1446 | def test_hex_contact_3D_order2_ReducedSolution_Scalar_vtk(self): |
1447 | reference="hex_3D_o1_node_s.xml" |
1448 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1449 | x=ReducedSolution(dom).getX() |
1450 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Scalar.xml",data=x[0]) |
1451 | self.check_vtk("hex_contact_3D_order2_ReducedSolution_Scalar.xml",reference) |
1452 | def test_hex_contact_3D_order2_ReducedSolution_Vector_vtk(self): |
1453 | reference="hex_3D_o1_node_v.xml" |
1454 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1455 | x=ReducedSolution(dom).getX() |
1456 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.]) |
1457 | self.check_vtk("hex_contact_3D_order2_ReducedSolution_Vector.xml",reference) |
1458 | def test_hex_contact_3D_order2_ReducedSolution_Tensor_vtk(self): |
1459 | reference="hex_3D_o1_node_t.xml" |
1460 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1461 | x=ReducedSolution(dom).getX() |
1462 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1463 | self.check_vtk("hex_contact_3D_order2_ReducedSolution_Tensor.xml",reference) |
1464 | def test_hex_contact_3D_order2_Function_Scalar_vtk(self): |
1465 | reference="hex_3D_o2_cell_s.xml" |
1466 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1467 | x=Function(dom).getX() |
1468 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Scalar.xml",data=x[0]) |
1469 | self.check_vtk("hex_contact_3D_order2_Function_Scalar.xml",reference) |
1470 | def test_hex_contact_3D_order2_Function_Vector_vtk(self): |
1471 | reference="hex_3D_o2_cell_v.xml" |
1472 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1473 | x=Function(dom).getX() |
1474 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Vector.xml",data=x[0]*[1.,2.,3.]) |
1475 | self.check_vtk("hex_contact_3D_order2_Function_Vector.xml",reference) |
1476 | def test_hex_contact_3D_order2_Function_Tensor_vtk(self): |
1477 | reference="hex_3D_o2_cell_t.xml" |
1478 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1479 | x=Function(dom).getX() |
1480 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1481 | self.check_vtk("hex_contact_3D_order2_Function_Tensor.xml",reference) |
1482 | def test_hex_contact_3D_order2_ReducedFunction_Scalar_vtk(self): |
1483 | reference="hex_3D_o2_cell_s.xml" |
1484 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1485 | x=ReducedFunction(dom).getX() |
1486 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Scalar.xml",data=x[0]) |
1487 | self.check_vtk("hex_contact_3D_order2_ReducedFunction_Scalar.xml",reference) |
1488 | def test_hex_contact_3D_order2_ReducedFunction_Vector_vtk(self): |
1489 | reference="hex_3D_o2_cell_v.xml" |
1490 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1491 | x=ReducedFunction(dom).getX() |
1492 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.]) |
1493 | self.check_vtk("hex_contact_3D_order2_ReducedFunction_Vector.xml",reference) |
1494 | def test_hex_contact_3D_order2_ReducedFunction_Tensor_vtk(self): |
1495 | reference="hex_3D_o2_cell_t.xml" |
1496 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1497 | x=ReducedFunction(dom).getX() |
1498 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1499 | self.check_vtk("hex_contact_3D_order2_ReducedFunction_Tensor.xml",reference) |
1500 | def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_vtk(self): |
1501 | reference="hex_3D_o2_boundary_s.xml" |
1502 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1503 | x=FunctionOnBoundary(dom).getX() |
1504 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",data=x[0]) |
1505 | self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",reference) |
1506 | def test_hex_contact_3D_order2_FunctionOnBoundary_Vector_vtk(self): |
1507 | reference="hex_3D_o2_boundary_v.xml" |
1508 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1509 | x=FunctionOnBoundary(dom).getX() |
1510 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1511 | self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",reference) |
1512 | def test_hex_contact_3D_order2_FunctionOnBoundary_Tensor_vtk(self): |
1513 | reference="hex_3D_o2_boundary_t.xml" |
1514 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1515 | x=FunctionOnBoundary(dom).getX() |
1516 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1517 | self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",reference) |
1518 | def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self): |
1519 | reference="hex_3D_o2_boundary_s.xml" |
1520 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1521 | x=ReducedFunctionOnBoundary(dom).getX() |
1522 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
1523 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference) |
1524 | def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector_vtk(self): |
1525 | reference="hex_3D_o2_boundary_v.xml" |
1526 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1527 | x=ReducedFunctionOnBoundary(dom).getX() |
1528 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1529 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml",reference) |
1530 | def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self): |
1531 | reference="hex_3D_o2_boundary_t.xml" |
1532 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1533 | x=ReducedFunctionOnBoundary(dom).getX() |
1534 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1535 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference) |
1536 | def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self): |
1537 | reference="hex_3D_o2_f_boundary_s.xml" |
1538 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1539 | x=FunctionOnBoundary(dom).getX() |
1540 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",data=x[0]) |
1541 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference) |
1542 | def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector_vtk(self): |
1543 | reference="hex_3D_o2_f_boundary_v.xml" |
1544 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1545 | x=FunctionOnBoundary(dom).getX() |
1546 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1547 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",reference) |
1548 | def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self): |
1549 | reference="hex_3D_o2_f_boundary_t.xml" |
1550 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1551 | x=FunctionOnBoundary(dom).getX() |
1552 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1553 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference) |
1554 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self): |
1555 | reference="hex_3D_o2_f_boundary_s.xml" |
1556 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1557 | x=ReducedFunctionOnBoundary(dom).getX() |
1558 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
1559 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference) |
1560 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self): |
1561 | reference="hex_3D_o2_f_boundary_v.xml" |
1562 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1563 | x=ReducedFunctionOnBoundary(dom).getX() |
1564 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1565 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference) |
1566 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self): |
1567 | reference="hex_3D_o2_f_boundary_t.xml" |
1568 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1569 | x=ReducedFunctionOnBoundary(dom).getX() |
1570 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1571 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference) |
1572 | def test_hex_contact_3D_order2_FunctionOnContactZero_Scalar_vtk(self): |
1573 | reference="hex_3D_o2_contact_s.xml" |
1574 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1575 | x=FunctionOnContactZero(dom).getX() |
1576 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",data=x[0]) |
1577 | self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",reference) |
1578 | def test_hex_contact_3D_order2_FunctionOnContactZero_Vector_vtk(self): |
1579 | reference="hex_3D_o2_contact_v.xml" |
1580 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1581 | x=FunctionOnContactZero(dom).getX() |
1582 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1583 | self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",reference) |
1584 | def test_hex_contact_3D_order2_FunctionOnContactZero_Tensor_vtk(self): |
1585 | reference="hex_3D_o2_contact_t.xml" |
1586 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1587 | x=FunctionOnContactZero(dom).getX() |
1588 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1589 | self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",reference) |
1590 | def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self): |
1591 | reference="hex_3D_o2_contact_s.xml" |
1592 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1593 | x=ReducedFunctionOnContactZero(dom).getX() |
1594 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
1595 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference) |
1596 | def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector_vtk(self): |
1597 | reference="hex_3D_o2_contact_v.xml" |
1598 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1599 | x=ReducedFunctionOnContactZero(dom).getX() |
1600 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1601 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml",reference) |
1602 | def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self): |
1603 | reference="hex_3D_o2_contact_t.xml" |
1604 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1605 | x=ReducedFunctionOnContactZero(dom).getX() |
1606 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1607 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference) |
1608 | def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self): |
1609 | reference="hex_3D_o2_contact_s.xml" |
1610 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1611 | x=FunctionOnContactZero(dom).getX() |
1612 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar.xml",data=x[0]) |
1613 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference) |
1614 | def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector_vtk(self): |
1615 | reference="hex_3D_o2_contact_v.xml" |
1616 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1617 | x=FunctionOnContactZero(dom).getX() |
1618 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1619 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector.xml",reference) |
1620 | def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self): |
1621 | reference="hex_3D_o2_contact_t.xml" |
1622 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1623 | x=FunctionOnContactZero(dom).getX() |
1624 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1625 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference) |
1626 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self): |
1627 | reference="hex_3D_o2_contact_s.xml" |
1628 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1629 | x=ReducedFunctionOnContactZero(dom).getX() |
1630 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0]) |
1631 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference) |
1632 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self): |
1633 | reference="hex_3D_o2_contact_v.xml" |
1634 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1635 | x=ReducedFunctionOnContactZero(dom).getX() |
1636 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.]) |
1637 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference) |
1638 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self): |
1639 | reference="hex_3D_o2_contact_t.xml" |
1640 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1641 | x=ReducedFunctionOnContactZero(dom).getX() |
1642 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1643 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference) |
1644 | def test_hex_contact_3D_order2_FunctionOnContactOne_Scalar_vtk(self): |
1645 | reference="hex_3D_o2_contact_s.xml" |
1646 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1647 | x=FunctionOnContactOne(dom).getX() |
1648 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Scalar.xml",data=x[0]) |
1649 | self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Scalar.xml",reference) |
1650 | def test_hex_contact_3D_order2_FunctionOnContactOne_Vector_vtk(self): |
1651 | reference="hex_3D_o2_contact_v.xml" |
1652 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1653 | x=FunctionOnContactOne(dom).getX() |
1654 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1655 | self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Vector.xml",reference) |
1656 | def test_hex_contact_3D_order2_FunctionOnContactOne_Tensor_vtk(self): |
1657 | reference="hex_3D_o2_contact_t.xml" |
1658 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1659 | x=FunctionOnContactOne(dom).getX() |
1660 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1661 | self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",reference) |
1662 | def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self): |
1663 | reference="hex_3D_o2_contact_s.xml" |
1664 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1665 | x=ReducedFunctionOnContactOne(dom).getX() |
1666 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
1667 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference) |
1668 | def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector_vtk(self): |
1669 | reference="hex_3D_o2_contact_v.xml" |
1670 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1671 | x=ReducedFunctionOnContactOne(dom).getX() |
1672 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1673 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector.xml",reference) |
1674 | def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self): |
1675 | reference="hex_3D_o2_contact_t.xml" |
1676 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False) |
1677 | x=ReducedFunctionOnContactOne(dom).getX() |
1678 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1679 | self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference) |
1680 | def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self): |
1681 | reference="hex_3D_o2_contact_s.xml" |
1682 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1683 | x=FunctionOnContactOne(dom).getX() |
1684 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar.xml",data=x[0]) |
1685 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference) |
1686 | def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector_vtk(self): |
1687 | reference="hex_3D_o2_contact_v.xml" |
1688 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1689 | x=FunctionOnContactOne(dom).getX() |
1690 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1691 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector.xml",reference) |
1692 | def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self): |
1693 | reference="hex_3D_o2_contact_t.xml" |
1694 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1695 | x=FunctionOnContactOne(dom).getX() |
1696 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1697 | self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference) |
1698 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self): |
1699 | reference="hex_3D_o2_contact_s.xml" |
1700 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1701 | x=ReducedFunctionOnContactOne(dom).getX() |
1702 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0]) |
1703 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference) |
1704 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self): |
1705 | reference="hex_3D_o2_contact_v.xml" |
1706 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1707 | x=ReducedFunctionOnContactOne(dom).getX() |
1708 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.]) |
1709 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference) |
1710 | def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self): |
1711 | reference="hex_3D_o2_contact_t.xml" |
1712 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False) |
1713 | x=ReducedFunctionOnContactOne(dom).getX() |
1714 | saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1715 | self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference) |
1716 | def test_hex_3D_order2p_ContinuousFunction_Scalar_vtk(self): |
1717 | reference="hex_3D_o2p_node_s.xml" |
1718 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1719 | x=ContinuousFunction(dom).getX() |
1720 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ContinuousFunction_Scalar.xml",data=x[0]) |
1721 | self.check_vtk("hex_3D_order2p_ContinuousFunction_Scalar.xml",reference) |
1722 | def test_hex_3D_order2p_ContinuousFunction_Vector_vtk(self): |
1723 | reference="hex_3D_o2p_node_v.xml" |
1724 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1725 | x=ContinuousFunction(dom).getX() |
1726 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.]) |
1727 | self.check_vtk("hex_3D_order2p_ContinuousFunction_Vector.xml",reference) |
1728 | def test_hex_3D_order2p_ContinuousFunction_Tensor_vtk(self): |
1729 | reference="hex_3D_o2p_node_t.xml" |
1730 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1731 | x=ContinuousFunction(dom).getX() |
1732 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1733 | self.check_vtk("hex_3D_order2p_ContinuousFunction_Tensor.xml",reference) |
1734 | def test_hex_3D_order2p_Solution_Scalar_vtk(self): |
1735 | reference="hex_3D_o2p_node_s.xml" |
1736 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1737 | x=Solution(dom).getX() |
1738 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_Solution_Scalar.xml",data=x[0]) |
1739 | self.check_vtk("hex_3D_order2p_Solution_Scalar.xml",reference) |
1740 | def test_hex_3D_order2p_Solution_Vector_vtk(self): |
1741 | reference="hex_3D_o2p_node_v.xml" |
1742 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1743 | x=Solution(dom).getX() |
1744 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_Solution_Vector.xml",data=x[0]*[1.,2.,3.]) |
1745 | self.check_vtk("hex_3D_order2p_Solution_Vector.xml",reference) |
1746 | def test_hex_3D_order2p_Solution_Tensor_vtk(self): |
1747 | reference="hex_3D_o2p_node_t.xml" |
1748 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1749 | x=Solution(dom).getX() |
1750 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1751 | self.check_vtk("hex_3D_order2p_Solution_Tensor.xml",reference) |
1752 | def test_hex_3D_order2p_ReducedSolution_Scalar_vtk(self): |
1753 | reference="hex_3D_o2p_reduced_node_s.xml" |
1754 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1755 | x=ReducedSolution(dom).getX() |
1756 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedSolution_Scalar.xml",data=x[0]) |
1757 | self.check_vtk("hex_3D_order2p_ReducedSolution_Scalar.xml",reference) |
1758 | def test_hex_3D_order2p_ReducedSolution_Vector_vtk(self): |
1759 | reference="hex_3D_o2p_reduced_node_v.xml" |
1760 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1761 | x=ReducedSolution(dom).getX() |
1762 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.]) |
1763 | self.check_vtk("hex_3D_order2p_ReducedSolution_Vector.xml",reference) |
1764 | def test_hex_3D_order2p_ReducedSolution_Tensor_vtk(self): |
1765 | reference="hex_3D_o2p_reduced_node_t.xml" |
1766 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1767 | x=ReducedSolution(dom).getX() |
1768 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1769 | self.check_vtk("hex_3D_order2p_ReducedSolution_Tensor.xml",reference) |
1770 | def test_hex_3D_order2p_Function_Scalar_vtk(self): |
1771 | reference="hex_3D_o2p_cell_s.xml" |
1772 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1773 | x=Function(dom).getX() |
1774 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_Function_Scalar.xml",data=x[0]) |
1775 | self.check_vtk("hex_3D_order2p_Function_Scalar.xml",reference) |
1776 | def test_hex_3D_order2p_Function_Vector_vtk(self): |
1777 | reference="hex_3D_o2p_cell_v.xml" |
1778 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1779 | x=Function(dom).getX() |
1780 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_Function_Vector.xml",data=x[0]*[1.,2.,3.]) |
1781 | self.check_vtk("hex_3D_order2p_Function_Vector.xml",reference) |
1782 | def test_hex_3D_order2p_Function_Tensor_vtk(self): |
1783 | reference="hex_3D_o2p_cell_t.xml" |
1784 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1785 | x=Function(dom).getX() |
1786 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1787 | self.check_vtk("hex_3D_order2p_Function_Tensor.xml",reference) |
1788 | def test_hex_3D_order2p_ReducedFunction_Scalar_vtk(self): |
1789 | reference="hex_3D_o2p_cell_reduced_s.xml" |
1790 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1791 | x=ReducedFunction(dom).getX() |
1792 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedFunction_Scalar.xml",data=x[0]) |
1793 | self.check_vtk("hex_3D_order2p_ReducedFunction_Scalar.xml",reference) |
1794 | def test_hex_3D_order2p_ReducedFunction_Vector_vtk(self): |
1795 | reference="hex_3D_o2p_cell_reduced_v.xml" |
1796 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1797 | x=ReducedFunction(dom).getX() |
1798 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.]) |
1799 | self.check_vtk("hex_3D_order2p_ReducedFunction_Vector.xml",reference) |
1800 | def test_hex_3D_order2p_ReducedFunction_Tensor_vtk(self): |
1801 | reference="hex_3D_o2p_cell_reduced_t.xml" |
1802 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1803 | x=ReducedFunction(dom).getX() |
1804 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1805 | self.check_vtk("hex_3D_order2p_ReducedFunction_Tensor.xml",reference) |
1806 | def test_hex_3D_order2p_FunctionOnBoundary_Scalar_vtk(self): |
1807 | reference="hex_3D_o2p_boundary_s.xml" |
1808 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1809 | x=FunctionOnBoundary(dom).getX() |
1810 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_FunctionOnBoundary_Scalar.xml",data=x[0]) |
1811 | self.check_vtk("hex_3D_order2p_FunctionOnBoundary_Scalar.xml",reference) |
1812 | def test_hex_3D_order2p_FunctionOnBoundary_Vector_vtk(self): |
1813 | reference="hex_3D_o2p_boundary_v.xml" |
1814 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1815 | x=FunctionOnBoundary(dom).getX() |
1816 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1817 | self.check_vtk("hex_3D_order2p_FunctionOnBoundary_Vector.xml",reference) |
1818 | def test_hex_3D_order2p_FunctionOnBoundary_Tensor_vtk(self): |
1819 | reference="hex_3D_o2p_boundary_t.xml" |
1820 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1821 | x=FunctionOnBoundary(dom).getX() |
1822 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1823 | self.check_vtk("hex_3D_order2p_FunctionOnBoundary_Tensor.xml",reference) |
1824 | def test_hex_3D_order2p_ReducedFunctionOnBoundary_Scalar_vtk(self): |
1825 | reference="hex_3D_o2p_boundary_reduced_s.xml" |
1826 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1827 | x=ReducedFunctionOnBoundary(dom).getX() |
1828 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedFunctionOnBoundary_Scalar.xml",data=x[0]) |
1829 | self.check_vtk("hex_3D_order2p_ReducedFunctionOnBoundary_Scalar.xml",reference) |
1830 | def test_hex_3D_order2p_ReducedFunctionOnBoundary_Vector_vtk(self): |
1831 | reference="hex_3D_o2p_boundary_reduced_v.xml" |
1832 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1833 | x=ReducedFunctionOnBoundary(dom).getX() |
1834 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.]) |
1835 | self.check_vtk("hex_3D_order2p_ReducedFunctionOnBoundary_Vector.xml",reference) |
1836 | def test_hex_3D_order2p_ReducedFunctionOnBoundary_Tensor_vtk(self): |
1837 | reference="hex_3D_o2p_boundary_reduced_t.xml" |
1838 | dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_3D_order2p.msh",optimize=False) |
1839 | x=ReducedFunctionOnBoundary(dom).getX() |
1840 | saveVTK(FINLEY_WORKDIR_PATH+"hex_3D_order2p_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]]) |
1841 | self.check_vtk("hex_3D_order2p_ReducedFunctionOnBoundary_Tensor.xml",reference) |
1842 | def test_tet_2D_order2_vtk(self): |
1843 | reference="tet_2D_o2.xml" |
1844 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1845 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2.xml"),domain=dom) |
1846 | self.check_vtk("tet_2D_order2.xml",reference) |
1847 | |
1848 | def test_tet_2D_order2_AllPoints_Scalar_vtk(self): |
1849 | reference="tet_2D_o1_node_3xs.xml" |
1850 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1851 | x=Solution(dom).getX() |
1852 | x_r=ReducedSolution(dom).getX() |
1853 | x_n=ContinuousFunction(dom).getX() |
1854 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_AllPoints_Scalar.xml"),data_r=x_r[0],data_n=x_n[0],data=x[0]) |
1855 | self.check_vtk("tet_2D_order2_AllPoints_Scalar.xml",reference) |
1856 | def test_tet_2D_order2_02Points_Scalar_vtk(self): |
1857 | reference="tet_2D_o2_node_2xs.xml" |
1858 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1859 | x=Solution(dom).getX() |
1860 | x_n=ContinuousFunction(dom).getX() |
1861 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_O2Points_Scalar.xml"),data_n=x_n[0],data=x[0]) |
1862 | self.check_vtk("tet_2D_order2_O2Points_Scalar.xml",reference) |
1863 | def test_tet_2D_order2_2Cells_Scalar_vtk(self): |
1864 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1865 | x=Function(dom).getX() |
1866 | x_b=FunctionOnBoundary(dom).getX() |
1867 | try: |
1868 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_2Cells_Scalar.xml"),data=x[0],data_b=x_b[0]) |
1869 | self.fail("non-matching data not detected.") |
1870 | except StandardError: |
1871 | pass |
1872 | def test_tet_2D_order2_BoundaryPoint_Scalar_vtk(self): |
1873 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1874 | x=ContinuousFunction(dom).getX() |
1875 | x_b=FunctionOnBoundary(dom).getX() |
1876 | try: |
1877 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_BoundaryPoint_Scalar.xml"),data=x[0],data_b=x_b[0]) |
1878 | self.fail("non-matching data not detected.") |
1879 | except StandardError: |
1880 | pass |
1881 | def test_tet_2D_order2_Cells_AllData_vtk(self): |
1882 | reference="tet_2D_o2_cell_all.xml" |
1883 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1884 | x=Function(dom).getX() |
1885 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Cells_AllData.xml"),data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]]) |
1886 | self.check_vtk("tet_2D_order2_Cells_AllData.xml",reference) |
1887 | |
1888 | def test_tet_2D_order2_CellsPoints_AllData_vtk(self): |
1889 | reference="tet_2D_o2_cellnode_all.xml" |
1890 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
1891 | x_c=Function(dom).getX() |
1892 | x_p=ContinuousFunction(dom).getX() |
1893 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_CellsPoints_AllData.xml"),data_sp=x_p[0], |
1894 | data_vp=x_p[0]*[1.,2.], |
1895 | data_tp=x_p[0]*[[11.,12.],[21.,22.]], |
1896 | data_sc=x_c[0], |
1897 | data_vc=x_c[0]*[1.,2.], |
1898 | data_tc=x_c[0]*[[11.,12.],[21.,22.]]) |
1899 | self.check_vtk("tet_2D_order2_CellsPoints_AllData.xml",reference) |
1900 | # ====================================================================================================================== |
1901 | def test_tet_2D_order1_ContinuousFunction_Scalar_vtk(self): |
1902 | reference="tet_2D_o1_node_s.xml" |
1903 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1904 | x=ContinuousFunction(dom).getX() |
1905 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Scalar.xml"),data=x[0]) |
1906 | self.check_vtk("tet_2D_order1_ContinuousFunction_Scalar.xml",reference) |
1907 | def test_tet_2D_order1_ContinuousFunction_Vector_vtk(self): |
1908 | reference="tet_2D_o1_node_v.xml" |
1909 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1910 | x=ContinuousFunction(dom).getX() |
1911 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.]) |
1912 | self.check_vtk("tet_2D_order1_ContinuousFunction_Vector.xml",reference) |
1913 | def test_tet_2D_order1_ContinuousFunction_Tensor_vtk(self): |
1914 | reference="tet_2D_o1_node_t.xml" |
1915 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1916 | x=ContinuousFunction(dom).getX() |
1917 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
1918 | self.check_vtk("tet_2D_order1_ContinuousFunction_Tensor.xml",reference) |
1919 | def test_tet_2D_order1_Solution_Scalar_vtk(self): |
1920 | reference="tet_2D_o1_node_s.xml" |
1921 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1922 | x=Solution(dom).getX() |
1923 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Scalar.xml"),data=x[0]) |
1924 | self.check_vtk("tet_2D_order1_Solution_Scalar.xml",reference) |
1925 | def test_tet_2D_order1_Solution_Vector_vtk(self): |
1926 | reference="tet_2D_o1_node_v.xml" |
1927 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1928 | x=Solution(dom).getX() |
1929 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.]) |
1930 | self.check_vtk("tet_2D_order1_Solution_Vector.xml",reference) |
1931 | def test_tet_2D_order1_Solution_Tensor_vtk(self): |
1932 | reference="tet_2D_o1_node_t.xml" |
1933 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1934 | x=Solution(dom).getX() |
1935 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
1936 | self.check_vtk("tet_2D_order1_Solution_Tensor.xml",reference) |
1937 | def test_tet_2D_order1_ReducedSolution_Scalar_vtk(self): |
1938 | reference="tet_2D_o1_node_s.xml" |
1939 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1940 | x=ReducedSolution(dom).getX() |
1941 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Scalar.xml"),data=x[0]) |
1942 | self.check_vtk("tet_2D_order1_ReducedSolution_Scalar.xml",reference) |
1943 | def test_tet_2D_order1_ReducedSolution_Vector_vtk(self): |
1944 | reference="tet_2D_o1_node_v.xml" |
1945 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1946 | x=ReducedSolution(dom).getX() |
1947 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.]) |
1948 | self.check_vtk("tet_2D_order1_ReducedSolution_Vector.xml",reference) |
1949 | def test_tet_2D_order1_ReducedSolution_Tensor_vtk(self): |
1950 | reference="tet_2D_o1_node_t.xml" |
1951 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1952 | x=ReducedSolution(dom).getX() |
1953 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
1954 | self.check_vtk("tet_2D_order1_ReducedSolution_Tensor.xml",reference) |
1955 | def test_tet_2D_order1_Function_Scalar_vtk(self): |
1956 | reference="tet_2D_o1_cell_s.xml" |
1957 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1958 | x=Function(dom).getX() |
1959 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Scalar.xml"),data=x[0]) |
1960 | self.check_vtk("tet_2D_order1_Function_Scalar.xml",reference) |
1961 | def test_tet_2D_order1_Function_Vector_vtk(self): |
1962 | reference="tet_2D_o1_cell_v.xml" |
1963 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1964 | x=Function(dom).getX() |
1965 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Vector.xml"),data=x[0]*[1.,2.]) |
1966 | self.check_vtk("tet_2D_order1_Function_Vector.xml",reference) |
1967 | def test_tet_2D_order1_Function_Tensor_vtk(self): |
1968 | reference="tet_2D_o1_cell_t.xml" |
1969 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1970 | x=Function(dom).getX() |
1971 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
1972 | self.check_vtk("tet_2D_order1_Function_Tensor.xml",reference) |
1973 | def test_tet_2D_order1_ReducedFunction_Scalar_vtk(self): |
1974 | reference="tet_2D_o1_cell_s.xml" |
1975 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1976 | x=ReducedFunction(dom).getX() |
1977 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Scalar.xml"),data=x[0]) |
1978 | self.check_vtk("tet_2D_order1_ReducedFunction_Scalar.xml",reference) |
1979 | def test_tet_2D_order1_ReducedFunction_Vector_vtk(self): |
1980 | reference="tet_2D_o1_cell_v.xml" |
1981 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1982 | x=ReducedFunction(dom).getX() |
1983 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.]) |
1984 | self.check_vtk("tet_2D_order1_ReducedFunction_Vector.xml",reference) |
1985 | def test_tet_2D_order1_ReducedFunction_Tensor_vtk(self): |
1986 | reference="tet_2D_o1_cell_t.xml" |
1987 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1988 | x=ReducedFunction(dom).getX() |
1989 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
1990 | self.check_vtk("tet_2D_order1_ReducedFunction_Tensor.xml",reference) |
1991 | def test_tet_2D_order1_FunctionOnBoundary_Scalar_vtk(self): |
1992 | reference="tet_2D_o1_boundary_s.xml" |
1993 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
1994 | x=FunctionOnBoundary(dom).getX() |
1995 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0]) |
1996 | self.check_vtk("tet_2D_order1_FunctionOnBoundary_Scalar.xml",reference) |
1997 | def test_tet_2D_order1_FunctionOnBoundary_Vector_vtk(self): |
1998 | reference="tet_2D_o1_boundary_v.xml" |
1999 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
2000 | x=FunctionOnBoundary(dom).getX() |
2001 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.]) |
2002 | self.check_vtk("tet_2D_order1_FunctionOnBoundary_Vector.xml",reference) |
2003 | def test_tet_2D_order1_FunctionOnBoundary_Tensor_vtk(self): |
2004 | reference="tet_2D_o1_boundary_t.xml" |
2005 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
2006 | x=FunctionOnBoundary(dom).getX() |
2007 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
2008 | self.check_vtk("tet_2D_order1_FunctionOnBoundary_Tensor.xml",reference) |
2009 | def test_tet_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self): |
2010 | reference="tet_2D_o1_boundary_s.xml" |
2011 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
2012 | x=ReducedFunctionOnBoundary(dom).getX() |
2013 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0]) |
2014 | self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference) |
2015 | def test_tet_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self): |
2016 | reference="tet_2D_o1_boundary_v.xml" |
2017 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
2018 | x=ReducedFunctionOnBoundary(dom).getX() |
2019 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.]) |
2020 | self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference) |
2021 | def test_tet_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self): |
2022 | reference="tet_2D_o1_boundary_t.xml" |
2023 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False) |
2024 | x=ReducedFunctionOnBoundary(dom).getX() |
2025 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]]) |
2026 | self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference) |
2027 | # ====================================================================================================================== |
2028 | def test_tet_2D_order2_ContinuousFunction_Scalar_vtk(self): |
2029 | reference="tet_2D_o2_node_s.xml" |
2030 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
2031 | x=ContinuousFunction(dom).getX() |
2032 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Scalar.xml"),data=x[0]) |
2033 | self.check_vtk("tet_2D_order2_ContinuousFunction_Scalar.xml",reference) |
2034 | def test_tet_2D_order2_ContinuousFunction_Vector_vtk(self): |
2035 | reference="tet_2D_o2_node_v.xml" |
2036 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
2037 | x=ContinuousFunction(dom).getX() |
2038 | saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.]) |
2039 | self.check_vtk("tet_2D_order2_ContinuousFunction_Vector.xml",reference) |
2040 | def test_tet_2D_order2_ContinuousFunction_Tensor_vtk(self): |
2041 | reference="tet_2D_o2_node_t.xml" |
2042 | dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False) |
2043 | x= |