/[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 1178 - (hide annotations)
Wed May 30 05:03:17 2007 UTC (12 years, 10 months ago) by gross
File MIME type: text/x-python
File size: 139806 byte(s)
bug in visualization interface test fixed.
1 jgs 150 # $Id$
2    
3 elspeth 617 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
4     http://www.access.edu.au
5     Primary Business: Queensland, Australia"""
6     __license__="""Licensed under the Open Software License version 3.0
7     http://www.opensource.org/licenses/osl-3.0.php"""
8 jgs 150 import sys
9     import unittest
10     from esys.escript import *
11     from esys.finley import ReadMesh
12    
13 gross 798 try:
14     FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']
15     except KeyError:
16     FINLEY_TEST_DATA='.'
17    
18     try:
19     FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
20     except KeyError:
21     FINLEY_WORKDIR='.'
22    
23 gross 1135 FINLEY_TEST_MESH_PATH=os.path.join(FINLEY_TEST_DATA,"data_meshes")
24     # if os.name == "nt":
25     # FINLEY_TEST_MESH_PATH = os.path.join(FINLEY_TEST_MESH_PATH,"win32/"
26     FINLEY_WORKDIR_PATH=FINLEY_WORKDIR
27 gross 709
28 jgs 150 class Test_VisualizationInterface(unittest.TestCase):
29     def check_vtk(self,f,reference_f):
30 gross 1135 out_string=open(os.path.join(FINLEY_WORKDIR_PATH,f)).read().splitlines()
31     ref_string=open(os.path.join(FINLEY_TEST_MESH_PATH,reference_f)).read().splitlines()
32 jgs 150 c=0
33     for l in range(0,len(ref_string)):
34     if not ref_string[l].strip()[:2]=="<!":
35 gross 1135 line=out_string[c].strip()
36     if os.name == "nt":
37     line=line.replace("e+00","e+0").replace("e-00","e-0")
38 gross 1178 line=line.replace("e-00","e+00")
39 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()))
40 jgs 150 c+=1
41    
42     def check_dx(self,f,reference_f):
43 gross 1135 out_string=open(os.path.join(FINLEY_WORKDIR_PATH,f)).read().splitlines()
44     ref_string=open(os.path.join(FINLEY_TEST_MESH_PATH,reference_f)).read().splitlines()
45 jgs 150 c=0
46     for l in range(0,len(ref_string)):
47     if not ref_string[l].strip()[0]=="#":
48 gross 1135 line=out_string[c].strip()
49     if os.name == "nt":
50     line=line.replace("e+00","e+0").replace("e-00","e-0")
51 gross 1178 line=line.replace("e-00","e+00")
52 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()))
53 jgs 150 c+=1
54    
55     class Test_VTKFiles(Test_VisualizationInterface):
56     # ======================================================================================================================
57 jgs 153 def test_hex_2D_order2_vtk(self):
58     reference="hex_2D_o2.xml"
59 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
60     saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2.xml"),domain=dom)
61 jgs 153 self.check_vtk("hex_2D_order2.xml",reference)
62    
63     def test_hex_2D_order2_AllPoints_Scalar_vtk(self):
64     reference="hex_2D_o1_node_3xs.xml"
65 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
66 jgs 153 x=Solution(dom).getX()
67     x_r=ReducedSolution(dom).getX()
68     x_n=ContinuousFunction(dom).getX()
69 gross 1135 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])
70 jgs 153 self.check_vtk("hex_2D_order2_AllPoints_Scalar.xml",reference)
71     def test_hex_2D_order2_02Points_Scalar_vtk(self):
72     reference="hex_2D_o2_node_2xs.xml"
73 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
74 jgs 153 x=Solution(dom).getX()
75     x_n=ContinuousFunction(dom).getX()
76 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_O2Points_Scalar.xml"),data_n=x_n[0],data=x[0])
77 jgs 153 self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference)
78     def test_hex_2D_order2_2Cells_Scalar_vtk(self):
79 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
80 jgs 153 x=Function(dom).getX()
81     x_b=FunctionOnBoundary(dom).getX()
82     try:
83 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_2Cells_Scalar.xml"),data=x[0],data_b=x_b[0])
84 jgs 153 self.fail("non-matching data not detected.")
85     except StandardError:
86     pass
87 gross 1065 def test_hex_2D_order2_BoundaryPoint_Scalar_vtk(self):
88 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
89 jgs 153 x=ContinuousFunction(dom).getX()
90     x_b=FunctionOnBoundary(dom).getX()
91     try:
92 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_BoundaryPoint_Scalar.xml"),data=x[0],data_b=x_b[0])
93 jgs 153 self.fail("non-matching data not detected.")
94     except StandardError:
95     pass
96     def test_hex_2D_order2_Cells_AllData_vtk(self):
97     reference="hex_2D_o2_cell_all.xml"
98 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
99 jgs 153 x=Function(dom).getX()
100 gross 1135 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.]])
101 jgs 153 self.check_vtk("hex_2D_order2_Cells_AllData.xml",reference)
102    
103     def test_hex_2D_order2_CellsPoints_AllData_vtk(self):
104     reference="hex_2D_o2_cellnode_all.xml"
105 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
106 jgs 153 x_c=Function(dom).getX()
107     x_p=ContinuousFunction(dom).getX()
108 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_CellsPoints_AllData.xml"),data_sp=x_p[0],
109 jgs 153 data_vp=x_p[0]*[1.,2.],
110     data_tp=x_p[0]*[[11.,12.],[21.,22.]],
111     data_sc=x_c[0],
112     data_vc=x_c[0]*[1.,2.],
113     data_tc=x_c[0]*[[11.,12.],[21.,22.]])
114     self.check_vtk("hex_2D_order2_CellsPoints_AllData.xml",reference)
115     # ======================================================================================================================
116 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Scalar_vtk(self):
117     reference="hex_2D_o1_node_s.xml"
118 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
119 jgs 150 x=ContinuousFunction(dom).getX()
120 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Scalar.xml"),data=x[0])
121 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Scalar.xml",reference)
122 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Vector_vtk(self):
123     reference="hex_2D_o1_node_v.xml"
124 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
125 jgs 150 x=ContinuousFunction(dom).getX()
126 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
127 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Vector.xml",reference)
128 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Tensor_vtk(self):
129     reference="hex_2D_o1_node_t.xml"
130 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
131 jgs 150 x=ContinuousFunction(dom).getX()
132 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
133 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Tensor.xml",reference)
134 jgs 150 def test_hex_contact_2D_order1_Solution_Scalar_vtk(self):
135     reference="hex_2D_o1_node_s.xml"
136 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
137 jgs 150 x=Solution(dom).getX()
138 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Scalar.xml"),data=x[0])
139 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Scalar.xml",reference)
140 jgs 150 def test_hex_contact_2D_order1_Solution_Vector_vtk(self):
141     reference="hex_2D_o1_node_v.xml"
142 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
143 jgs 150 x=Solution(dom).getX()
144 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.])
145 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Vector.xml",reference)
146 jgs 150 def test_hex_contact_2D_order1_Solution_Tensor_vtk(self):
147     reference="hex_2D_o1_node_t.xml"
148 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
149 jgs 150 x=Solution(dom).getX()
150 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
151 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Tensor.xml",reference)
152 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Scalar_vtk(self):
153     reference="hex_2D_o1_node_s.xml"
154 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
155 jgs 150 x=ReducedSolution(dom).getX()
156 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Scalar.xml"),data=x[0])
157 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Scalar.xml",reference)
158 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Vector_vtk(self):
159     reference="hex_2D_o1_node_v.xml"
160 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
161 jgs 150 x=ReducedSolution(dom).getX()
162 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
163 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Vector.xml",reference)
164 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Tensor_vtk(self):
165     reference="hex_2D_o1_node_t.xml"
166 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
167 jgs 150 x=ReducedSolution(dom).getX()
168 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
169 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Tensor.xml",reference)
170 jgs 150 def test_hex_contact_2D_order1_Function_Scalar_vtk(self):
171     reference="hex_2D_o1_cell_s.xml"
172 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
173 jgs 150 x=Function(dom).getX()
174 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Function_Scalar.xml"),data=x[0])
175 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Scalar.xml",reference)
176 jgs 150 def test_hex_contact_2D_order1_Function_Vector_vtk(self):
177     reference="hex_2D_o1_cell_v.xml"
178 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
179 jgs 150 x=Function(dom).getX()
180 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Function_Vector.xml"),data=x[0]*[1.,2.])
181 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Vector.xml",reference)
182 jgs 150 def test_hex_contact_2D_order1_Function_Tensor_vtk(self):
183     reference="hex_2D_o1_cell_t.xml"
184 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
185 jgs 150 x=Function(dom).getX()
186 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
187 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference)
188 gross 1065 def test_hex_contact_2D_order1_ReducedFunction_Scalar_vtk(self):
189     reference="hex_2D_o1_cell_s.xml"
190 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
191 gross 1065 x=ReducedFunction(dom).getX()
192 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunction_Scalar.xml"),data=x[0])
193 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Scalar.xml",reference)
194     def test_hex_contact_2D_order1_ReducedFunction_Vector_vtk(self):
195     reference="hex_2D_o1_cell_v.xml"
196 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
197 gross 1065 x=ReducedFunction(dom).getX()
198 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
199 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Vector.xml",reference)
200     def test_hex_contact_2D_order1_ReducedFunction_Tensor_vtk(self):
201     reference="hex_2D_o1_cell_t.xml"
202 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
203 gross 1065 x=ReducedFunction(dom).getX()
204 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
205 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunction_Tensor.xml",reference)
206 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self):
207     reference="hex_2D_o1_boundary_s.xml"
208 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
209 jgs 150 x=FunctionOnBoundary(dom).getX()
210 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])
211 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",reference)
212 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Vector_vtk(self):
213     reference="hex_2D_o1_boundary_v.xml"
214 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
215 jgs 150 x=FunctionOnBoundary(dom).getX()
216 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
217 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",reference)
218 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Tensor_vtk(self):
219     reference="hex_2D_o1_boundary_t.xml"
220 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
221 jgs 150 x=FunctionOnBoundary(dom).getX()
222 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
223 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference)
224 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
225     reference="hex_2D_o1_boundary_s.xml"
226 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
227 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
228 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
229 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
230     def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
231     reference="hex_2D_o1_boundary_v.xml"
232 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
233 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
234 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
235 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
236     def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
237     reference="hex_2D_o1_boundary_t.xml"
238 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
239 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
240 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
241 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
242 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
243     reference="hex_2D_o1_f_boundary_s.xml"
244 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
245 jgs 150 x=FunctionOnBoundary(dom).getX()
246 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
247 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
248 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
249     reference="hex_2D_o1_f_boundary_v.xml"
250 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
251 jgs 150 x=FunctionOnBoundary(dom).getX()
252 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
253 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
254 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
255     reference="hex_2D_o1_f_boundary_t.xml"
256 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
257 jgs 150 x=FunctionOnBoundary(dom).getX()
258 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
259 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
260 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
261     reference="hex_2D_o1_f_boundary_s.xml"
262 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
263 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
264 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
265 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
266     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
267     reference="hex_2D_o1_f_boundary_v.xml"
268 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
269 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
270 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
271 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
272     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
273     reference="hex_2D_o1_f_boundary_t.xml"
274 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
275 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
276 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
277 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
278 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self):
279     reference="hex_2D_o1_contact_s.xml"
280 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
281 jgs 150 x=FunctionOnContactZero(dom).getX()
282 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml"),data=x[0])
283 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",reference)
284 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Vector_vtk(self):
285     reference="hex_2D_o1_contact_v.xml"
286 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
287 jgs 150 x=FunctionOnContactZero(dom).getX()
288 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
289 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",reference)
290 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Tensor_vtk(self):
291     reference="hex_2D_o1_contact_t.xml"
292 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
293 jgs 150 x=FunctionOnContactZero(dom).getX()
294 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
295 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference)
296 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
297     reference="hex_2D_o1_contact_s.xml"
298 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
299 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
300 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
301 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference)
302     def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector_vtk(self):
303     reference="hex_2D_o1_contact_v.xml"
304 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
305 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
306 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
307 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",reference)
308     def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self):
309     reference="hex_2D_o1_contact_t.xml"
310 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
311 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
312 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
313 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
314 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
315     reference="hex_2D_o1_contact_s.xml"
316 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
317 jgs 150 x=FunctionOnContactZero(dom).getX()
318 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
319 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
320 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
321     reference="hex_2D_o1_contact_v.xml"
322 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
323 jgs 150 x=FunctionOnContactZero(dom).getX()
324 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
325 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
326 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
327     reference="hex_2D_o1_contact_t.xml"
328 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
329 jgs 150 x=FunctionOnContactZero(dom).getX()
330 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
331 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
332 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
333     reference="hex_2D_o1_contact_s.xml"
334 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
335 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
336 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
337 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
338     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
339     reference="hex_2D_o1_contact_v.xml"
340 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
341 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
342 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
343 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
344     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
345     reference="hex_2D_o1_contact_t.xml"
346 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
347 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
348 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
349 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
350 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self):
351     reference="hex_2D_o1_contact_s.xml"
352 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
353 jgs 150 x=FunctionOnContactOne(dom).getX()
354 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml"),data=x[0])
355 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",reference)
356 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Vector_vtk(self):
357     reference="hex_2D_o1_contact_v.xml"
358 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
359 jgs 150 x=FunctionOnContactOne(dom).getX()
360 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
361 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",reference)
362 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Tensor_vtk(self):
363     reference="hex_2D_o1_contact_t.xml"
364 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
365 jgs 150 x=FunctionOnContactOne(dom).getX()
366 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
367 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference)
368 gross 1065 def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
369     reference="hex_2D_o1_contact_s.xml"
370 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
371 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
372 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
373 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference)
374     def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector_vtk(self):
375     reference="hex_2D_o1_contact_v.xml"
376 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
377 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
378 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
379 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",reference)
380     def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self):
381     reference="hex_2D_o1_contact_t.xml"
382 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
383 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
384 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
385 gross 1065 self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
386 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
387     reference="hex_2D_o1_contact_s.xml"
388 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
389 jgs 150 x=FunctionOnContactOne(dom).getX()
390 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml"),data=x[0])
391 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
392 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
393     reference="hex_2D_o1_contact_v.xml"
394 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
395 jgs 150 x=FunctionOnContactOne(dom).getX()
396 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
397 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
398 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
399     reference="hex_2D_o1_contact_t.xml"
400 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
401 jgs 150 x=FunctionOnContactOne(dom).getX()
402 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
403 gross 1149 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
404 gross 1065 def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
405     reference="hex_2D_o1_contact_s.xml"
406 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
407 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
408 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
409 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
410     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
411     reference="hex_2D_o1_contact_v.xml"
412 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
413 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
414 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
415 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
416     def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
417     reference="hex_2D_o1_contact_t.xml"
418 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1_onFace.msh"))
419 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
420 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
421 gross 1065 self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
422 jgs 150 # ======================================================================================================================
423     def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self):
424     reference="hex_2D_o2_node_s.xml"
425 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
426 jgs 150 x=ContinuousFunction(dom).getX()
427 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ContinuousFunction_Scalar.xml"),data=x[0])
428 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Scalar.xml",reference)
429 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Vector_vtk(self):
430     reference="hex_2D_o2_node_v.xml"
431 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
432 jgs 150 x=ContinuousFunction(dom).getX()
433 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
434 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Vector.xml",reference)
435 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Tensor_vtk(self):
436     reference="hex_2D_o2_node_t.xml"
437 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
438 jgs 150 x=ContinuousFunction(dom).getX()
439 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
440 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Tensor.xml",reference)
441 jgs 150 def test_hex_contact_2D_order2_Solution_Scalar_vtk(self):
442     reference="hex_2D_o2_node_s.xml"
443 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
444 jgs 150 x=Solution(dom).getX()
445 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Solution_Scalar.xml"),data=x[0])
446 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Scalar.xml",reference)
447 jgs 150 def test_hex_contact_2D_order2_Solution_Vector_vtk(self):
448     reference="hex_2D_o2_node_v.xml"
449 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
450 jgs 150 x=Solution(dom).getX()
451 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.])
452 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Vector.xml",reference)
453 jgs 150 def test_hex_contact_2D_order2_Solution_Tensor_vtk(self):
454     reference="hex_2D_o2_node_t.xml"
455 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
456 jgs 150 x=Solution(dom).getX()
457 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
458 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Tensor.xml",reference)
459 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Scalar_vtk(self):
460     reference="hex_2D_o1_node_s.xml"
461 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
462 jgs 150 x=ReducedSolution(dom).getX()
463 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedSolution_Scalar.xml"),data=x[0])
464 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Scalar.xml",reference)
465 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Vector_vtk(self):
466     reference="hex_2D_o1_node_v.xml"
467 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
468 jgs 150 x=ReducedSolution(dom).getX()
469 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
470 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Vector.xml",reference)
471 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Tensor_vtk(self):
472     reference="hex_2D_o1_node_t.xml"
473 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
474 jgs 150 x=ReducedSolution(dom).getX()
475 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
476 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Tensor.xml",reference)
477 jgs 150 def test_hex_contact_2D_order2_Function_Scalar_vtk(self):
478     reference="hex_2D_o2_cell_s.xml"
479 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
480 jgs 150 x=Function(dom).getX()
481 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Function_Scalar.xml"),data=x[0])
482 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Scalar.xml",reference)
483 jgs 150 def test_hex_contact_2D_order2_Function_Vector_vtk(self):
484     reference="hex_2D_o2_cell_v.xml"
485 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
486 jgs 150 x=Function(dom).getX()
487 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Function_Vector.xml"),data=x[0]*[1.,2.])
488 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Vector.xml",reference)
489 jgs 150 def test_hex_contact_2D_order2_Function_Tensor_vtk(self):
490     reference="hex_2D_o2_cell_t.xml"
491 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
492 jgs 150 x=Function(dom).getX()
493 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
494 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference)
495 gross 1065 def test_hex_contact_2D_order2_ReducedFunction_Scalar_vtk(self):
496     reference="hex_2D_o2_cell_s.xml"
497 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
498 gross 1065 x=ReducedFunction(dom).getX()
499 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunction_Scalar.xml"),data=x[0])
500 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Scalar.xml",reference)
501     def test_hex_contact_2D_order2_ReducedFunction_Vector_vtk(self):
502     reference="hex_2D_o2_cell_v.xml"
503 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
504 gross 1065 x=ReducedFunction(dom).getX()
505 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
506 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Vector.xml",reference)
507     def test_hex_contact_2D_order2_ReducedFunction_Tensor_vtk(self):
508     reference="hex_2D_o2_cell_t.xml"
509 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
510 gross 1065 x=ReducedFunction(dom).getX()
511 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
512 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunction_Tensor.xml",reference)
513 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self):
514     reference="hex_2D_o2_boundary_s.xml"
515 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
516 jgs 150 x=FunctionOnBoundary(dom).getX()
517 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])
518 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",reference)
519 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Vector_vtk(self):
520     reference="hex_2D_o2_boundary_v.xml"
521 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
522 jgs 150 x=FunctionOnBoundary(dom).getX()
523 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
524 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",reference)
525 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Tensor_vtk(self):
526     reference="hex_2D_o2_boundary_t.xml"
527 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
528 jgs 150 x=FunctionOnBoundary(dom).getX()
529 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
530 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference)
531 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
532     reference="hex_2D_o2_boundary_s.xml"
533 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
534 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
535 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
536 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
537     def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
538     reference="hex_2D_o2_boundary_v.xml"
539 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
540 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
541 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
542 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
543     def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
544     reference="hex_2D_o2_boundary_t.xml"
545 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
546 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
547 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
548 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
549 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
550     reference="hex_2D_o2_f_boundary_s.xml"
551 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
552 jgs 150 x=FunctionOnBoundary(dom).getX()
553 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
554 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
555 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
556     reference="hex_2D_o2_f_boundary_v.xml"
557 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
558 jgs 150 x=FunctionOnBoundary(dom).getX()
559 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
560 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
561 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
562     reference="hex_2D_o2_f_boundary_t.xml"
563 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
564 jgs 150 x=FunctionOnBoundary(dom).getX()
565 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
566 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
567 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
568     reference="hex_2D_o2_f_boundary_s.xml"
569 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
570 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
571 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
572 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
573     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
574     reference="hex_2D_o2_f_boundary_v.xml"
575 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
576 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
577 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
578 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
579     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
580     reference="hex_2D_o2_f_boundary_t.xml"
581 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
582 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
583 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
584 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
585 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self):
586     reference="hex_2D_o2_contact_s.xml"
587 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
588 jgs 150 x=FunctionOnContactZero(dom).getX()
589 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml"),data=x[0])
590 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",reference)
591 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Vector_vtk(self):
592     reference="hex_2D_o2_contact_v.xml"
593 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
594 jgs 150 x=FunctionOnContactZero(dom).getX()
595 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
596 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",reference)
597 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Tensor_vtk(self):
598     reference="hex_2D_o2_contact_t.xml"
599 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
600 jgs 150 x=FunctionOnContactZero(dom).getX()
601 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
602 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference)
603 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
604     reference="hex_2D_o2_contact_s.xml"
605 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
606 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
607 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
608 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference)
609     def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector_vtk(self):
610     reference="hex_2D_o2_contact_v.xml"
611 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
612 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
613 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
614 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",reference)
615     def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self):
616     reference="hex_2D_o2_contact_t.xml"
617 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
618 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
619 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
620 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)
621 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
622     reference="hex_2D_o2_contact_s.xml"
623 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
624 jgs 150 x=FunctionOnContactZero(dom).getX()
625 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
626 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference)
627 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector_vtk(self):
628     reference="hex_2D_o2_contact_v.xml"
629 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
630 jgs 150 x=FunctionOnContactZero(dom).getX()
631 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
632 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",reference)
633 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self):
634     reference="hex_2D_o2_contact_t.xml"
635 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
636 jgs 150 x=FunctionOnContactZero(dom).getX()
637 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
638 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
639 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
640     reference="hex_2D_o2_contact_s.xml"
641 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
642 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
643 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
644 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
645     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
646     reference="hex_2D_o2_contact_v.xml"
647 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
648 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
649 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.])
650 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
651     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
652     reference="hex_2D_o2_contact_t.xml"
653 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
654 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
655 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
656 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
657 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self):
658     reference="hex_2D_o2_contact_s.xml"
659 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
660 jgs 150 x=FunctionOnContactOne(dom).getX()
661 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml"),data=x[0])
662 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",reference)
663 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Vector_vtk(self):
664     reference="hex_2D_o2_contact_v.xml"
665 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
666 jgs 150 x=FunctionOnContactOne(dom).getX()
667 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
668 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",reference)
669 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Tensor_vtk(self):
670     reference="hex_2D_o2_contact_t.xml"
671 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
672 jgs 150 x=FunctionOnContactOne(dom).getX()
673 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
674 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference)
675 gross 1065 def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self):
676 jgs 150 reference="hex_2D_o2_contact_s.xml"
677 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
678 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
679 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
680 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference)
681     def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector_vtk(self):
682     reference="hex_2D_o2_contact_v.xml"
683 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
684 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
685 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
686 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",reference)
687     def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self):
688     reference="hex_2D_o2_contact_t.xml"
689 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2.msh"))
690 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
691 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
692 gross 1065 self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference)
693     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
694     reference="hex_2D_o2_contact_s.xml"
695 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
696 jgs 150 x=FunctionOnContactOne(dom).getX()
697 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml"),data=x[0])
698 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference)
699 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector_vtk(self):
700     reference="hex_2D_o2_contact_v.xml"
701 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
702 jgs 150 x=FunctionOnContactOne(dom).getX()
703 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
704 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",reference)
705 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self):
706     reference="hex_2D_o2_contact_t.xml"
707 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
708 jgs 150 x=FunctionOnContactOne(dom).getX()
709 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
710 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
711 jgs 150
712 gross 1065 def test_hex_contact_2D_order2_onFace_ReducedReducedFunctionOnContactOne_Scalar_vtk(self):
713     reference="hex_2D_o2_contact_s.xml"
714 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
715 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
716 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
717 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
718     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
719     reference="hex_2D_o2_contact_v.xml"
720 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
721 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
722 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.])
723 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
724     def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
725     reference="hex_2D_o2_contact_t.xml"
726 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order2_onFace.msh"))
727 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
728 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
729 gross 1065 self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
730 jgs 153
731 gross 1065
732 jgs 150 # ======================================================================================================================
733     def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self):
734     reference="hex_3D_o1_node_s.xml"
735 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
736 jgs 150 x=ContinuousFunction(dom).getX()
737 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ContinuousFunction_Scalar.xml"),data=x[0])
738 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Scalar.xml",reference)
739 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Vector_vtk(self):
740     reference="hex_3D_o1_node_v.xml"
741 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
742 jgs 150 x=ContinuousFunction(dom).getX()
743 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
744 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Vector.xml",reference)
745 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Tensor_vtk(self):
746     reference="hex_3D_o1_node_t.xml"
747 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
748 jgs 150 x=ContinuousFunction(dom).getX()
749 gross 1135 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.]])
750 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Tensor.xml",reference)
751 jgs 150 def test_hex_contact_3D_order1_Solution_Scalar_vtk(self):
752     reference="hex_3D_o1_node_s.xml"
753 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
754 jgs 150 x=Solution(dom).getX()
755 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Solution_Scalar.xml"),data=x[0])
756 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Scalar.xml",reference)
757 jgs 150 def test_hex_contact_3D_order1_Solution_Vector_vtk(self):
758     reference="hex_3D_o1_node_v.xml"
759 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
760 jgs 150 x=Solution(dom).getX()
761 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])
762 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Vector.xml",reference)
763 jgs 150 def test_hex_contact_3D_order1_Solution_Tensor_vtk(self):
764     reference="hex_3D_o1_node_t.xml"
765 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
766 jgs 150 x=Solution(dom).getX()
767 gross 1135 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.]])
768 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Tensor.xml",reference)
769 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Scalar_vtk(self):
770     reference="hex_3D_o1_node_s.xml"
771 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
772 jgs 150 x=ReducedSolution(dom).getX()
773 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedSolution_Scalar.xml"),data=x[0])
774 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Scalar.xml",reference)
775 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Vector_vtk(self):
776     reference="hex_3D_o1_node_v.xml"
777 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
778 jgs 150 x=ReducedSolution(dom).getX()
779 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])
780 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Vector.xml",reference)
781 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Tensor_vtk(self):
782     reference="hex_3D_o1_node_t.xml"
783 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
784 jgs 150 x=ReducedSolution(dom).getX()
785 gross 1135 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.]])
786 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Tensor.xml",reference)
787 jgs 150 def test_hex_contact_3D_order1_Function_Scalar_vtk(self):
788     reference="hex_3D_o1_cell_s.xml"
789 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
790 jgs 150 x=Function(dom).getX()
791 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Function_Scalar.xml"),data=x[0])
792 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Scalar.xml",reference)
793 jgs 150 def test_hex_contact_3D_order1_Function_Vector_vtk(self):
794     reference="hex_3D_o1_cell_v.xml"
795 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
796 jgs 150 x=Function(dom).getX()
797 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_Function_Vector.xml"),data=x[0]*[1.,2.,3.])
798 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Vector.xml",reference)
799 jgs 150 def test_hex_contact_3D_order1_Function_Tensor_vtk(self):
800     reference="hex_3D_o1_cell_t.xml"
801 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
802 jgs 150 x=Function(dom).getX()
803 gross 1135 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.]])
804 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference)
805 gross 1065 def test_hex_contact_3D_order1_ReducedFunction_Scalar_vtk(self):
806     reference="hex_3D_o1_cell_s.xml"
807 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
808 gross 1065 x=ReducedFunction(dom).getX()
809 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunction_Scalar.xml"),data=x[0])
810 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Scalar.xml",reference)
811     def test_hex_contact_3D_order1_ReducedFunction_Vector_vtk(self):
812     reference="hex_3D_o1_cell_v.xml"
813 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
814 gross 1065 x=ReducedFunction(dom).getX()
815 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
816 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Vector.xml",reference)
817     def test_hex_contact_3D_order1_ReducedFunction_Tensor_vtk(self):
818     reference="hex_3D_o1_cell_t.xml"
819 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
820 gross 1065 x=ReducedFunction(dom).getX()
821 gross 1135 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.]])
822 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunction_Tensor.xml",reference)
823 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self):
824     reference="hex_3D_o1_boundary_s.xml"
825 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
826 jgs 150 x=FunctionOnBoundary(dom).getX()
827 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])
828 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",reference)
829 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Vector_vtk(self):
830     reference="hex_3D_o1_boundary_v.xml"
831 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
832 jgs 150 x=FunctionOnBoundary(dom).getX()
833 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
834 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",reference)
835 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Tensor_vtk(self):
836     reference="hex_3D_o1_boundary_t.xml"
837 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
838 jgs 150 x=FunctionOnBoundary(dom).getX()
839 gross 1135 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.]])
840 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference)
841 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
842     reference="hex_3D_o1_boundary_s.xml"
843 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
844 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
845 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
846 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
847     def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
848     reference="hex_3D_o1_boundary_v.xml"
849 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
850 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
851 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
852 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
853     def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
854     reference="hex_3D_o1_boundary_t.xml"
855 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
856 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
857 gross 1135 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.]])
858 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
859 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
860     reference="hex_3D_o1_f_boundary_s.xml"
861 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
862 jgs 150 x=FunctionOnBoundary(dom).getX()
863 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
864 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
865 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
866     reference="hex_3D_o1_f_boundary_v.xml"
867 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
868 jgs 150 x=FunctionOnBoundary(dom).getX()
869 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
870 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
871 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
872     reference="hex_3D_o1_f_boundary_t.xml"
873 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
874 jgs 150 x=FunctionOnBoundary(dom).getX()
875 gross 1135 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.]])
876 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
877 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
878     reference="hex_3D_o1_f_boundary_s.xml"
879 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
880 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
881 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
882 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
883     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
884     reference="hex_3D_o1_f_boundary_v.xml"
885 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
886 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
887 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
888 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
889     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
890     reference="hex_3D_o1_f_boundary_t.xml"
891 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
892 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
893 gross 1135 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.]])
894 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
895 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self):
896     reference="hex_3D_o1_contact_s.xml"
897 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
898 jgs 150 x=FunctionOnContactZero(dom).getX()
899 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml"),data=x[0])
900 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",reference)
901 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Vector_vtk(self):
902     reference="hex_3D_o1_contact_v.xml"
903 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
904 jgs 150 x=FunctionOnContactZero(dom).getX()
905 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
906 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",reference)
907 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Tensor_vtk(self):
908     reference="hex_3D_o1_contact_t.xml"
909 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
910 jgs 150 x=FunctionOnContactZero(dom).getX()
911 gross 1135 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.]])
912 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference)
913 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
914     reference="hex_3D_o1_contact_s.xml"
915 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
916 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
917 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
918 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference)
919     def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector_vtk(self):
920     reference="hex_3D_o1_contact_v.xml"
921 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
922 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
923 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
924 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",reference)
925     def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self):
926     reference="hex_3D_o1_contact_t.xml"
927 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
928 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
929 gross 1135 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.]])
930 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
931 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
932     reference="hex_3D_o1_contact_s.xml"
933 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
934 jgs 150 x=FunctionOnContactZero(dom).getX()
935 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
936 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
937 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
938     reference="hex_3D_o1_contact_v.xml"
939 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
940 jgs 150 x=FunctionOnContactZero(dom).getX()
941 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
942 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
943 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
944     reference="hex_3D_o1_contact_t.xml"
945 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
946 jgs 150 x=FunctionOnContactZero(dom).getX()
947 gross 1135 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.]])
948 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
949 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
950     reference="hex_3D_o1_contact_s.xml"
951 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
952 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
953 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
954 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
955     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
956     reference="hex_3D_o1_contact_v.xml"
957 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
958 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
959 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
960 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
961     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
962     reference="hex_3D_o1_contact_t.xml"
963 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
964 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
965 gross 1135 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.]])
966 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
967 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self):
968     reference="hex_3D_o1_contact_s.xml"
969 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
970 jgs 150 x=FunctionOnContactOne(dom).getX()
971 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml"),data=x[0])
972 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",reference)
973 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Vector_vtk(self):
974     reference="hex_3D_o1_contact_v.xml"
975 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
976 jgs 150 x=FunctionOnContactOne(dom).getX()
977 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
978 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",reference)
979 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Tensor_vtk(self):
980     reference="hex_3D_o1_contact_t.xml"
981 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
982 jgs 150 x=FunctionOnContactOne(dom).getX()
983 gross 1135 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.]])
984 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference)
985 gross 1065 def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
986     reference="hex_3D_o1_contact_s.xml"
987 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
988 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
989 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
990 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference)
991     def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector_vtk(self):
992     reference="hex_3D_o1_contact_v.xml"
993 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
994 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
995 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
996 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",reference)
997     def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self):
998     reference="hex_3D_o1_contact_t.xml"
999 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1.msh"))
1000 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1001 gross 1135 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.]])
1002 gross 1065 self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
1003 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
1004     reference="hex_3D_o1_contact_s.xml"
1005 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
1006 jgs 150 x=FunctionOnContactOne(dom).getX()
1007 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml"),data=x[0])
1008 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
1009 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
1010     reference="hex_3D_o1_contact_v.xml"
1011 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
1012 jgs 150 x=FunctionOnContactOne(dom).getX()
1013 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1014 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
1015 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
1016     reference="hex_3D_o1_contact_t.xml"
1017 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
1018 jgs 150 x=FunctionOnContactOne(dom).getX()
1019 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1020 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
1021 gross 1065 def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
1022     reference="hex_3D_o1_contact_s.xml"
1023 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
1024 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1025 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
1026 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
1027     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
1028     reference="hex_3D_o1_contact_v.xml"
1029 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
1030 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1031 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1032 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
1033     def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
1034     reference="hex_3D_o1_contact_t.xml"
1035 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order1_onFace.msh"))
1036 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1037 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1038 gross 1065 self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1039 jgs 150 # ======================================================================================================================
1040     def test_hex_contact_3D_order2_ContinuousFunction_Scalar_vtk(self):
1041     reference="hex_3D_o2_node_s.xml"
1042 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1043 jgs 150 x=ContinuousFunction(dom).getX()
1044 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ContinuousFunction_Scalar.xml"),data=x[0])
1045 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Scalar.xml",reference)
1046 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Vector_vtk(self):
1047     reference="hex_3D_o2_node_v.xml"
1048 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1049 jgs 150 x=ContinuousFunction(dom).getX()
1050 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1051 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Vector.xml",reference)
1052 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Tensor_vtk(self):
1053     reference="hex_3D_o2_node_t.xml"
1054 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1055 jgs 150 x=ContinuousFunction(dom).getX()
1056 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1057 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Tensor.xml",reference)
1058 jgs 150 def test_hex_contact_3D_order2_Solution_Scalar_vtk(self):
1059     reference="hex_3D_o2_node_s.xml"
1060 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1061 jgs 150 x=Solution(dom).getX()
1062 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_Solution_Scalar.xml"),data=x[0])
1063 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Scalar.xml",reference)
1064 jgs 150 def test_hex_contact_3D_order2_Solution_Vector_vtk(self):
1065     reference="hex_3D_o2_node_v.xml"
1066 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1067 jgs 150 x=Solution(dom).getX()
1068 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])
1069 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Vector.xml",reference)
1070 jgs 150 def test_hex_contact_3D_order2_Solution_Tensor_vtk(self):
1071     reference="hex_3D_o2_node_t.xml"
1072 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1073 jgs 150 x=Solution(dom).getX()
1074 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1075 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Tensor.xml",reference)
1076 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Scalar_vtk(self):
1077     reference="hex_3D_o1_node_s.xml"
1078 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1079 jgs 150 x=ReducedSolution(dom).getX()
1080 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedSolution_Scalar.xml"),data=x[0])
1081 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Scalar.xml",reference)
1082 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Vector_vtk(self):
1083     reference="hex_3D_o1_node_v.xml"
1084 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1085 jgs 150 x=ReducedSolution(dom).getX()
1086 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])
1087 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Vector.xml",reference)
1088 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Tensor_vtk(self):
1089     reference="hex_3D_o1_node_t.xml"
1090 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1091 jgs 150 x=ReducedSolution(dom).getX()
1092 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1093 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Tensor.xml",reference)
1094 jgs 150 def test_hex_contact_3D_order2_Function_Scalar_vtk(self):
1095     reference="hex_3D_o2_cell_s.xml"
1096 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1097 jgs 150 x=Function(dom).getX()
1098 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_Function_Scalar.xml"),data=x[0])
1099 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Scalar.xml",reference)
1100 jgs 150 def test_hex_contact_3D_order2_Function_Vector_vtk(self):
1101     reference="hex_3D_o2_cell_v.xml"
1102 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1103 jgs 150 x=Function(dom).getX()
1104 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_Function_Vector.xml"),data=x[0]*[1.,2.,3.])
1105 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Vector.xml",reference)
1106 jgs 150 def test_hex_contact_3D_order2_Function_Tensor_vtk(self):
1107     reference="hex_3D_o2_cell_t.xml"
1108 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1109 jgs 150 x=Function(dom).getX()
1110 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1111 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Tensor.xml",reference)
1112 gross 1065 def test_hex_contact_3D_order2_ReducedFunction_Scalar_vtk(self):
1113     reference="hex_3D_o2_cell_s.xml"
1114 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1115 gross 1065 x=ReducedFunction(dom).getX()
1116 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunction_Scalar.xml"),data=x[0])
1117 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunction_Scalar.xml",reference)
1118     def test_hex_contact_3D_order2_ReducedFunction_Vector_vtk(self):
1119     reference="hex_3D_o2_cell_v.xml"
1120 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1121 gross 1065 x=ReducedFunction(dom).getX()
1122 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1123 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunction_Vector.xml",reference)
1124     def test_hex_contact_3D_order2_ReducedFunction_Tensor_vtk(self):
1125     reference="hex_3D_o2_cell_t.xml"
1126 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1127 gross 1065 x=ReducedFunction(dom).getX()
1128 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1129 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunction_Tensor.xml",reference)
1130 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_vtk(self):
1131     reference="hex_3D_o2_boundary_s.xml"
1132 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1133 jgs 150 x=FunctionOnBoundary(dom).getX()
1134 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])
1135 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",reference)
1136 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Vector_vtk(self):
1137     reference="hex_3D_o2_boundary_v.xml"
1138 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1139 jgs 150 x=FunctionOnBoundary(dom).getX()
1140 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1141 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",reference)
1142 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Tensor_vtk(self):
1143     reference="hex_3D_o2_boundary_t.xml"
1144 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1145 jgs 150 x=FunctionOnBoundary(dom).getX()
1146 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1147 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",reference)
1148 gross 1065 def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
1149     reference="hex_3D_o2_boundary_s.xml"
1150 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1151 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1152 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1153 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
1154     def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
1155     reference="hex_3D_o2_boundary_v.xml"
1156 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1157 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1158 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1159 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
1160     def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
1161     reference="hex_3D_o2_boundary_t.xml"
1162 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1163 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1164 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1165 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
1166 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
1167     reference="hex_3D_o2_f_boundary_s.xml"
1168 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1169 jgs 150 x=FunctionOnBoundary(dom).getX()
1170 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml"),data=x[0])
1171 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
1172 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
1173     reference="hex_3D_o2_f_boundary_v.xml"
1174 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1175 jgs 150 x=FunctionOnBoundary(dom).getX()
1176 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1177 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
1178 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
1179     reference="hex_3D_o2_f_boundary_t.xml"
1180 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1181 jgs 150 x=FunctionOnBoundary(dom).getX()
1182 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1183 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
1184 gross 1065 def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
1185     reference="hex_3D_o2_f_boundary_s.xml"
1186 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1187 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1188 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1189 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
1190     def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
1191     reference="hex_3D_o2_f_boundary_v.xml"
1192 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1193 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1194 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1195 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
1196     def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
1197     reference="hex_3D_o2_f_boundary_t.xml"
1198 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1199 gross 1065 x=ReducedFunctionOnBoundary(dom).getX()
1200 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1201 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
1202 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Scalar_vtk(self):
1203     reference="hex_3D_o2_contact_s.xml"
1204 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1205 jgs 150 x=FunctionOnContactZero(dom).getX()
1206 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml"),data=x[0])
1207 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",reference)
1208 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Vector_vtk(self):
1209     reference="hex_3D_o2_contact_v.xml"
1210 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1211 jgs 150 x=FunctionOnContactZero(dom).getX()
1212 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1213 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",reference)
1214 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Tensor_vtk(self):
1215     reference="hex_3D_o2_contact_t.xml"
1216 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1217 jgs 150 x=FunctionOnContactZero(dom).getX()
1218 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1219 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",reference)
1220 gross 1065 def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
1221     reference="hex_3D_o2_contact_s.xml"
1222 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1223 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1224 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
1225 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference)
1226     def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector_vtk(self):
1227     reference="hex_3D_o2_contact_v.xml"
1228 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1229 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1230 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1231 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml",reference)
1232     def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self):
1233     reference="hex_3D_o2_contact_t.xml"
1234 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1235 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1236 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1237 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)
1238 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
1239     reference="hex_3D_o2_contact_s.xml"
1240 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1241 jgs 150 x=FunctionOnContactZero(dom).getX()
1242 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar.xml"),data=x[0])
1243 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference)
1244 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector_vtk(self):
1245     reference="hex_3D_o2_contact_v.xml"
1246 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1247 jgs 150 x=FunctionOnContactZero(dom).getX()
1248 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1249 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector.xml",reference)
1250 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self):
1251     reference="hex_3D_o2_contact_t.xml"
1252 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1253 jgs 150 x=FunctionOnContactZero(dom).getX()
1254 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1255 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
1256 gross 1065 def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
1257     reference="hex_3D_o2_contact_s.xml"
1258 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1259 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1260 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml"),data=x[0])
1261 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
1262     def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
1263     reference="hex_3D_o2_contact_v.xml"
1264 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1265 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1266 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml"),data=x[0]*[1.,2.,3.])
1267 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
1268     def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
1269     reference="hex_3D_o2_contact_t.xml"
1270 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1271 gross 1065 x=ReducedFunctionOnContactZero(dom).getX()
1272 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1273 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
1274 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactOne_Scalar_vtk(self):
1275     reference="hex_3D_o2_contact_s.xml"
1276 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1277 jgs 150 x=FunctionOnContactOne(dom).getX()
1278 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnContactOne_Scalar.xml"),data=x[0])
1279 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Scalar.xml",reference)
1280 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactOne_Vector_vtk(self):
1281     reference="hex_3D_o2_contact_v.xml"
1282 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1283 jgs 150 x=FunctionOnContactOne(dom).getX()
1284 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1285 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Vector.xml",reference)
1286 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactOne_Tensor_vtk(self):
1287     reference="hex_3D_o2_contact_t.xml"
1288 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1289 jgs 150 x=FunctionOnContactOne(dom).getX()
1290 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1291 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",reference)
1292 gross 1065 def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self):
1293     reference="hex_3D_o2_contact_s.xml"
1294 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1295 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1296 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
1297 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference)
1298     def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector_vtk(self):
1299     reference="hex_3D_o2_contact_v.xml"
1300 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1301 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1302 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1303 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector.xml",reference)
1304     def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self):
1305     reference="hex_3D_o2_contact_t.xml"
1306 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2.msh"))
1307 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1308 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1309 gross 1065 self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference)
1310 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self):
1311     reference="hex_3D_o2_contact_s.xml"
1312 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1313 jgs 150 x=FunctionOnContactOne(dom).getX()
1314 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar.xml"),data=x[0])
1315 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference)
1316 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector_vtk(self):
1317     reference="hex_3D_o2_contact_v.xml"
1318 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1319 jgs 150 x=FunctionOnContactOne(dom).getX()
1320 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1321 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector.xml",reference)
1322 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self):
1323     reference="hex_3D_o2_contact_t.xml"
1324 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1325 jgs 150 x=FunctionOnContactOne(dom).getX()
1326 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1327 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
1328 gross 1065 def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
1329     reference="hex_3D_o2_contact_s.xml"
1330 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1331 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1332 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml"),data=x[0])
1333 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
1334     def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
1335     reference="hex_3D_o2_contact_v.xml"
1336 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1337 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1338 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml"),data=x[0]*[1.,2.,3.])
1339 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
1340     def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
1341     reference="hex_3D_o2_contact_t.xml"
1342 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_3D_order2_onFace.msh"))
1343 gross 1065 x=ReducedFunctionOnContactOne(dom).getX()
1344 gross 1135 saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1345 gross 1065 self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1346 jgs 150
1347 gross 1065
1348 jgs 150 class Test_DXFiles(Test_VisualizationInterface):
1349     # ======================================================================================================================
1350 jgs 153 def test_hex_2D_order2_dx(self):
1351     reference="hex_2D_o1.dx"
1352 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1353     saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2.dx"),domain=dom)
1354 jgs 153 self.check_dx("hex_2D_order2.dx",reference)
1355    
1356     def test_hex_2D_order2_AllPoints_Scalar_dx(self):
1357     reference="hex_2D_o1_node_3xs.dx"
1358 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1359 jgs 153 x=Solution(dom).getX()
1360     x_r=ReducedSolution(dom).getX()
1361     x_n=ContinuousFunction(dom).getX()
1362 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_AllPoints_Scalar.dx"),data_r=x_r[0],data_n=x_n[0],data=x[0])
1363 jgs 153 self.check_dx("hex_2D_order2_AllPoints_Scalar.dx",reference)
1364     def test_hex_2D_order2_02Points_Scalar_dx(self):
1365     reference="hex_2D_o1_node_2xs.dx"
1366 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1367 jgs 153 x=Solution(dom).getX()
1368     x_n=ContinuousFunction(dom).getX()
1369 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_O2Points_Scalar.dx"),data_n=x_n[0],data=x[0])
1370 jgs 153 self.check_dx("hex_2D_order2_O2Points_Scalar.dx",reference)
1371     def test_hex_2D_order2_2Cells_Scalar_dx(self):
1372 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1373 jgs 153 x=Function(dom).getX()
1374     x_b=FunctionOnBoundary(dom).getX()
1375     try:
1376 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_2Cells_Scalar.dx"),data=x[0],data_b=x_b[0])
1377 jgs 153 self.fail("non-matching data not detected.")
1378     except StandardError:
1379     pass
1380 gross 1065 def test_hex_2D_order2_BoundaryPoint_Scalar_dx(self):
1381 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1382 jgs 153 x=ContinuousFunction(dom).getX()
1383     x_b=FunctionOnBoundary(dom).getX()
1384     try:
1385 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_BoundaryPoint_Scalar.dx"),data=x[0],data_b=x_b[0])
1386 jgs 153 self.fail("non-matching data not detected.")
1387     except StandardError:
1388     pass
1389     def test_hex_2D_order2_Cells_AllData_dx(self):
1390     reference="hex_2D_o1_cell_all.dx"
1391 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1392 jgs 153 x=Function(dom).getX()
1393 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_Cells_AllData.dx"),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.]])
1394 jgs 153 self.check_dx("hex_2D_order2_Cells_AllData.dx",reference)
1395    
1396     def test_hex_2D_order2_CellsPoints_AllData_dx(self):
1397     reference="hex_2D_o1_cellnode_all.dx"
1398 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_2D_order2.msh"))
1399 jgs 153 x_c=Function(dom).getX()
1400     x_p=ContinuousFunction(dom).getX()
1401 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_2D_order2_CellsPoints_AllData.dx"),data_sp=x_p[0],
1402 jgs 153 data_vp=x_p[0]*[1.,2.],
1403     data_tp=x_p[0]*[[11.,12.],[21.,22.]],
1404     data_sc=x_c[0],
1405     data_vc=x_c[0]*[1.,2.],
1406     data_tc=x_c[0]*[[11.,12.],[21.,22.]])
1407     self.check_dx("hex_2D_order2_CellsPoints_AllData.dx",reference)
1408     # ======================================================================================================================
1409 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Scalar_dx(self):
1410     reference="hex_2D_o1_node_s.dx"
1411 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1412 jgs 150 x=ContinuousFunction(dom).getX()
1413 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Scalar.dx"),data=x[0])
1414 jgs 153 self.check_dx("hex_contact_2D_order1_ContinuousFunction_Scalar.dx",reference)
1415 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Vector_dx(self):
1416     reference="hex_2D_o1_node_v.dx"
1417 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1418 jgs 150 x=ContinuousFunction(dom).getX()
1419 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Vector.dx"),data=x[0]*[1.,2.])
1420 jgs 153 self.check_dx("hex_contact_2D_order1_ContinuousFunction_Vector.dx",reference)
1421 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Tensor_dx(self):
1422     reference="hex_2D_o1_node_t.dx"
1423 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1424 jgs 150 x=ContinuousFunction(dom).getX()
1425 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ContinuousFunction_Tensor.dx"),data=x[0]*[[11.,12.],[21.,22.]])
1426 jgs 153 self.check_dx("hex_contact_2D_order1_ContinuousFunction_Tensor.dx",reference)
1427 jgs 150 def test_hex_contact_2D_order1_Solution_Scalar_dx(self):
1428     reference="hex_2D_o1_node_s.dx"
1429 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1430 jgs 150 x=Solution(dom).getX()
1431 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Scalar.dx"),data=x[0])
1432 jgs 153 self.check_dx("hex_contact_2D_order1_Solution_Scalar.dx",reference)
1433 jgs 150 def test_hex_contact_2D_order1_Solution_Vector_dx(self):
1434     reference="hex_2D_o1_node_v.dx"
1435 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1436 jgs 150 x=Solution(dom).getX()
1437 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Vector.dx"),data=x[0]*[1.,2.])
1438 jgs 153 self.check_dx("hex_contact_2D_order1_Solution_Vector.dx",reference)
1439 jgs 150 def test_hex_contact_2D_order1_Solution_Tensor_dx(self):
1440     reference="hex_2D_o1_node_t.dx"
1441 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1442 jgs 150 x=Solution(dom).getX()
1443 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_Solution_Tensor.dx"),data=x[0]*[[11.,12.],[21.,22.]])
1444 jgs 153 self.check_dx("hex_contact_2D_order1_Solution_Tensor.dx",reference)
1445 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Scalar_dx(self):
1446     reference="hex_2D_o1_node_s.dx"
1447 gross 1135 dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"hex_contact_2D_order1.msh"))
1448 jgs 150 x=ReducedSolution(dom).getX()
1449 gross 1135 saveDX(os.path.join(FINLEY_WORKDIR_PATH,"hex_contact_2D_order1_ReducedSolution_Scalar.dx"),data=x[0])
1450 jgs 153 self.check_dx("hex_contact_2D_order1_ReducedSolution_Scalar.dx",reference)
1451 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Vector_dx(self):
1452     reference="hex_2D_o1_node_v.dx"