/[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 1376 - (hide annotations)
Wed Jan 9 01:38:18 2008 UTC (12 years, 2 months ago) by gross
File MIME type: text/x-python
File size: 174080 byte(s)
inserted sys.exit(1) into the tests so scons can detect the failure of the test. 
A similar statement has been removed from an earlier as it produces problems on 64bit Linux. Previously exit(0) was called in case of success but now this is not done in order to avoid a fatal end of the program. in the case of an error in the test there could be a fatal error so but I guess that this not really a problem.

PS: the fact that signal 0 was returned even for the case of an error lead to the illusion that all tests have been completed successfully.


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