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