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