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