/[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 2422 - (hide annotations)
Thu May 14 03:17:28 2009 UTC (13 years, 3 months ago) by gross
File MIME type: text/x-python
File size: 219444 byte(s)
bug in testing saveVTK fixed
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 jfenwick 2344 __url__="https://launchpad.net/escript-finley"
21 ksteube 1809
22 ksteube 1867 import sys, math, re
23 jgs 150 import unittest
24     from esys.escript import *
25     from esys.finley import ReadMesh
26 gross 2421 from xml.dom import minidom
27 jgs 150
28 gross 798 try:
29     FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']
30     except KeyError:
31     FINLEY_TEST_DATA='.'
32    
33     try:
34     FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
35     except KeyError:
36     FINLEY_WORKDIR='.'
37    
38 gross 2416 FINLEY_TEST_MESH_PATH=os.path.join(FINLEY_TEST_DATA,"data_meshes")
39 phornby 1455 # if os.name == "nt":
40 gross 2416 # FINLEY_TEST_MESH_PATH = os.path.join(FINLEY_TEST_MESH_PATH,"win32")
41     FINLEY_WORKDIR_PATH=FINLEY_WORKDIR
42 gross 709
43 jgs 150 class Test_VisualizationInterface(unittest.TestCase):
44 ksteube 1867 def check_vtk_old(self,f,reference_f):
45 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))
46 gross 1135 out_string=open(os.path.join(FINLEY_WORKDIR_PATH,f)).read().splitlines()
47     ref_string=open(os.path.join(FINLEY_TEST_MESH_PATH,reference_f)).read().splitlines()
48 jgs 150 c=0
49     for l in range(0,len(ref_string)):
50     if not ref_string[l].strip()[:2]=="<!":
51 gross 1135 line=out_string[c].strip()
52     if os.name == "nt":
53     line=line.replace("e+00","e+0").replace("e-00","e-0")
54 gross 1379 # line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")
55     line=line.replace(".000000e-00",".000000e+00").replace("-0.000000e+00","0.000000e+00")
56 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()))
57 jgs 150 c+=1
58    
59 ksteube 1867 # Compare two lists of numbers (stored as space-separated strings) using the L2 norm
60 gross 2257 def numericCompareL2(self, vector1, vector2):
61     if vector2 == None: return False
62 ksteube 1867 TOL = 1.0e-6
63     if len(vector1) != len(vector2): return False
64     diff = 0.0
65     for i in range(0, len(vector1)):
66 gross 2257 tmp = vector1[i] - vector2[i]
67 ksteube 1867 diff += tmp * tmp
68     if math.sqrt(diff) > TOL: return False
69     return True
70    
71     # Compare two elements (stored as space-separated strings of integers) after mapping node labels
72 gross 2257 def elementCompareWithMap(self, e1, e2, value_map):
73 ksteube 1867 if e2 == None: return False
74     vector1 = e1.split()
75     vector2 = e2.split()
76     if len(vector1) != len(vector2): return False
77     for i in range(0, len(vector1)):
78     if int(vector1[i]) < 0: return False
79 gross 2257 if int(vector1[i]) >= len(value_map): return False
80     if value_map[int(vector1[i])] != int(vector2[i]): return False
81 ksteube 1867 return True
82    
83 gross 2257 def compareDataSetWithMap(self, d1, d2, value_map):
84 ksteube 1867 if len(d1) != len(d2): return False
85     for i in range(0, len(d1)):
86 gross 2257 if value_map.has_key(i):
87     if not min( [ self.numericCompareL2(d1[i], d2[k] ) for k in value_map[i] ] ): return False
88     else:
89     return False
90 ksteube 1867 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 gross 2257 nodeMap1 = {}
126 ksteube 1867 withinTheNodeList = False
127 gross 2257 cc=0
128 ksteube 1867 for i in range(0, len(lineList1)):
129     if withinTheNodeList and lineList1[i].startswith('</DataArray'): break # Finished reading nodes
130     if withinTheNodeList:
131 gross 2257 nodeMap1[cc]=[ float(x) for x in lineList1[i].split() ]
132     cc+=1
133 ksteube 1867 if lineList1[i].startswith('<DataArray'): withinTheNodeList = True
134    
135 gross 2257 nodeMap2 = {}
136     withinTheNodeList = False
137     cc=0
138     for i in range(0, len(lineList1)):
139     if withinTheNodeList and lineList2[i].startswith('</DataArray'): break # Finished reading nodes
140     if withinTheNodeList:
141     nodeMap2[cc]=[ float(x) for x in lineList2[i].split() ]
142     cc+=1
143     if lineList2[i].startswith('<DataArray'): withinTheNodeList = True
144 ksteube 1867
145 gross 2257 if len(nodeMap1) != len(nodeMap2):
146 ksteube 1867 return False, "Error: The two files have different numbers of nodes"
147    
148 gross 2257 nodeMap1to2 = {}
149     for n1 in nodeMap1.keys():
150     v=[]
151     for n2 in nodeMap2.keys():
152     if self.numericCompareL2(nodeMap1[n1], nodeMap2[n2]): v.append(n2)
153     if len(v)==0:
154     return False, "Error: no matching node for node %s %s."%(n1,nodeMap1[n1])
155     nodeMap1to2[n1]=v
156 ksteube 1867
157 gross 2310
158 ksteube 1867 # Find the list of elements
159     elementList1 = []
160     withinTheElementList = False
161     for i in range(0, len(lineList1)):
162     if withinTheElementList and lineList1[i].startswith('</DataArray'): break # Finished reading elements
163     if withinTheElementList:
164 gross 2257 elementList1.append([ int(x) for x in lineList1[i].split()])
165 ksteube 1867 if lineList1[i].startswith('<DataArray Name="connectivity"'): withinTheElementList = True
166    
167 gross 2257 # Find the list of elements
168     elementList2 = []
169     withinTheElementList = False
170     for i in range(0, len(lineList2)):
171     if withinTheElementList and lineList2[i].startswith('</DataArray'): break # Finished reading elements
172     if withinTheElementList:
173     elementList2.append([ int(x) for x in lineList2[i].split()])
174     if lineList2[i].startswith('<DataArray Name="connectivity"'): withinTheElementList = True
175    
176 ksteube 1867 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 gross 2257 elementMap1to2 = {}
181     for n1 in range(0, len(elementList1)):
182     v=None
183     for n2 in range(0, len(elementList2)):
184     if len(elementList1[n1]) == len(elementList2[n2]):
185 gross 2310 allmatched=True
186     for i in elementList1[n1]:
187     if not max([ nnn in nodeMap1to2[i] for nnn in elementList2[n2]] ): allmatched=False
188     if allmatched:
189     v=n2
190     break
191 gross 2257 if v == None:
192 gross 2310 return False, "Error: element %s is missing."%elementList1[n1]
193 gross 2257 else:
194 gross 2310 elementMap1to2[n1]=[v]
195 ksteube 1867 # Find the data sets and compare them
196     dataList1 = []
197     dataList2 = []
198     withinCelldata = False
199     withinPointdata = False
200     withinDataSet = False
201     for i in range(0, len(lineList1)):
202     if (withinCelldata or withinPointdata) and withinDataSet and lineList1[i].startswith('</DataArray'):
203     withinDataSet = False # Finished reading one of the data sets
204     if withinCelldata and not self.compareDataSetWithMap(dataList1, dataList2, elementMap1to2):
205     return False, "Error: element data in '%s' did not match" % dataName
206     if withinPointdata and not self.compareDataSetWithMap(dataList1, dataList2, nodeMap1to2):
207     return False, "Error: point data in '%s' did not match" % dataName
208     if withinDataSet:
209 gross 2257 dataList1.append([ float(d) for d in lineList1[i].split()] ) # The two files are guaranteed to have the elements on
210     dataList2.append([ float(d) for d in lineList2[i].split()] ) # the same lines at this point
211 ksteube 1867 if (withinCelldata or withinPointdata) and lineList1[i].startswith('<DataArray'):
212     dataName = re.sub('" .*', '', lineList1[i])
213     dataName = re.sub('.*"', '', dataName)
214     withinDataSet = True
215     dataList1 = []
216     dataList2 = []
217     if lineList1[i].startswith('<PointData'): withinPointdata = True
218     if lineList1[i].startswith('</PointData'): withinPointdata = False
219     if lineList1[i].startswith('<CellData'): withinCelldata = True
220     if lineList1[i].startswith('</CellData'): withinCelldata = False
221    
222     return True, "Your VTK files match"
223     # End of method self.saveVtkCompare
224    
225     def check_vtk(self,f,reference_f):
226     success, reason = self.saveVtkCompare(os.path.join(FINLEY_WORKDIR_PATH,f), os.path.join(FINLEY_TEST_MESH_PATH,reference_f))
227     self.failUnless(success, reason)
228    
229 jgs 150 def check_dx(self,f,reference_f):
230 gross 2416 out_string=open(os.path.join(FINLEY_WORKDIR_PATH,f)).read().splitlines()
231     ref_string=open(os.path.join(FINLEY_TEST_MESH_PATH,reference_f)).read().splitlines()
232 jgs 150 c=0
233     for l in range(0,len(ref_string)):
234     if not ref_string[l].strip()[0]=="#":
235 gross 1135 line=out_string[c].strip()
236     if os.name == "nt":
237     line=line.replace("e+00","e+0").replace("e-00","e-0")
238 gross 1185 line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")
239 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()))
240 jgs 150 c+=1
241    
242     class Test_VTKFiles(Test_VisualizationInterface):
243 gross 2421 def test_metadata_0(self):
244     fn=os.path.join(FINLEY_WORKDIR_PATH,"metadata0.xml")
245     dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
246     saveVTK(fn,x=dom.getX(), metadata_schema={"gml":"http://www.opengis.net/gml"}, metadata='<dummy>hello world</dummy><timeStamp uom="s">1234</timeStamp>')
247     # testing:
248     dummy=None
249     timeStamp=None
250     unstructured=None
251 gross 2422 dom=minidom.parseString(open(fn,'r').read())
252 gross 2421 for node in dom.childNodes:
253     if isinstance(node, minidom.Element):
254     if node.tagName == 'VTKFile':
255     type = node.getAttribute("type")
256     version = node.getAttribute("version")
257     ns = node.getAttribute("xmlns:gml")
258     self.failUnless(type == "UnstructuredGrid","Type wrong")
259     self.failUnless(version == "0.1", "wrong version")
260     self.failUnless(ns == "http://www.opengis.net/gml", "wrong name space")
261     for vtk_node in node.childNodes:
262     if isinstance(vtk_node, minidom.Element):
263     if vtk_node.tagName == 'MetaData':
264     for meta_node in vtk_node.childNodes:
265     if isinstance(meta_node, minidom.Element):
266     if meta_node.tagName == 'dummy':
267     for txt_node in meta_node.childNodes:
268     if isinstance(txt_node, minidom.Text):
269     dummy=txt_node.nodeValue.strip()
270     self.failUnless( dummy == "hello world","dummy is wrong")
271     if meta_node.tagName == 'timeStamp':
272     uom=meta_node.getAttribute("uom")
273     self.failUnless( uom == "s","uom is wrong")
274     for txt_node in meta_node.childNodes:
275     if isinstance(txt_node, minidom.Text):
276     timeStamp=txt_node.nodeValue.strip()
277     self.failUnless( timeStamp == "1234","dummy is wrong")
278     if vtk_node.tagName == 'UnstructuredGrid': unstructured=True
279     self.failUnless( dummy !=None, "dummy is missing.")
280     self.failUnless( timeStamp !=None, "timeStamp is missing.")
281     self.failUnless( unstructured !=None, "dummy is missing.")
282     def test_metadata_1(self):
283     fn=os.path.join(FINLEY_WORKDIR_PATH,"metadata1.xml")
284     dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
285     saveVTK(fn,x=dom.getX(), metadata='<dummy>hello world</dummy><timeStamp uom="s">1234</timeStamp>')
286     # testing:
287     dummy=None
288     timeStamp=None
289     unstructured=None
290 gross 2422 dom=minidom.parseString(open(fn,'r').read())
291 gross 2421 for node in dom.childNodes:
292     if isinstance(node, minidom.Element):
293     if node.tagName == 'VTKFile':
294     type = node.getAttribute("type")
295     version = node.getAttribute("version")
296     self.failUnless(type == "UnstructuredGrid","Type wrong")
297     self.failUnless(version == "0.1", "wrong version")
298     for vtk_node in node.childNodes:
299     if isinstance(vtk_node, minidom.Element):
300     if vtk_node.tagName == 'MetaData':
301     for meta_node in vtk_node.childNodes:
302     if isinstance(meta_node, minidom.Element):
303     if meta_node.tagName == 'dummy':
304     for txt_node in meta_node.childNodes:
305     if isinstance(txt_node, minidom.Text):
306     dummy=txt_node.nodeValue.strip()
307     self.failUnless( dummy == "hello world","dummy is wrong")
308     if meta_node.tagName == 'timeStamp':
309     uom=meta_node.getAttribute("uom")
310     self.failUnless( uom == "s","uom is wrong")
311     for txt_node in meta_node.childNodes:
312     if isinstance(txt_node, minidom.Text):
313     timeStamp=txt_node.nodeValue.strip()
314     self.failUnless( timeStamp == "1234","dummy is wrong")
315     if vtk_node.tagName == 'UnstructuredGrid': unstructured=True
316     self.failUnless( dummy !=None, "dummy is missing.")
317     self.failUnless( timeStamp !=None, "timeStamp is missing.")
318     self.failUnless( unstructured !=None, "dummy is missing.")
319     def test_metadata_2(self):
320     fn=os.path.join(FINLEY_WORKDIR_PATH,"metadata2.xml")
321     dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
322     saveVTK(fn,x=dom.getX(), metadata_schema={"gml":"http://www.opengis.net/gml"})
323     # testing:
324     unstructured=None
325 gross 2422 dom=minidom.parseString(open(fn,'r').read())
326 gross 2421 for node in dom.childNodes:
327     if isinstance(node, minidom.Element):
328     if node.tagName == 'VTKFile':
329     type = node.getAttribute("type")
330     version = node.getAttribute("version")
331     ns = node.getAttribute("xmlns:gml")
332     self.failUnless(type == "UnstructuredGrid","Type wrong")
333     self.failUnless(version == "0.1", "wrong version")
334     self.failUnless(ns == "http://www.opengis.net/gml", "wrong name space")
335     for vtk_node in node.childNodes:
336     if isinstance(vtk_node, minidom.Element):
337     if vtk_node.tagName == 'UnstructuredGrid': unstructured=True
338     self.failUnless( unstructured !=None, "dummy is missing.")
339     def test_metadata_3(self):
340     fn=os.path.join(FINLEY_WORKDIR_PATH,"metadata3.xml")
341     dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
342     saveVTK(fn,x=dom.getX())
343     # testing:
344     unstructured=None
345 gross 2422 dom=minidom.parseString(open(fn,'r').read())
346 gross 2421 for node in dom.childNodes:
347     if isinstance(node, minidom.Element):
348     if node.tagName == 'VTKFile':
349     type = node.getAttribute("type")
350     version = node.getAttribute("version")
351     self.failUnless(type == "UnstructuredGrid","Type wrong")
352     self.failUnless(version == "0.1", "wrong version")
353     for vtk_node in node.childNodes:
354     if isinstance(vtk_node, minidom.Element):
355     if vtk_node.tagName == 'UnstructuredGrid': unstructured=True
356     self.failUnless( unstructured !=None, "dummy is missing.")
357    
358    
359 jgs 150 # ======================================================================================================================
360 jgs 153 def test_hex_2D_order2_vtk(self):
361     reference="hex_2D_o2.xml"
362 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
363     saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2.xml"),domain=dom)
364 jgs 153 self.check_vtk("hex_2D_order2.xml",reference)
365    
366     def test_hex_2D_order2_AllPoints_Scalar_vtk(self):
367     reference="hex_2D_o1_node_3xs.xml"
368 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
369 jgs 153 x=Solution(dom).getX()
370     x_r=ReducedSolution(dom).getX()
371     x_n=ContinuousFunction(dom).getX()
372 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_AllPoints_Scalar.xml"),data_r=x_r[0],data_n=x_n[0],data=x[0])
373 jgs 153 self.check_vtk("hex_2D_order2_AllPoints_Scalar.xml",reference)
374     def test_hex_2D_order2_02Points_Scalar_vtk(self):
375     reference="hex_2D_o2_node_2xs.xml"
376 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
377 jgs 153 x=Solution(dom).getX()
378     x_n=ContinuousFunction(dom).getX()
379 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_O2Points_Scalar.xml"),data_n=x_n[0],data=x[0])
380 jgs 153 self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference)
381     def test_hex_2D_order2_2Cells_Scalar_vtk(self):
382 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
383 jgs 153 x=Function(dom).getX()
384     x_b=FunctionOnBoundary(dom).getX()
385     try:
386 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_2Cells_Scalar.xml"),data=x[0],data_b=x_b[0])
387 jgs 153 self.fail("non-matching data not detected.")
388     except StandardError:
389     pass
390 gross 1065 def test_hex_2D_order2_BoundaryPoint_Scalar_vtk(self):
391 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
392 jgs 153 x=ContinuousFunction(dom).getX()
393     x_b=FunctionOnBoundary(dom).getX()
394     try:
395 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_BoundaryPoint_Scalar.xml"),data=x[0],data_b=x_b[0])
396 jgs 153 self.fail("non-matching data not detected.")
397     except StandardError:
398     pass
399     def test_hex_2D_order2_Cells_AllData_vtk(self):
400     reference="hex_2D_o2_cell_all.xml"
401 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
402 jgs 153 x=Function(dom).getX()
403 gross 2416 saveVTK(os.path.join(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.]])
404 jgs 153 self.check_vtk("hex_2D_order2_Cells_AllData.xml",reference)
405    
406     def test_hex_2D_order2_CellsPoints_AllData_vtk(self):
407     reference="hex_2D_o2_cellnode_all.xml"
408 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"),optimize=False)
409 jgs 153 x_c=Function(dom).getX()
410     x_p=ContinuousFunction(dom).getX()
411 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_CellsPoints_AllData.xml"),data_sp=x_p[0],
412 jgs 153 data_vp=x_p[0]*[1.,2.],
413     data_tp=x_p[0]*[[11.,12.],[21.,22.]],
414     data_sc=x_c[0],
415     data_vc=x_c[0]*[1.,2.],
416     data_tc=x_c[0]*[[11.,12.],[21.,22.]])
417     self.check_vtk("hex_2D_order2_CellsPoints_AllData.xml",reference)
418 gross 1742 def test_hex_2D_order2p_vtk(self):
419     reference="hex_2D_o2p.xml"
420 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
421     saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2.xml"),domain=dom)
422 gross 1742 self.check_vtk("hex_2D_order2.xml",reference)
423    
424     def test_hex_2D_order2p_AllPoints_Scalar_vtk(self):
425     reference="hex_2D_o1_node_3xs.xml"
426 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
427 gross 1742 x=Solution(dom).getX()
428     x_r=ReducedSolution(dom).getX()
429     x_n=ContinuousFunction(dom).getX()
430 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_AllPoints_Scalar.xml"),data_r=x_r[0],data_n=x_n[0],data=x[0])
431 gross 1742 self.check_vtk("hex_2D_order2_AllPoints_Scalar.xml",reference)
432     def test_hex_2D_order2p_02Points_Scalar_vtk(self):
433     reference="hex_2D_o2p_node_2xs.xml"
434 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
435 gross 1742 x=Solution(dom).getX()
436     x_n=ContinuousFunction(dom).getX()
437 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_O2Points_Scalar.xml"),data_n=x_n[0],data=x[0])
438 gross 1742 self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference)
439     def test_hex_2D_order2p_2Cells_Scalar_vtk(self):
440 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
441 gross 1742 x=Function(dom).getX()
442     x_b=FunctionOnBoundary(dom).getX()
443     try:
444 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_2Cells_Scalar.xml"),data=x[0],data_b=x_b[0])
445 gross 1742 self.fail("non-matching data not detected.")
446     except StandardError:
447     pass
448     def test_hex_2D_order2p_BoundaryPoint_Scalar_vtk(self):
449 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
450 gross 1742 x=ContinuousFunction(dom).getX()
451     x_b=FunctionOnBoundary(dom).getX()
452     try:
453 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_BoundaryPoint_Scalar.xml"),data=x[0],data_b=x_b[0])
454 gross 1742 self.fail("non-matching data not detected.")
455     except StandardError:
456     pass
457     def test_hex_2D_order2p_Cells_AllData_vtk(self):
458     reference="hex_2D_o2p_cell_all.xml"
459 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
460 gross 1742 x=Function(dom).getX()
461 gross 2416 saveVTK(os.path.join(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.]])
462 gross 1742 self.check_vtk("hex_2D_order2_Cells_AllData.xml",reference)
463    
464     def test_hex_2D_order2p_CellsPoints_AllData_vtk(self):
465     reference="hex_2D_o2p_cellnode_all.xml"
466 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
467 gross 1742 x_c=Function(dom).getX()
468     x_p=ContinuousFunction(dom).getX()
469 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_CellsPoints_AllData.xml"),data_sp=x_p[0],
470 gross 1742 data_vp=x_p[0]*[1.,2.],
471     data_tp=x_p[0]*[[11.,12.],[21.,22.]],
472     data_sc=x_c[0],
473     data_vc=x_c[0]*[1.,2.],
474     data_tc=x_c[0]*[[11.,12.],[21.,22.]])
475     self.check_vtk("hex_2D_order2_CellsPoints_AllData.xml",reference)
476 jgs 153 # ======================================================================================================================
477 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Scalar_vtk(self):
478     reference="hex_2D_o1_node_s.xml"
479 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
480 jgs 150 x=ContinuousFunction(dom).getX()
481 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Scalar.xml"),data=x[0])
482 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Scalar.xml",reference)
483 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Vector_vtk(self):
484     reference="hex_2D_o1_node_v.xml"
485 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
486 jgs 150 x=ContinuousFunction(dom).getX()
487 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
488 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Vector.xml",reference)
489 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Tensor_vtk(self):
490     reference="hex_2D_o1_node_t.xml"
491 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
492 jgs 150 x=ContinuousFunction(dom).getX()
493 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
494 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Tensor.xml",reference)
495 jgs 150 def test_hex_contact_2D_order1_Solution_Scalar_vtk(self):
496     reference="hex_2D_o1_node_s.xml"
497 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
498 jgs 150 x=Solution(dom).getX()
499 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Scalar.xml"),data=x[0])
500 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Scalar.xml",reference)
501 jgs 150 def test_hex_contact_2D_order1_Solution_Vector_vtk(self):
502     reference="hex_2D_o1_node_v.xml"
503 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
504 jgs 150 x=Solution(dom).getX()
505 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.])
506 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Vector.xml",reference)
507 jgs 150 def test_hex_contact_2D_order1_Solution_Tensor_vtk(self):
508     reference="hex_2D_o1_node_t.xml"
509 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
510 jgs 150 x=Solution(dom).getX()
511 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
512 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Tensor.xml",reference)
513 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Scalar_vtk(self):
514     reference="hex_2D_o1_node_s.xml"
515 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
516 jgs 150 x=ReducedSolution(dom).getX()
517 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Scalar.xml"),data=x[0])
518 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Scalar.xml",reference)
519 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Vector_vtk(self):
520     reference="hex_2D_o1_node_v.xml"
521 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
522 jgs 150 x=ReducedSolution(dom).getX()
523 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
524 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Vector.xml",reference)
525 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Tensor_vtk(self):
526     reference="hex_2D_o1_node_t.xml"
527 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
528 jgs 150 x=ReducedSolution(dom).getX()
529 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
530 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Tensor.xml",reference)
531 jgs 150 def test_hex_contact_2D_order1_Function_Scalar_vtk(self):
532     reference="hex_2D_o1_cell_s.xml"
533 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
534 jgs 150 x=Function(dom).getX()
535 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Function_Scalar.xml"),data=x[0])
536 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Scalar.xml",reference)
537 jgs 150 def test_hex_contact_2D_order1_Function_Vector_vtk(self):
538     reference="hex_2D_o1_cell_v.xml"
539 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
540 jgs 150 x=Function(dom).getX()
541 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Function_Vector.xml"),data=x[0]*[1.,2.])
542 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Vector.xml",reference)
543 jgs 150 def test_hex_contact_2D_order1_Function_Tensor_vtk(self):
544     reference="hex_2D_o1_cell_t.xml"
545 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
546 jgs 150 x=Function(dom).getX()
547 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
548 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference)
549 gross 1065 def test_hex_contact_2D_order1_ReducedFunction_Scalar_vtk(self):
550     reference="hex_2D_o1_cell_s.xml"
551 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
552 gross 1065 x=ReducedFunction(dom).getX()
553 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunction_Scalar.xml"),data=x[0])
554 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Scalar.xml",reference)
555     def test_hex_contact_2D_order1_ReducedFunction_Vector_vtk(self):
556     reference="hex_2D_o1_cell_v.xml"
557 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
558 gross 1065 x=ReducedFunction(dom).getX()
559 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
560 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Vector.xml",reference)
561     def test_hex_contact_2D_order1_ReducedFunction_Tensor_vtk(self):
562     reference="hex_2D_o1_cell_t.xml"
563 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
564 gross 1065 x=ReducedFunction(dom).getX()
565 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
566 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Tensor.xml",reference)
567 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self):
568     reference="hex_2D_o1_boundary_s.xml"
569 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
570 jgs 150 x=FunctionOnBoundary(dom).getX()
571 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])
572 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",reference)
573 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Vector_vtk(self):
574     reference="hex_2D_o1_boundary_v.xml"
575 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
576 jgs 150 x=FunctionOnBoundary(dom).getX()
577 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
578 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",reference)
579 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Tensor_vtk(self):
580     reference="hex_2D_o1_boundary_t.xml"
581 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
582 jgs 150 x=FunctionOnBoundary(dom).getX()
583 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
584 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference)
585 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
586     reference="hex_2D_o1_boundary_s.xml"
587 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
588 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
589 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
590 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
591     def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
592     reference="hex_2D_o1_boundary_v.xml"
593 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
594 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
595 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
596 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
597     def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
598     reference="hex_2D_o1_boundary_t.xml"
599 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
600 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
601 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
602 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
603 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
604     reference="hex_2D_o1_f_boundary_s.xml"
605 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
606 jgs 150 x=FunctionOnBoundary(dom).getX()
607 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
608 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
609 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
610     reference="hex_2D_o1_f_boundary_v.xml"
611 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
612 jgs 150 x=FunctionOnBoundary(dom).getX()
613 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
614 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
615 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
616     reference="hex_2D_o1_f_boundary_t.xml"
617 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
618 jgs 150 x=FunctionOnBoundary(dom).getX()
619 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
620 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
621 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
622     reference="hex_2D_o1_f_boundary_s.xml"
623 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
624 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
625 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
626 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
627     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
628     reference="hex_2D_o1_f_boundary_v.xml"
629 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
630 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
631 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
632 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
633     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
634     reference="hex_2D_o1_f_boundary_t.xml"
635 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
636 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
637 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
638 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
639 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self):
640     reference="hex_2D_o1_contact_s.xml"
641 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
642 jgs 150 x=FunctionOnContactZero(dom).getX()
643 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml"),data=x[0])
644 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",reference)
645 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Vector_vtk(self):
646     reference="hex_2D_o1_contact_v.xml"
647 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
648 jgs 150 x=FunctionOnContactZero(dom).getX()
649 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
650 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",reference)
651 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Tensor_vtk(self):
652     reference="hex_2D_o1_contact_t.xml"
653 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
654 jgs 150 x=FunctionOnContactZero(dom).getX()
655 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
656 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference)
657 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
658     reference="hex_2D_o1_contact_s.xml"
659 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
660 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
661 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
662 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference)
663     def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector_vtk(self):
664     reference="hex_2D_o1_contact_v.xml"
665 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
666 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
667 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
668 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",reference)
669     def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self):
670     reference="hex_2D_o1_contact_t.xml"
671 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
672 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
673 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
674 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
675 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
676     reference="hex_2D_o1_contact_s.xml"
677 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
678 jgs 150 x=FunctionOnContactZero(dom).getX()
679 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
680 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
681 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
682     reference="hex_2D_o1_contact_v.xml"
683 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
684 jgs 150 x=FunctionOnContactZero(dom).getX()
685 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
686 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
687 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
688     reference="hex_2D_o1_contact_t.xml"
689 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
690 jgs 150 x=FunctionOnContactZero(dom).getX()
691 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
692 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
693 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
694     reference="hex_2D_o1_contact_s.xml"
695 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
696 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
697 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
698 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
699     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
700     reference="hex_2D_o1_contact_v.xml"
701 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
702 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
703 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
704 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
705     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
706     reference="hex_2D_o1_contact_t.xml"
707 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
708 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
709 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
710 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
711 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self):
712     reference="hex_2D_o1_contact_s.xml"
713 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
714 jgs 150 x=FunctionOnContactOne(dom).getX()
715 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml"),data=x[0])
716 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",reference)
717 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Vector_vtk(self):
718     reference="hex_2D_o1_contact_v.xml"
719 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
720 jgs 150 x=FunctionOnContactOne(dom).getX()
721 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
722 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",reference)
723 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Tensor_vtk(self):
724     reference="hex_2D_o1_contact_t.xml"
725 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
726 jgs 150 x=FunctionOnContactOne(dom).getX()
727 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
728 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference)
729 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
730     reference="hex_2D_o1_contact_s.xml"
731 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
732 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
733 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
734 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference)
735     def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector_vtk(self):
736     reference="hex_2D_o1_contact_v.xml"
737 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
738 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
739 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
740 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",reference)
741     def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self):
742     reference="hex_2D_o1_contact_t.xml"
743 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"),optimize=False)
744 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
745 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
746 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
747 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
748     reference="hex_2D_o1_contact_s.xml"
749 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
750 jgs 150 x=FunctionOnContactOne(dom).getX()
751 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml"),data=x[0])
752 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
753 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
754     reference="hex_2D_o1_contact_v.xml"
755 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
756 jgs 150 x=FunctionOnContactOne(dom).getX()
757 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
758 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
759 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
760     reference="hex_2D_o1_contact_t.xml"
761 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
762 jgs 150 x=FunctionOnContactOne(dom).getX()
763 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
764 gross 1149 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
765 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
766     reference="hex_2D_o1_contact_s.xml"
767 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
768 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
769 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
770 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
771     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
772     reference="hex_2D_o1_contact_v.xml"
773 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
774 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
775 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
776 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
777     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
778     reference="hex_2D_o1_contact_t.xml"
779 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"),optimize=False)
780 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
781 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
782 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
783 jgs 150 # ======================================================================================================================
784     def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self):
785     reference="hex_2D_o2_node_s.xml"
786 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
787 jgs 150 x=ContinuousFunction(dom).getX()
788 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ContinuousFunction_Scalar.xml"),data=x[0])
789 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Scalar.xml",reference)
790 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Vector_vtk(self):
791     reference="hex_2D_o2_node_v.xml"
792 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
793 jgs 150 x=ContinuousFunction(dom).getX()
794 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
795 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Vector.xml",reference)
796 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Tensor_vtk(self):
797     reference="hex_2D_o2_node_t.xml"
798 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
799 jgs 150 x=ContinuousFunction(dom).getX()
800 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
801 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Tensor.xml",reference)
802 jgs 150 def test_hex_contact_2D_order2_Solution_Scalar_vtk(self):
803     reference="hex_2D_o2_node_s.xml"
804 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
805 jgs 150 x=Solution(dom).getX()
806 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Solution_Scalar.xml"),data=x[0])
807 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Scalar.xml",reference)
808 jgs 150 def test_hex_contact_2D_order2_Solution_Vector_vtk(self):
809     reference="hex_2D_o2_node_v.xml"
810 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
811 jgs 150 x=Solution(dom).getX()
812 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.])
813 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Vector.xml",reference)
814 jgs 150 def test_hex_contact_2D_order2_Solution_Tensor_vtk(self):
815     reference="hex_2D_o2_node_t.xml"
816 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
817 jgs 150 x=Solution(dom).getX()
818 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
819 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Tensor.xml",reference)
820 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Scalar_vtk(self):
821     reference="hex_2D_o1_node_s.xml"
822 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
823 jgs 150 x=ReducedSolution(dom).getX()
824 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedSolution_Scalar.xml"),data=x[0])
825 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Scalar.xml",reference)
826 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Vector_vtk(self):
827     reference="hex_2D_o1_node_v.xml"
828 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
829 jgs 150 x=ReducedSolution(dom).getX()
830 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
831 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Vector.xml",reference)
832 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Tensor_vtk(self):
833     reference="hex_2D_o1_node_t.xml"
834 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
835 jgs 150 x=ReducedSolution(dom).getX()
836 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
837 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Tensor.xml",reference)
838 jgs 150 def test_hex_contact_2D_order2_Function_Scalar_vtk(self):
839     reference="hex_2D_o2_cell_s.xml"
840 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
841 jgs 150 x=Function(dom).getX()
842 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Function_Scalar.xml"),data=x[0])
843 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Scalar.xml",reference)
844 jgs 150 def test_hex_contact_2D_order2_Function_Vector_vtk(self):
845     reference="hex_2D_o2_cell_v.xml"
846 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
847 jgs 150 x=Function(dom).getX()
848 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Function_Vector.xml"),data=x[0]*[1.,2.])
849 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Vector.xml",reference)
850 jgs 150 def test_hex_contact_2D_order2_Function_Tensor_vtk(self):
851     reference="hex_2D_o2_cell_t.xml"
852 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
853 jgs 150 x=Function(dom).getX()
854 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
855 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference)
856 gross 1065 def test_hex_contact_2D_order2_ReducedFunction_Scalar_vtk(self):
857     reference="hex_2D_o2_cell_s.xml"
858 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
859 gross 1065 x=ReducedFunction(dom).getX()
860 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunction_Scalar.xml"),data=x[0])
861 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Scalar.xml",reference)
862     def test_hex_contact_2D_order2_ReducedFunction_Vector_vtk(self):
863     reference="hex_2D_o2_cell_v.xml"
864 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
865 gross 1065 x=ReducedFunction(dom).getX()
866 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
867 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Vector.xml",reference)
868     def test_hex_contact_2D_order2_ReducedFunction_Tensor_vtk(self):
869     reference="hex_2D_o2_cell_t.xml"
870 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
871 gross 1065 x=ReducedFunction(dom).getX()
872 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
873 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Tensor.xml",reference)
874 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self):
875     reference="hex_2D_o2_boundary_s.xml"
876 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
877 jgs 150 x=FunctionOnBoundary(dom).getX()
878 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])
879 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",reference)
880 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Vector_vtk(self):
881     reference="hex_2D_o2_boundary_v.xml"
882 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
883 jgs 150 x=FunctionOnBoundary(dom).getX()
884 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
885 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",reference)
886 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Tensor_vtk(self):
887     reference="hex_2D_o2_boundary_t.xml"
888 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
889 jgs 150 x=FunctionOnBoundary(dom).getX()
890 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
891 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference)
892 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
893     reference="hex_2D_o2_boundary_s.xml"
894 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
895 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
896 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
897 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
898     def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
899     reference="hex_2D_o2_boundary_v.xml"
900 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
901 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
902 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
903 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
904     def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
905     reference="hex_2D_o2_boundary_t.xml"
906 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
907 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
908 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
909 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
910 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
911     reference="hex_2D_o2_f_boundary_s.xml"
912 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
913 jgs 150 x=FunctionOnBoundary(dom).getX()
914 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
915 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
916 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
917     reference="hex_2D_o2_f_boundary_v.xml"
918 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
919 jgs 150 x=FunctionOnBoundary(dom).getX()
920 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
921 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
922 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
923     reference="hex_2D_o2_f_boundary_t.xml"
924 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
925 jgs 150 x=FunctionOnBoundary(dom).getX()
926 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
927 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
928 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
929     reference="hex_2D_o2_f_boundary_s.xml"
930 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
931 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
932 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
933 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
934     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
935     reference="hex_2D_o2_f_boundary_v.xml"
936 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
937 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
938 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
939 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
940     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
941     reference="hex_2D_o2_f_boundary_t.xml"
942 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
943 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
944 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
945 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
946 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self):
947     reference="hex_2D_o2_contact_s.xml"
948 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
949 jgs 150 x=FunctionOnContactZero(dom).getX()
950 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml"),data=x[0])
951 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",reference)
952 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Vector_vtk(self):
953     reference="hex_2D_o2_contact_v.xml"
954 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
955 jgs 150 x=FunctionOnContactZero(dom).getX()
956 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
957 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",reference)
958 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Tensor_vtk(self):
959     reference="hex_2D_o2_contact_t.xml"
960 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
961 jgs 150 x=FunctionOnContactZero(dom).getX()
962 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
963 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference)
964 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
965     reference="hex_2D_o2_contact_s.xml"
966 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
967 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
968 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
969 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference)
970     def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector_vtk(self):
971     reference="hex_2D_o2_contact_v.xml"
972 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
973 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
974 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
975 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",reference)
976     def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self):
977     reference="hex_2D_o2_contact_t.xml"
978 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
979 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
980 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
981 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)
982 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
983     reference="hex_2D_o2_contact_s.xml"
984 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
985 jgs 150 x=FunctionOnContactZero(dom).getX()
986 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
987 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference)
988 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector_vtk(self):
989     reference="hex_2D_o2_contact_v.xml"
990 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
991 jgs 150 x=FunctionOnContactZero(dom).getX()
992 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
993 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",reference)
994 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self):
995     reference="hex_2D_o2_contact_t.xml"
996 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
997 jgs 150 x=FunctionOnContactZero(dom).getX()
998 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
999 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
1000 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
1001     reference="hex_2D_o2_contact_s.xml"
1002 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1003 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1004 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
1005 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
1006     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
1007     reference="hex_2D_o2_contact_v.xml"
1008 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1009 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1010 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
1011 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
1012     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
1013     reference="hex_2D_o2_contact_t.xml"
1014 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1015 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1016 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1017 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
1018 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self):
1019     reference="hex_2D_o2_contact_s.xml"
1020 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
1021 jgs 150 x=FunctionOnContactOne(dom).getX()
1022 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml"),data=x[0])
1023 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",reference)
1024 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Vector_vtk(self):
1025     reference="hex_2D_o2_contact_v.xml"
1026 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
1027 jgs 150 x=FunctionOnContactOne(dom).getX()
1028 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
1029 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",reference)
1030 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Tensor_vtk(self):
1031     reference="hex_2D_o2_contact_t.xml"
1032 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
1033 jgs 150 x=FunctionOnContactOne(dom).getX()
1034 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1035 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference)
1036 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self):
1037 jgs 150 reference="hex_2D_o2_contact_s.xml"
1038 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
1039 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1040 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
1041 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference)
1042     def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector_vtk(self):
1043     reference="hex_2D_o2_contact_v.xml"
1044 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
1045 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1046 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
1047 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",reference)
1048     def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self):
1049     reference="hex_2D_o2_contact_t.xml"
1050 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"),optimize=False)
1051 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1052 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1053 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference)
1054     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
1055     reference="hex_2D_o2_contact_s.xml"
1056 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1057 jgs 150 x=FunctionOnContactOne(dom).getX()
1058 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml"),data=x[0])
1059 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference)
1060 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector_vtk(self):
1061     reference="hex_2D_o2_contact_v.xml"
1062 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1063 jgs 150 x=FunctionOnContactOne(dom).getX()
1064 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
1065 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",reference)
1066 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self):
1067     reference="hex_2D_o2_contact_t.xml"
1068 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1069 jgs 150 x=FunctionOnContactOne(dom).getX()
1070 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1071 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
1072 jgs 150
1073 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedReducedFunctionOnContactOne_Scalar_vtk(self):
1074     reference="hex_2D_o2_contact_s.xml"
1075 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1076 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1077 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
1078 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
1079     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
1080     reference="hex_2D_o2_contact_v.xml"
1081 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1082 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1083 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
1084 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
1085     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
1086     reference="hex_2D_o2_contact_t.xml"
1087 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"),optimize=False)
1088 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1089 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1090 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1091 gross 1742 # ======================================================================================================================
1092     def test_hex_2D_order2p_ContinuousFunction_Scalar_vtk(self):
1093     reference="hex_2D_o2p_node_s.xml"
1094 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1095 gross 1742 x=ContinuousFunction(dom).getX()
1096 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ContinuousFunction_Scalar.xml"),data=x[0])
1097 gross 1742 self.check_vtk("hex_2D_order2p_ContinuousFunction_Scalar.xml",reference)
1098     def test_hex_2D_order2p_ContinuousFunction_Vector_vtk(self):
1099     reference="hex_2D_o2p_node_v.xml"
1100 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1101 gross 1742 x=ContinuousFunction(dom).getX()
1102 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
1103 gross 1742 self.check_vtk("hex_2D_order2p_ContinuousFunction_Vector.xml",reference)
1104     def test_hex_2D_order2p_ContinuousFunction_Tensor_vtk(self):
1105     reference="hex_2D_o2p_node_t.xml"
1106 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1107 gross 1742 x=ContinuousFunction(dom).getX()
1108 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1109 gross 1742 self.check_vtk("hex_2D_order2p_ContinuousFunction_Tensor.xml",reference)
1110     def test_hex_2D_order2p_Solution_Scalar_vtk(self):
1111     reference="hex_2D_o2p_node_s.xml"
1112 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1113 gross 1742 x=Solution(dom).getX()
1114 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_Solution_Scalar.xml"),data=x[0])
1115 gross 1742 self.check_vtk("hex_2D_order2p_Solution_Scalar.xml",reference)
1116     def test_hex_2D_order2p_Solution_Vector_vtk(self):
1117     reference="hex_2D_o2p_node_v.xml"
1118 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1119 gross 1742 x=Solution(dom).getX()
1120 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_Solution_Vector.xml"),data=x[0]*[1.,2.])
1121 gross 1742 self.check_vtk("hex_2D_order2p_Solution_Vector.xml",reference)
1122     def test_hex_2D_order2p_Solution_Tensor_vtk(self):
1123     reference="hex_2D_o2p_node_t.xml"
1124 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1125 gross 1742 x=Solution(dom).getX()
1126 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1127 gross 1742 self.check_vtk("hex_2D_order2p_Solution_Tensor.xml",reference)
1128     def test_hex_2D_order2p_ReducedSolution_Scalar_vtk(self):
1129     reference="hex_2D_o2p_reduced_node_s.xml"
1130 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1131 gross 1742 x=ReducedSolution(dom).getX()
1132 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedSolution_Scalar.xml"),data=x[0])
1133 gross 1742 self.check_vtk("hex_2D_order2p_ReducedSolution_Scalar.xml",reference)
1134     def test_hex_2D_order2p_ReducedSolution_Vector_vtk(self):
1135     reference="hex_2D_o2p_reduced_node_v.xml"
1136 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1137 gross 1742 x=ReducedSolution(dom).getX()
1138 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
1139 gross 1742 self.check_vtk("hex_2D_order2p_ReducedSolution_Vector.xml",reference)
1140     def test_hex_2D_order2p_ReducedSolution_Tensor_vtk(self):
1141     reference="hex_2D_o2p_reduced_node_t.xml"
1142 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1143 gross 1742 x=ReducedSolution(dom).getX()
1144 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1145 gross 1742 self.check_vtk("hex_2D_order2p_ReducedSolution_Tensor.xml",reference)
1146     def test_hex_2D_order2p_Function_Scalar_vtk(self):
1147     reference="hex_2D_o2p_cell_s.xml"
1148 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1149 gross 1742 x=Function(dom).getX()
1150 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_Function_Scalar.xml"),data=x[0])
1151 gross 1742 self.check_vtk("hex_2D_order2p_Function_Scalar.xml",reference)
1152     def test_hex_2D_order2p_Function_Vector_vtk(self):
1153     reference="hex_2D_o2p_cell_v.xml"
1154 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1155 gross 1742 x=Function(dom).getX()
1156 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_Function_Vector.xml"),data=x[0]*[1.,2.])
1157 gross 1742 self.check_vtk("hex_2D_order2p_Function_Vector.xml",reference)
1158     def test_hex_2D_order2p_Function_Tensor_vtk(self):
1159     reference="hex_2D_o2p_cell_t.xml"
1160 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1161 gross 1742 x=Function(dom).getX()
1162 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1163 gross 1742 self.check_vtk("hex_2D_order2p_Function_Tensor.xml",reference)
1164     def test_hex_2D_order2p_ReducedFunction_Scalar_vtk(self):
1165     reference="hex_2D_o2p_cell_reduced_s.xml"
1166 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1167 gross 1742 x=ReducedFunction(dom).getX()
1168 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedFunction_Scalar.xml"),data=x[0])
1169 gross 1742 self.check_vtk("hex_2D_order2p_ReducedFunction_Scalar.xml",reference)
1170     def test_hex_2D_order2p_ReducedFunction_Vector_vtk(self):
1171     reference="hex_2D_o2p_cell_reduced_v.xml"
1172 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1173 gross 1742 x=ReducedFunction(dom).getX()
1174 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
1175 gross 1742 self.check_vtk("hex_2D_order2p_ReducedFunction_Vector.xml",reference)
1176     def test_hex_2D_order2p_ReducedFunction_Tensor_vtk(self):
1177     reference="hex_2D_o2p_cell_reduced_t.xml"
1178 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1179 gross 1742 x=ReducedFunction(dom).getX()
1180 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1181 gross 1742 self.check_vtk("hex_2D_order2p_ReducedFunction_Tensor.xml",reference)
1182     def test_hex_2D_order2p_FunctionOnBoundary_Scalar_vtk(self):
1183     reference="hex_2D_o2p_boundary_s.xml"
1184 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1185 gross 1742 x=FunctionOnBoundary(dom).getX()
1186 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_FunctionOnBoundary_Scalar.xml"),data=x[0])
1187 gross 1742 self.check_vtk("hex_2D_order2p_FunctionOnBoundary_Scalar.xml",reference)
1188     def test_hex_2D_order2p_FunctionOnBoundary_Vector_vtk(self):
1189     reference="hex_2D_o2p_boundary_v.xml"
1190 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1191 gross 1742 x=FunctionOnBoundary(dom).getX()
1192 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
1193 gross 1742 self.check_vtk("hex_2D_order2p_FunctionOnBoundary_Vector.xml",reference)
1194     def test_hex_2D_order2p_FunctionOnBoundary_Tensor_vtk(self):
1195     reference="hex_2D_o2p_boundary_t.xml"
1196 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1197 gross 1742 x=FunctionOnBoundary(dom).getX()
1198 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1199 gross 1742 self.check_vtk("hex_2D_order2p_FunctionOnBoundary_Tensor.xml",reference)
1200     def test_hex_2D_order2p_ReducedFunctionOnBoundary_Scalar_vtk(self):
1201     reference="hex_2D_o2p_boundary_reduced_s.xml"
1202 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1203 gross 1742 x=ReducedFunctionOnBoundary(dom).getX()
1204 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1205 gross 1742 self.check_vtk("hex_2D_order2p_ReducedFunctionOnBoundary_Scalar.xml",reference)
1206     def test_hex_2D_order2p_ReducedFunctionOnBoundary_Vector_vtk(self):
1207     reference="hex_2D_o2p_boundary_reduced_v.xml"
1208 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1209 gross 1742 x=ReducedFunctionOnBoundary(dom).getX()
1210 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
1211 gross 1742 self.check_vtk("hex_2D_order2p_ReducedFunctionOnBoundary_Vector.xml",reference)
1212     def test_hex_2D_order2p_ReducedFunctionOnBoundary_Tensor_vtk(self):
1213     reference="hex_2D_o2p_boundary_reduced_t.xml"
1214 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2p.msh"),optimize=False)
1215 gross 1742 x=ReducedFunctionOnBoundary(dom).getX()
1216 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2p_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1217 gross 1742 self.check_vtk("hex_2D_order2p_ReducedFunctionOnBoundary_Tensor.xml",reference)
1218 jgs 153
1219 jgs 150 # ======================================================================================================================
1220     def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self):
1221     reference="hex_3D_o1_node_s.xml"
1222 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1223 jgs 150 x=ContinuousFunction(dom).getX()
1224 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ContinuousFunction_Scalar.xml"),data=x[0])
1225 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Scalar.xml",reference)
1226 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Vector_vtk(self):
1227     reference="hex_3D_o1_node_v.xml"
1228 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1229 jgs 150 x=ContinuousFunction(dom).getX()
1230 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1231 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Vector.xml",reference)
1232 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Tensor_vtk(self):
1233     reference="hex_3D_o1_node_t.xml"
1234 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1235 jgs 150 x=ContinuousFunction(dom).getX()
1236 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1237 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Tensor.xml",reference)
1238 jgs 150 def test_hex_contact_3D_order1_Solution_Scalar_vtk(self):
1239     reference="hex_3D_o1_node_s.xml"
1240 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1241 jgs 150 x=Solution(dom).getX()
1242 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Solution_Scalar.xml"),data=x[0])
1243 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Scalar.xml",reference)
1244 jgs 150 def test_hex_contact_3D_order1_Solution_Vector_vtk(self):
1245     reference="hex_3D_o1_node_v.xml"
1246 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1247 jgs 150 x=Solution(dom).getX()
1248 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])
1249 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Vector.xml",reference)
1250 jgs 150 def test_hex_contact_3D_order1_Solution_Tensor_vtk(self):
1251     reference="hex_3D_o1_node_t.xml"
1252 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1253 jgs 150 x=Solution(dom).getX()
1254 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1255 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Tensor.xml",reference)
1256 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Scalar_vtk(self):
1257     reference="hex_3D_o1_node_s.xml"
1258 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1259 jgs 150 x=ReducedSolution(dom).getX()
1260 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedSolution_Scalar.xml"),data=x[0])
1261 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Scalar.xml",reference)
1262 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Vector_vtk(self):
1263     reference="hex_3D_o1_node_v.xml"
1264 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1265 jgs 150 x=ReducedSolution(dom).getX()
1266 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])
1267 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Vector.xml",reference)
1268 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Tensor_vtk(self):
1269     reference="hex_3D_o1_node_t.xml"
1270 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1271 jgs 150 x=ReducedSolution(dom).getX()
1272 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1273 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Tensor.xml",reference)
1274 jgs 150 def test_hex_contact_3D_order1_Function_Scalar_vtk(self):
1275     reference="hex_3D_o1_cell_s.xml"
1276 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1277 jgs 150 x=Function(dom).getX()
1278 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Function_Scalar.xml"),data=x[0])
1279 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Scalar.xml",reference)
1280 jgs 150 def test_hex_contact_3D_order1_Function_Vector_vtk(self):
1281     reference="hex_3D_o1_cell_v.xml"
1282 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1283 jgs 150 x=Function(dom).getX()
1284 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Function_Vector.xml"),data=x[0]*[1.,2.,3.])
1285 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Vector.xml",reference)
1286 jgs 150 def test_hex_contact_3D_order1_Function_Tensor_vtk(self):
1287     reference="hex_3D_o1_cell_t.xml"
1288 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1289 jgs 150 x=Function(dom).getX()
1290 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1291 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference)
1292 gross 1065 def test_hex_contact_3D_order1_ReducedFunction_Scalar_vtk(self):
1293     reference="hex_3D_o1_cell_s.xml"
1294 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1295 gross 1065 x=ReducedFunction(dom).getX()
1296 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunction_Scalar.xml"),data=x[0])
1297 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Scalar.xml",reference)
1298     def test_hex_contact_3D_order1_ReducedFunction_Vector_vtk(self):
1299     reference="hex_3D_o1_cell_v.xml"
1300 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1301 gross 1065 x=ReducedFunction(dom).getX()
1302 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1303 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Vector.xml",reference)
1304     def test_hex_contact_3D_order1_ReducedFunction_Tensor_vtk(self):
1305     reference="hex_3D_o1_cell_t.xml"
1306 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1307 gross 1065 x=ReducedFunction(dom).getX()
1308 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1309 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Tensor.xml",reference)
1310 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self):
1311     reference="hex_3D_o1_boundary_s.xml"
1312 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1313 jgs 150 x=FunctionOnBoundary(dom).getX()
1314 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])
1315 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",reference)
1316 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Vector_vtk(self):
1317     reference="hex_3D_o1_boundary_v.xml"
1318 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1319 jgs 150 x=FunctionOnBoundary(dom).getX()
1320 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1321 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",reference)
1322 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Tensor_vtk(self):
1323     reference="hex_3D_o1_boundary_t.xml"
1324 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1325 jgs 150 x=FunctionOnBoundary(dom).getX()
1326 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1327 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference)
1328 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
1329     reference="hex_3D_o1_boundary_s.xml"
1330 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1331 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1332 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1333 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
1334     def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
1335     reference="hex_3D_o1_boundary_v.xml"
1336 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1337 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1338 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1339 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
1340     def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
1341     reference="hex_3D_o1_boundary_t.xml"
1342 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1343 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1344 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1345 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
1346 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
1347     reference="hex_3D_o1_f_boundary_s.xml"
1348 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1349 jgs 150 x=FunctionOnBoundary(dom).getX()
1350 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
1351 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
1352 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
1353     reference="hex_3D_o1_f_boundary_v.xml"
1354 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1355 jgs 150 x=FunctionOnBoundary(dom).getX()
1356 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1357 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
1358 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
1359     reference="hex_3D_o1_f_boundary_t.xml"
1360 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1361 jgs 150 x=FunctionOnBoundary(dom).getX()
1362 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1363 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
1364 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
1365     reference="hex_3D_o1_f_boundary_s.xml"
1366 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1367 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1368 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1369 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
1370     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
1371     reference="hex_3D_o1_f_boundary_v.xml"
1372 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1373 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1374 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1375 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
1376     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
1377     reference="hex_3D_o1_f_boundary_t.xml"
1378 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1379 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1380 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1381 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
1382 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self):
1383     reference="hex_3D_o1_contact_s.xml"
1384 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1385 jgs 150 x=FunctionOnContactZero(dom).getX()
1386 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml"),data=x[0])
1387 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",reference)
1388 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Vector_vtk(self):
1389     reference="hex_3D_o1_contact_v.xml"
1390 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1391 jgs 150 x=FunctionOnContactZero(dom).getX()
1392 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1393 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",reference)
1394 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Tensor_vtk(self):
1395     reference="hex_3D_o1_contact_t.xml"
1396 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1397 jgs 150 x=FunctionOnContactZero(dom).getX()
1398 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1399 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference)
1400 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
1401     reference="hex_3D_o1_contact_s.xml"
1402 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1403 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1404 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
1405 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference)
1406     def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector_vtk(self):
1407     reference="hex_3D_o1_contact_v.xml"
1408 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1409 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1410 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1411 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",reference)
1412     def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self):
1413     reference="hex_3D_o1_contact_t.xml"
1414 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1415 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1416 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1417 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
1418 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
1419     reference="hex_3D_o1_contact_s.xml"
1420 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1421 jgs 150 x=FunctionOnContactZero(dom).getX()
1422 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
1423 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
1424 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
1425     reference="hex_3D_o1_contact_v.xml"
1426 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1427 jgs 150 x=FunctionOnContactZero(dom).getX()
1428 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1429 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
1430 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
1431     reference="hex_3D_o1_contact_t.xml"
1432 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1433 jgs 150 x=FunctionOnContactZero(dom).getX()
1434 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1435 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
1436 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
1437     reference="hex_3D_o1_contact_s.xml"
1438 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1439 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1440 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
1441 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
1442     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
1443     reference="hex_3D_o1_contact_v.xml"
1444 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1445 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1446 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1447 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
1448     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
1449     reference="hex_3D_o1_contact_t.xml"
1450 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"),optimize=False)
1451 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1452 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1453 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
1454 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self):
1455     reference="hex_3D_o1_contact_s.xml"
1456 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1457 jgs 150 x=FunctionOnContactOne(dom).getX()
1458 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml"),data=x[0])
1459 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",reference)
1460 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Vector_vtk(self):
1461     reference="hex_3D_o1_contact_v.xml"
1462 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1463 jgs 150 x=FunctionOnContactOne(dom).getX()
1464 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1465 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",reference)
1466 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Tensor_vtk(self):
1467     reference="hex_3D_o1_contact_t.xml"
1468 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1469 jgs 150 x=FunctionOnContactOne(dom).getX()
1470 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1471 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference)
1472 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
1473     reference="hex_3D_o1_contact_s.xml"
1474 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1475 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1476 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
1477 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference)
1478     def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector_vtk(self):
1479     reference="hex_3D_o1_contact_v.xml"
1480 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1481 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1482 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1483 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",reference)
1484     def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self):
1485     reference="hex_3D_o1_contact_t.xml"
1486 gross 2416 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"),optimize=False)
1487 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1488 gross 2416 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1489 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)