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

Annotation of /trunk/finley/test/python/run_visualization_interface.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1867 - (hide annotations)
Thu Oct 9 05:35:24 2008 UTC (14 years, 1 month ago) by ksteube
File MIME type: text/x-python
File size: 202899 byte(s)
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 ksteube 1809
2     ########################################################
3 ksteube 1312 #
4 ksteube 1809 # Copyright (c) 2003-2008 by University of Queensland
5     # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 ksteube 1312 #
8 ksteube 1809 # 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 ksteube 1312 #
12 ksteube 1809 ########################################################
13 jgs 150
14 ksteube 1809 __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 elspeth 617 __license__="""Licensed under the Open Software License version 3.0
19 ksteube 1809 http://www.opensource.org/licenses/osl-3.0.php"""
20     __url__="http://www.uq.edu.au/esscc/escript-finley"
21    
22 ksteube 1867 import sys, math, re
23 jgs 150 import unittest
24     from esys.escript import *
25     from esys.finley import ReadMesh
26    
27 gross 798 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 ksteube 1312 FINLEY_TEST_MESH_PATH=FINLEY_TEST_DATA+"/data_meshes/"
38 phornby 1455 # if os.name == "nt":
39     # FINLEY_TEST_MESH_PATH = FINLEY_TEST_MESH_PATH+"win32/"
40 ksteube 1312 FINLEY_WORKDIR_PATH=FINLEY_WORKDIR+"/"
41 gross 709
42 jgs 150 class Test_VisualizationInterface(unittest.TestCase):
43 ksteube 1867 def check_vtk_old(self,f,reference_f):
44 gross 1181 # if reference_f.startswith("tet_"): os.link(os.path.join(FINLEY_WORKDIR_PATH,f),os.path.join(FINLEY_TEST_MESH_PATH,reference_f))
45 gross 1135 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 jgs 150 c=0
48     for l in range(0,len(ref_string)):
49     if not ref_string[l].strip()[:2]=="<!":
50 gross 1135 line=out_string[c].strip()
51     if os.name == "nt":
52     line=line.replace("e+00","e+0").replace("e-00","e-0")
53 gross 1379 # 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 gross 1135 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 jgs 150 c+=1
57    
58 ksteube 1867 # 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 jgs 150 def check_dx(self,f,reference_f):
229 ksteube 1312 out_string=open(FINLEY_WORKDIR_PATH+f).read().splitlines()
230     ref_string=open(FINLEY_TEST_MESH_PATH+reference_f).read().splitlines()
231 jgs 150 c=0
232     for l in range(0,len(ref_string)):
233     if not ref_string[l].strip()[0]=="#":
234 gross 1135 line=out_string[c].strip()
235     if os.name == "nt":
236     line=line.replace("e+00","e+0").replace("e-00","e-0")
237 gross 1185 line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")
238 gross 1135 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 jgs 150 c+=1
240    
241     class Test_VTKFiles(Test_VisualizationInterface):
242     # ======================================================================================================================
243 jgs 153 def test_hex_2D_order2_vtk(self):
244     reference="hex_2D_o2.xml"
245 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
246     saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2.xml",domain=dom)
247 jgs 153 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
252 jgs 153 x=Solution(dom).getX()
253     x_r=ReducedSolution(dom).getX()
254     x_n=ContinuousFunction(dom).getX()
255 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_AllPoints_Scalar.xml",data_r=x_r[0],data_n=x_n[0],data=x[0])
256 jgs 153 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
260 jgs 153 x=Solution(dom).getX()
261     x_n=ContinuousFunction(dom).getX()
262 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_O2Points_Scalar.xml",data_n=x_n[0],data=x[0])
263 jgs 153 self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference)
264     def test_hex_2D_order2_2Cells_Scalar_vtk(self):
265 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
266 jgs 153 x=Function(dom).getX()
267     x_b=FunctionOnBoundary(dom).getX()
268     try:
269 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_2Cells_Scalar.xml",data=x[0],data_b=x_b[0])
270 jgs 153 self.fail("non-matching data not detected.")
271     except StandardError:
272     pass
273 gross 1065 def test_hex_2D_order2_BoundaryPoint_Scalar_vtk(self):
274 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
275 jgs 153 x=ContinuousFunction(dom).getX()
276     x_b=FunctionOnBoundary(dom).getX()
277     try:
278 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundaryPoint_Scalar.xml",data=x[0],data_b=x_b[0])
279 jgs 153 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
285 jgs 153 x=Function(dom).getX()
286 ksteube 1312 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 jgs 153 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh",optimize=False)
292 jgs 153 x_c=Function(dom).getX()
293     x_p=ContinuousFunction(dom).getX()
294 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_CellsPoints_AllData.xml",data_sp=x_p[0],
295 jgs 153 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 gross 1742 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 jgs 153 # ======================================================================================================================
360 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Scalar_vtk(self):
361     reference="hex_2D_o1_node_s.xml"
362 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
363 jgs 150 x=ContinuousFunction(dom).getX()
364 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Scalar.xml",data=x[0])
365 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Scalar.xml",reference)
366 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Vector_vtk(self):
367     reference="hex_2D_o1_node_v.xml"
368 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
369 jgs 150 x=ContinuousFunction(dom).getX()
370 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.])
371 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Vector.xml",reference)
372 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Tensor_vtk(self):
373     reference="hex_2D_o1_node_t.xml"
374 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
375 jgs 150 x=ContinuousFunction(dom).getX()
376 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
377 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Tensor.xml",reference)
378 jgs 150 def test_hex_contact_2D_order1_Solution_Scalar_vtk(self):
379     reference="hex_2D_o1_node_s.xml"
380 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
381 jgs 150 x=Solution(dom).getX()
382 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Scalar.xml",data=x[0])
383 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Scalar.xml",reference)
384 jgs 150 def test_hex_contact_2D_order1_Solution_Vector_vtk(self):
385     reference="hex_2D_o1_node_v.xml"
386 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
387 jgs 150 x=Solution(dom).getX()
388 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Vector.xml",data=x[0]*[1.,2.])
389 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Vector.xml",reference)
390 jgs 150 def test_hex_contact_2D_order1_Solution_Tensor_vtk(self):
391     reference="hex_2D_o1_node_t.xml"
392 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
393 jgs 150 x=Solution(dom).getX()
394 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
395 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Tensor.xml",reference)
396 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Scalar_vtk(self):
397     reference="hex_2D_o1_node_s.xml"
398 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
399 jgs 150 x=ReducedSolution(dom).getX()
400 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Scalar.xml",data=x[0])
401 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Scalar.xml",reference)
402 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Vector_vtk(self):
403     reference="hex_2D_o1_node_v.xml"
404 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
405 jgs 150 x=ReducedSolution(dom).getX()
406 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Vector.xml",data=x[0]*[1.,2.])
407 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Vector.xml",reference)
408 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Tensor_vtk(self):
409     reference="hex_2D_o1_node_t.xml"
410 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
411 jgs 150 x=ReducedSolution(dom).getX()
412 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
413 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Tensor.xml",reference)
414 jgs 150 def test_hex_contact_2D_order1_Function_Scalar_vtk(self):
415     reference="hex_2D_o1_cell_s.xml"
416 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
417 jgs 150 x=Function(dom).getX()
418 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Scalar.xml",data=x[0])
419 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Scalar.xml",reference)
420 jgs 150 def test_hex_contact_2D_order1_Function_Vector_vtk(self):
421     reference="hex_2D_o1_cell_v.xml"
422 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
423 jgs 150 x=Function(dom).getX()
424 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Vector.xml",data=x[0]*[1.,2.])
425 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Vector.xml",reference)
426 jgs 150 def test_hex_contact_2D_order1_Function_Tensor_vtk(self):
427     reference="hex_2D_o1_cell_t.xml"
428 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
429 jgs 150 x=Function(dom).getX()
430 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
431 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference)
432 gross 1065 def test_hex_contact_2D_order1_ReducedFunction_Scalar_vtk(self):
433     reference="hex_2D_o1_cell_s.xml"
434 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
435 gross 1065 x=ReducedFunction(dom).getX()
436 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Scalar.xml",data=x[0])
437 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
441 gross 1065 x=ReducedFunction(dom).getX()
442 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Vector.xml",data=x[0]*[1.,2.])
443 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
447 gross 1065 x=ReducedFunction(dom).getX()
448 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
449 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Tensor.xml",reference)
450 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self):
451     reference="hex_2D_o1_boundary_s.xml"
452 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
453 jgs 150 x=FunctionOnBoundary(dom).getX()
454 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",data=x[0])
455 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",reference)
456 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Vector_vtk(self):
457     reference="hex_2D_o1_boundary_v.xml"
458 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
459 jgs 150 x=FunctionOnBoundary(dom).getX()
460 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
461 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",reference)
462 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Tensor_vtk(self):
463     reference="hex_2D_o1_boundary_t.xml"
464 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
465 jgs 150 x=FunctionOnBoundary(dom).getX()
466 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
467 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference)
468 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
469     reference="hex_2D_o1_boundary_s.xml"
470 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
471 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
472 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
473 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
477 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
478 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
479 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
483 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
484 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
485 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
486 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
487     reference="hex_2D_o1_f_boundary_s.xml"
488 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
489 jgs 150 x=FunctionOnBoundary(dom).getX()
490 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
491 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
492 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
493     reference="hex_2D_o1_f_boundary_v.xml"
494 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
495 jgs 150 x=FunctionOnBoundary(dom).getX()
496 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
497 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
498 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
499     reference="hex_2D_o1_f_boundary_t.xml"
500 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
501 jgs 150 x=FunctionOnBoundary(dom).getX()
502 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
503 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
504 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
505     reference="hex_2D_o1_f_boundary_s.xml"
506 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
507 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
508 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
509 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
513 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
514 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
515 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
519 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
520 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
521 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
522 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self):
523     reference="hex_2D_o1_contact_s.xml"
524 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
525 jgs 150 x=FunctionOnContactZero(dom).getX()
526 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",data=x[0])
527 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",reference)
528 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Vector_vtk(self):
529     reference="hex_2D_o1_contact_v.xml"
530 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
531 jgs 150 x=FunctionOnContactZero(dom).getX()
532 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
533 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",reference)
534 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Tensor_vtk(self):
535     reference="hex_2D_o1_contact_t.xml"
536 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
537 jgs 150 x=FunctionOnContactZero(dom).getX()
538 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
539 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference)
540 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
541     reference="hex_2D_o1_contact_s.xml"
542 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
543 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
544 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
545 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
549 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
550 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
551 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
555 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
556 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
557 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
558 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
559     reference="hex_2D_o1_contact_s.xml"
560 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
561 jgs 150 x=FunctionOnContactZero(dom).getX()
562 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
563 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
564 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
565     reference="hex_2D_o1_contact_v.xml"
566 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
567 jgs 150 x=FunctionOnContactZero(dom).getX()
568 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
569 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
570 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
571     reference="hex_2D_o1_contact_t.xml"
572 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
573 jgs 150 x=FunctionOnContactZero(dom).getX()
574 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
575 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
576 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
577     reference="hex_2D_o1_contact_s.xml"
578 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
579 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
580 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
581 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
585 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
586 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
587 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
591 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
592 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
593 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
594 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self):
595     reference="hex_2D_o1_contact_s.xml"
596 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
597 jgs 150 x=FunctionOnContactOne(dom).getX()
598 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",data=x[0])
599 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",reference)
600 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Vector_vtk(self):
601     reference="hex_2D_o1_contact_v.xml"
602 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
603 jgs 150 x=FunctionOnContactOne(dom).getX()
604 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
605 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",reference)
606 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Tensor_vtk(self):
607     reference="hex_2D_o1_contact_t.xml"
608 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
609 jgs 150 x=FunctionOnContactOne(dom).getX()
610 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
611 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference)
612 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
613     reference="hex_2D_o1_contact_s.xml"
614 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
615 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
616 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
617 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
621 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
622 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
623 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh",optimize=False)
627 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
628 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
629 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
630 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
631     reference="hex_2D_o1_contact_s.xml"
632 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
633 jgs 150 x=FunctionOnContactOne(dom).getX()
634 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
635 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
636 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
637     reference="hex_2D_o1_contact_v.xml"
638 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
639 jgs 150 x=FunctionOnContactOne(dom).getX()
640 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
641 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
642 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
643     reference="hex_2D_o1_contact_t.xml"
644 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
645 jgs 150 x=FunctionOnContactOne(dom).getX()
646 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
647 gross 1149 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
648 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
649     reference="hex_2D_o1_contact_s.xml"
650 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
651 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
652 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
653 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
657 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
658 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
659 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh",optimize=False)
663 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
664 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
665 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
666 jgs 150 # ======================================================================================================================
667     def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self):
668     reference="hex_2D_o2_node_s.xml"
669 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
670 jgs 150 x=ContinuousFunction(dom).getX()
671 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Scalar.xml",data=x[0])
672 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Scalar.xml",reference)
673 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Vector_vtk(self):
674     reference="hex_2D_o2_node_v.xml"
675 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
676 jgs 150 x=ContinuousFunction(dom).getX()
677 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.])
678 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Vector.xml",reference)
679 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Tensor_vtk(self):
680     reference="hex_2D_o2_node_t.xml"
681 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
682 jgs 150 x=ContinuousFunction(dom).getX()
683 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
684 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Tensor.xml",reference)
685 jgs 150 def test_hex_contact_2D_order2_Solution_Scalar_vtk(self):
686     reference="hex_2D_o2_node_s.xml"
687 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
688 jgs 150 x=Solution(dom).getX()
689 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Scalar.xml",data=x[0])
690 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Scalar.xml",reference)
691 jgs 150 def test_hex_contact_2D_order2_Solution_Vector_vtk(self):
692     reference="hex_2D_o2_node_v.xml"
693 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
694 jgs 150 x=Solution(dom).getX()
695 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Vector.xml",data=x[0]*[1.,2.])
696 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Vector.xml",reference)
697 jgs 150 def test_hex_contact_2D_order2_Solution_Tensor_vtk(self):
698     reference="hex_2D_o2_node_t.xml"
699 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
700 jgs 150 x=Solution(dom).getX()
701 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
702 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Tensor.xml",reference)
703 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Scalar_vtk(self):
704     reference="hex_2D_o1_node_s.xml"
705 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
706 jgs 150 x=ReducedSolution(dom).getX()
707 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Scalar.xml",data=x[0])
708 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Scalar.xml",reference)
709 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Vector_vtk(self):
710     reference="hex_2D_o1_node_v.xml"
711 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
712 jgs 150 x=ReducedSolution(dom).getX()
713 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Vector.xml",data=x[0]*[1.,2.])
714 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Vector.xml",reference)
715 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Tensor_vtk(self):
716     reference="hex_2D_o1_node_t.xml"
717 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
718 jgs 150 x=ReducedSolution(dom).getX()
719 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
720 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Tensor.xml",reference)
721 jgs 150 def test_hex_contact_2D_order2_Function_Scalar_vtk(self):
722     reference="hex_2D_o2_cell_s.xml"
723 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
724 jgs 150 x=Function(dom).getX()
725 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Scalar.xml",data=x[0])
726 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Scalar.xml",reference)
727 jgs 150 def test_hex_contact_2D_order2_Function_Vector_vtk(self):
728     reference="hex_2D_o2_cell_v.xml"
729 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
730 jgs 150 x=Function(dom).getX()
731 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Vector.xml",data=x[0]*[1.,2.])
732 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Vector.xml",reference)
733 jgs 150 def test_hex_contact_2D_order2_Function_Tensor_vtk(self):
734     reference="hex_2D_o2_cell_t.xml"
735 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
736 jgs 150 x=Function(dom).getX()
737 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
738 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference)
739 gross 1065 def test_hex_contact_2D_order2_ReducedFunction_Scalar_vtk(self):
740     reference="hex_2D_o2_cell_s.xml"
741 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
742 gross 1065 x=ReducedFunction(dom).getX()
743 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Scalar.xml",data=x[0])
744 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
748 gross 1065 x=ReducedFunction(dom).getX()
749 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Vector.xml",data=x[0]*[1.,2.])
750 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
754 gross 1065 x=ReducedFunction(dom).getX()
755 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
756 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Tensor.xml",reference)
757 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self):
758     reference="hex_2D_o2_boundary_s.xml"
759 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
760 jgs 150 x=FunctionOnBoundary(dom).getX()
761 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",data=x[0])
762 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",reference)
763 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Vector_vtk(self):
764     reference="hex_2D_o2_boundary_v.xml"
765 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
766 jgs 150 x=FunctionOnBoundary(dom).getX()
767 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
768 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",reference)
769 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Tensor_vtk(self):
770     reference="hex_2D_o2_boundary_t.xml"
771 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
772 jgs 150 x=FunctionOnBoundary(dom).getX()
773 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
774 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference)
775 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
776     reference="hex_2D_o2_boundary_s.xml"
777 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
778 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
779 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
780 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
784 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
785 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
786 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
790 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
791 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
792 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
793 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
794     reference="hex_2D_o2_f_boundary_s.xml"
795 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
796 jgs 150 x=FunctionOnBoundary(dom).getX()
797 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
798 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
799 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
800     reference="hex_2D_o2_f_boundary_v.xml"
801 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
802 jgs 150 x=FunctionOnBoundary(dom).getX()
803 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
804 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
805 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
806     reference="hex_2D_o2_f_boundary_t.xml"
807 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
808 jgs 150 x=FunctionOnBoundary(dom).getX()
809 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
810 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
811 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
812     reference="hex_2D_o2_f_boundary_s.xml"
813 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
814 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
815 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
816 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
820 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
821 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
822 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
826 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
827 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
828 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
829 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self):
830     reference="hex_2D_o2_contact_s.xml"
831 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
832 jgs 150 x=FunctionOnContactZero(dom).getX()
833 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",data=x[0])
834 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",reference)
835 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Vector_vtk(self):
836     reference="hex_2D_o2_contact_v.xml"
837 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
838 jgs 150 x=FunctionOnContactZero(dom).getX()
839 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
840 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",reference)
841 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Tensor_vtk(self):
842     reference="hex_2D_o2_contact_t.xml"
843 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
844 jgs 150 x=FunctionOnContactZero(dom).getX()
845 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
846 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference)
847 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
848     reference="hex_2D_o2_contact_s.xml"
849 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
850 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
851 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
852 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
856 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
857 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
858 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
862 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
863 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
864 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)
865 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
866     reference="hex_2D_o2_contact_s.xml"
867 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
868 jgs 150 x=FunctionOnContactZero(dom).getX()
869 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
870 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference)
871 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector_vtk(self):
872     reference="hex_2D_o2_contact_v.xml"
873 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
874 jgs 150 x=FunctionOnContactZero(dom).getX()
875 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
876 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",reference)
877 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self):
878     reference="hex_2D_o2_contact_t.xml"
879 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
880 jgs 150 x=FunctionOnContactZero(dom).getX()
881 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
882 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
883 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
884     reference="hex_2D_o2_contact_s.xml"
885 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
886 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
887 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
888 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
892 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
893 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
894 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
898 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
899 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
900 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
901 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self):
902     reference="hex_2D_o2_contact_s.xml"
903 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
904 jgs 150 x=FunctionOnContactOne(dom).getX()
905 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",data=x[0])
906 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",reference)
907 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Vector_vtk(self):
908     reference="hex_2D_o2_contact_v.xml"
909 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
910 jgs 150 x=FunctionOnContactOne(dom).getX()
911 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
912 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",reference)
913 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Tensor_vtk(self):
914     reference="hex_2D_o2_contact_t.xml"
915 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
916 jgs 150 x=FunctionOnContactOne(dom).getX()
917 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
918 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference)
919 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self):
920 jgs 150 reference="hex_2D_o2_contact_s.xml"
921 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
922 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
923 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
924 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
928 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
929 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
930 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh",optimize=False)
934 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
935 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
936 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
940 jgs 150 x=FunctionOnContactOne(dom).getX()
941 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
942 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference)
943 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector_vtk(self):
944     reference="hex_2D_o2_contact_v.xml"
945 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
946 jgs 150 x=FunctionOnContactOne(dom).getX()
947 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
948 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",reference)
949 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self):
950     reference="hex_2D_o2_contact_t.xml"
951 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
952 jgs 150 x=FunctionOnContactOne(dom).getX()
953 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
954 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
955 jgs 150
956 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedReducedFunctionOnContactOne_Scalar_vtk(self):
957     reference="hex_2D_o2_contact_s.xml"
958 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
959 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
960 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
961 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
965 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
966 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
967 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh",optimize=False)
971 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
972 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
973 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
974 gross 1742 # ======================================================================================================================
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 jgs 153
1102 jgs 150 # ======================================================================================================================
1103     def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self):
1104     reference="hex_3D_o1_node_s.xml"
1105 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1106 jgs 150 x=ContinuousFunction(dom).getX()
1107 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Scalar.xml",data=x[0])
1108 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Scalar.xml",reference)
1109 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Vector_vtk(self):
1110     reference="hex_3D_o1_node_v.xml"
1111 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1112 jgs 150 x=ContinuousFunction(dom).getX()
1113 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.])
1114 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Vector.xml",reference)
1115 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Tensor_vtk(self):
1116     reference="hex_3D_o1_node_t.xml"
1117 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1118 jgs 150 x=ContinuousFunction(dom).getX()
1119 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1120 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Tensor.xml",reference)
1121 jgs 150 def test_hex_contact_3D_order1_Solution_Scalar_vtk(self):
1122     reference="hex_3D_o1_node_s.xml"
1123 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1124 jgs 150 x=Solution(dom).getX()
1125 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Scalar.xml",data=x[0])
1126 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Scalar.xml",reference)
1127 jgs 150 def test_hex_contact_3D_order1_Solution_Vector_vtk(self):
1128     reference="hex_3D_o1_node_v.xml"
1129 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1130 jgs 150 x=Solution(dom).getX()
1131 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Vector.xml",data=x[0]*[1.,2.,3.])
1132 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Vector.xml",reference)
1133 jgs 150 def test_hex_contact_3D_order1_Solution_Tensor_vtk(self):
1134     reference="hex_3D_o1_node_t.xml"
1135 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1136 jgs 150 x=Solution(dom).getX()
1137 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1138 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Tensor.xml",reference)
1139 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Scalar_vtk(self):
1140     reference="hex_3D_o1_node_s.xml"
1141 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1142 jgs 150 x=ReducedSolution(dom).getX()
1143 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Scalar.xml",data=x[0])
1144 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Scalar.xml",reference)
1145 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Vector_vtk(self):
1146     reference="hex_3D_o1_node_v.xml"
1147 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1148 jgs 150 x=ReducedSolution(dom).getX()
1149 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.])
1150 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Vector.xml",reference)
1151 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Tensor_vtk(self):
1152     reference="hex_3D_o1_node_t.xml"
1153 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1154 jgs 150 x=ReducedSolution(dom).getX()
1155 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1156 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Tensor.xml",reference)
1157 jgs 150 def test_hex_contact_3D_order1_Function_Scalar_vtk(self):
1158     reference="hex_3D_o1_cell_s.xml"
1159 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1160 jgs 150 x=Function(dom).getX()
1161 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Scalar.xml",data=x[0])
1162 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Scalar.xml",reference)
1163 jgs 150 def test_hex_contact_3D_order1_Function_Vector_vtk(self):
1164     reference="hex_3D_o1_cell_v.xml"
1165 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1166 jgs 150 x=Function(dom).getX()
1167 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Vector.xml",data=x[0]*[1.,2.,3.])
1168 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Vector.xml",reference)
1169 jgs 150 def test_hex_contact_3D_order1_Function_Tensor_vtk(self):
1170     reference="hex_3D_o1_cell_t.xml"
1171 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1172 jgs 150 x=Function(dom).getX()
1173 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1174 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference)
1175 gross 1065 def test_hex_contact_3D_order1_ReducedFunction_Scalar_vtk(self):
1176     reference="hex_3D_o1_cell_s.xml"
1177 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1178 gross 1065 x=ReducedFunction(dom).getX()
1179 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Scalar.xml",data=x[0])
1180 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1184 gross 1065 x=ReducedFunction(dom).getX()
1185 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.])
1186 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1190 gross 1065 x=ReducedFunction(dom).getX()
1191 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1192 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Tensor.xml",reference)
1193 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self):
1194     reference="hex_3D_o1_boundary_s.xml"
1195 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1196 jgs 150 x=FunctionOnBoundary(dom).getX()
1197 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",data=x[0])
1198 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",reference)
1199 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Vector_vtk(self):
1200     reference="hex_3D_o1_boundary_v.xml"
1201 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1202 jgs 150 x=FunctionOnBoundary(dom).getX()
1203 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1204 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",reference)
1205 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Tensor_vtk(self):
1206     reference="hex_3D_o1_boundary_t.xml"
1207 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1208 jgs 150 x=FunctionOnBoundary(dom).getX()
1209 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1210 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference)
1211 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
1212     reference="hex_3D_o1_boundary_s.xml"
1213 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1214 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1215 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
1216 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1220 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1221 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1222 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1226 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1227 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1228 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
1229 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
1230     reference="hex_3D_o1_f_boundary_s.xml"
1231 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1232 jgs 150 x=FunctionOnBoundary(dom).getX()
1233 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
1234 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
1235 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
1236     reference="hex_3D_o1_f_boundary_v.xml"
1237 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1238 jgs 150 x=FunctionOnBoundary(dom).getX()
1239 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1240 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
1241 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
1242     reference="hex_3D_o1_f_boundary_t.xml"
1243 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1244 jgs 150 x=FunctionOnBoundary(dom).getX()
1245 ksteube 1312 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 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
1247 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
1248     reference="hex_3D_o1_f_boundary_s.xml"
1249 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1250 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1251 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
1252 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1256 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1257 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1258 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1262 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1263 ksteube 1312 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 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
1265 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self):
1266     reference="hex_3D_o1_contact_s.xml"
1267 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1268 jgs 150 x=FunctionOnContactZero(dom).getX()
1269 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",data=x[0])
1270 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",reference)
1271 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Vector_vtk(self):
1272     reference="hex_3D_o1_contact_v.xml"
1273 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1274 jgs 150 x=FunctionOnContactZero(dom).getX()
1275 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1276 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",reference)
1277 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Tensor_vtk(self):
1278     reference="hex_3D_o1_contact_t.xml"
1279 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1280 jgs 150 x=FunctionOnContactZero(dom).getX()
1281 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1282 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference)
1283 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
1284     reference="hex_3D_o1_contact_s.xml"
1285 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1286 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1287 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
1288 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1292 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1293 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1294 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1298 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1299 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1300 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
1301 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
1302     reference="hex_3D_o1_contact_s.xml"
1303 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1304 jgs 150 x=FunctionOnContactZero(dom).getX()
1305 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
1306 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
1307 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
1308     reference="hex_3D_o1_contact_v.xml"
1309 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1310 jgs 150 x=FunctionOnContactZero(dom).getX()
1311 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1312 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
1313 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
1314     reference="hex_3D_o1_contact_t.xml"
1315 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1316 jgs 150 x=FunctionOnContactZero(dom).getX()
1317 ksteube 1312 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 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
1319 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
1320     reference="hex_3D_o1_contact_s.xml"
1321 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1322 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1323 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
1324 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1328 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1329 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1330 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1334 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1335 ksteube 1312 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 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
1337 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self):
1338     reference="hex_3D_o1_contact_s.xml"
1339 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1340 jgs 150 x=FunctionOnContactOne(dom).getX()
1341 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",data=x[0])
1342 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",reference)
1343 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Vector_vtk(self):
1344     reference="hex_3D_o1_contact_v.xml"
1345 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1346 jgs 150 x=FunctionOnContactOne(dom).getX()
1347 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1348 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",reference)
1349 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Tensor_vtk(self):
1350     reference="hex_3D_o1_contact_t.xml"
1351 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1352 jgs 150 x=FunctionOnContactOne(dom).getX()
1353 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1354 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference)
1355 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
1356     reference="hex_3D_o1_contact_s.xml"
1357 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1358 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1359 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
1360 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1364 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1365 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1366 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh",optimize=False)
1370 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1371 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1372 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
1373 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
1374     reference="hex_3D_o1_contact_s.xml"
1375 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1376 jgs 150 x=FunctionOnContactOne(dom).getX()
1377 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
1378 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
1379 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
1380     reference="hex_3D_o1_contact_v.xml"
1381 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1382 jgs 150 x=FunctionOnContactOne(dom).getX()
1383 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1384 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
1385 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
1386     reference="hex_3D_o1_contact_t.xml"
1387 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1388 jgs 150 x=FunctionOnContactOne(dom).getX()
1389 ksteube 1312 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 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
1391 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
1392     reference="hex_3D_o1_contact_s.xml"
1393 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1394 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1395 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
1396 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1400 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1401 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1402 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh",optimize=False)
1406 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1407 ksteube 1312 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 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1409 jgs 150 # ======================================================================================================================
1410     def test_hex_contact_3D_order2_ContinuousFunction_Scalar_vtk(self):
1411     reference="hex_3D_o2_node_s.xml"
1412 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1413 jgs 150 x=ContinuousFunction(dom).getX()
1414 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Scalar.xml",data=x[0])
1415 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Scalar.xml",reference)
1416 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Vector_vtk(self):
1417     reference="hex_3D_o2_node_v.xml"
1418 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1419 jgs 150 x=ContinuousFunction(dom).getX()
1420 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.])
1421 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Vector.xml",reference)
1422 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Tensor_vtk(self):
1423     reference="hex_3D_o2_node_t.xml"
1424 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1425 jgs 150 x=ContinuousFunction(dom).getX()
1426 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1427 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Tensor.xml",reference)
1428 jgs 150 def test_hex_contact_3D_order2_Solution_Scalar_vtk(self):
1429     reference="hex_3D_o2_node_s.xml"
1430 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1431 jgs 150 x=Solution(dom).getX()
1432 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Scalar.xml",data=x[0])
1433 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Scalar.xml",reference)
1434 jgs 150 def test_hex_contact_3D_order2_Solution_Vector_vtk(self):
1435     reference="hex_3D_o2_node_v.xml"
1436 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1437 jgs 150 x=Solution(dom).getX()
1438 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Vector.xml",data=x[0]*[1.,2.,3.])
1439 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Vector.xml",reference)
1440 jgs 150 def test_hex_contact_3D_order2_Solution_Tensor_vtk(self):
1441     reference="hex_3D_o2_node_t.xml"
1442 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1443 jgs 150 x=Solution(dom).getX()
1444 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1445 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Tensor.xml",reference)
1446 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Scalar_vtk(self):
1447     reference="hex_3D_o1_node_s.xml"
1448 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1449 jgs 150 x=ReducedSolution(dom).getX()
1450 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Scalar.xml",data=x[0])
1451 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Scalar.xml",reference)
1452 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Vector_vtk(self):
1453     reference="hex_3D_o1_node_v.xml"
1454 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1455 jgs 150 x=ReducedSolution(dom).getX()
1456 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.])
1457 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Vector.xml",reference)
1458 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Tensor_vtk(self):
1459     reference="hex_3D_o1_node_t.xml"
1460 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1461 jgs 150 x=ReducedSolution(dom).getX()
1462 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1463 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Tensor.xml",reference)
1464 jgs 150 def test_hex_contact_3D_order2_Function_Scalar_vtk(self):
1465     reference="hex_3D_o2_cell_s.xml"
1466 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1467 jgs 150 x=Function(dom).getX()
1468 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Scalar.xml",data=x[0])
1469 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Scalar.xml",reference)
1470 jgs 150 def test_hex_contact_3D_order2_Function_Vector_vtk(self):
1471     reference="hex_3D_o2_cell_v.xml"
1472 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1473 jgs 150 x=Function(dom).getX()
1474 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Vector.xml",data=x[0]*[1.,2.,3.])
1475 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Vector.xml",reference)
1476 jgs 150 def test_hex_contact_3D_order2_Function_Tensor_vtk(self):
1477     reference="hex_3D_o2_cell_t.xml"
1478 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1479 jgs 150 x=Function(dom).getX()
1480 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1481 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Tensor.xml",reference)
1482 gross 1065 def test_hex_contact_3D_order2_ReducedFunction_Scalar_vtk(self):
1483     reference="hex_3D_o2_cell_s.xml"
1484 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1485 gross 1065 x=ReducedFunction(dom).getX()
1486 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Scalar.xml",data=x[0])
1487 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1491 gross 1065 x=ReducedFunction(dom).getX()
1492 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.])
1493 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1497 gross 1065 x=ReducedFunction(dom).getX()
1498 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1499 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunction_Tensor.xml",reference)
1500 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_vtk(self):
1501     reference="hex_3D_o2_boundary_s.xml"
1502 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1503 jgs 150 x=FunctionOnBoundary(dom).getX()
1504 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",data=x[0])
1505 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",reference)
1506 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Vector_vtk(self):
1507     reference="hex_3D_o2_boundary_v.xml"
1508 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1509 jgs 150 x=FunctionOnBoundary(dom).getX()
1510 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1511 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",reference)
1512 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Tensor_vtk(self):
1513     reference="hex_3D_o2_boundary_t.xml"
1514 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1515 jgs 150 x=FunctionOnBoundary(dom).getX()
1516 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1517 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",reference)
1518 gross 1065 def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
1519     reference="hex_3D_o2_boundary_s.xml"
1520 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1521 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1522 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
1523 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1527 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1528 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1529 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1533 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1534 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1535 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
1536 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
1537     reference="hex_3D_o2_f_boundary_s.xml"
1538 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False)
1539 jgs 150 x=FunctionOnBoundary(dom).getX()
1540 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
1541 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
1542 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
1543     reference="hex_3D_o2_f_boundary_v.xml"
1544 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False)
1545 jgs 150 x=FunctionOnBoundary(dom).getX()
1546 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1547 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
1548 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
1549     reference="hex_3D_o2_f_boundary_t.xml"
1550 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False)
1551 jgs 150 x=FunctionOnBoundary(dom).getX()
1552 ksteube 1312 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 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
1554 gross 1065 def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
1555     reference="hex_3D_o2_f_boundary_s.xml"
1556 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False)
1557 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1558 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
1559 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False)
1563 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1564 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1565 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh",optimize=False)
1569 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1570 ksteube 1312 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 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
1572 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Scalar_vtk(self):
1573     reference="hex_3D_o2_contact_s.xml"
1574 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1575 jgs 150 x=FunctionOnContactZero(dom).getX()
1576 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",data=x[0])
1577 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",reference)
1578 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Vector_vtk(self):
1579     reference="hex_3D_o2_contact_v.xml"
1580 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1581 jgs 150 x=FunctionOnContactZero(dom).getX()
1582 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1583 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",reference)
1584 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Tensor_vtk(self):
1585     reference="hex_3D_o2_contact_t.xml"
1586 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1587 jgs 150 x=FunctionOnContactZero(dom).getX()
1588 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1589 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",reference)
1590 gross 1065 def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
1591     reference="hex_3D_o2_contact_s.xml"
1592 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1593 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1594 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
1595 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1599 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1600 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1601 gross 1065 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 ksteube 1312 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh",optimize=False)
1605 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1606 ksteube 1312 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1607 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)