/[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 757 - (hide annotations)
Mon Jun 26 13:12:56 2006 UTC (13 years, 9 months ago) by woo409
File MIME type: text/x-python
File size: 82726 byte(s)
+ Merge of intelc_win32 branch (revision 741:755) with trunk. Tested on iVEC altix (run_tests and py_tests all pass)

1 jgs 150 # $Id$
2    
3 elspeth 617 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
4     http://www.access.edu.au
5     Primary Business: Queensland, Australia"""
6     __license__="""Licensed under the Open Software License version 3.0
7     http://www.opensource.org/licenses/osl-3.0.php"""
8 jgs 150 import sys
9     import unittest
10     from esys.escript import *
11     from esys.finley import ReadMesh
12    
13 gross 709 FINLEY_TEST_MESH_PATH=os.environ['FINLEY_TEST_DATA']+"/data_meshes/"
14 woo409 757 if os.name == "nt":
15     FINLEY_TEST_MESH_PATH = FINLEY_TEST_MESH_PATH+"win32/"
16 gross 709 FINLEY_WORKDIR_PATH=os.environ['FINLEY_WORKDIR']+"/"
17    
18 jgs 150 class Test_VisualizationInterface(unittest.TestCase):
19     def check_vtk(self,f,reference_f):
20 gross 709 out_string=open(FINLEY_WORKDIR_PATH+f).read().splitlines()
21     ref_string=open(FINLEY_TEST_MESH_PATH+reference_f).read().splitlines()
22 jgs 150 c=0
23     for l in range(0,len(ref_string)):
24     if not ref_string[l].strip()[:2]=="<!":
25     self.failUnlessEqual(out_string[c].strip().replace("e-00","e+00"),ref_string[l].strip(),"line %d (%s) in vtk files does not match reference (%s)"%(c,out_string[c].strip(),ref_string[l].strip()))
26     c+=1
27    
28     def check_dx(self,f,reference_f):
29 gross 709 out_string=open(FINLEY_WORKDIR_PATH+f).read().splitlines()
30     ref_string=open(FINLEY_TEST_MESH_PATH+reference_f).read().splitlines()
31 jgs 150 c=0
32     for l in range(0,len(ref_string)):
33     if not ref_string[l].strip()[0]=="#":
34     self.failUnlessEqual(out_string[c].strip().replace("e-00","e+00"),ref_string[l].strip(),"line %d (%s) in dx file does not match reference (%s)"%(c,out_string[c].strip(),ref_string[l].strip()))
35     c+=1
36    
37     class Test_VTKFiles(Test_VisualizationInterface):
38     # ======================================================================================================================
39 jgs 153 def test_hex_2D_order2_vtk(self):
40     reference="hex_2D_o2.xml"
41 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
42     saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2.xml",domain=dom)
43 jgs 153 self.check_vtk("hex_2D_order2.xml",reference)
44    
45     def test_hex_2D_order2_AllPoints_Scalar_vtk(self):
46     reference="hex_2D_o1_node_3xs.xml"
47 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
48 jgs 153 x=Solution(dom).getX()
49     x_r=ReducedSolution(dom).getX()
50     x_n=ContinuousFunction(dom).getX()
51 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_AllPoints_Scalar.xml",data_r=x_r[0],data_n=x_n[0],data=x[0])
52 jgs 153 self.check_vtk("hex_2D_order2_AllPoints_Scalar.xml",reference)
53     def test_hex_2D_order2_02Points_Scalar_vtk(self):
54     reference="hex_2D_o2_node_2xs.xml"
55 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
56 jgs 153 x=Solution(dom).getX()
57     x_n=ContinuousFunction(dom).getX()
58 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_O2Points_Scalar.xml",data_n=x_n[0],data=x[0])
59 jgs 153 self.check_vtk("hex_2D_order2_O2Points_Scalar.xml",reference)
60     def test_hex_2D_order2_2Cells_Scalar_vtk(self):
61 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
62 jgs 153 x=Function(dom).getX()
63     x_b=FunctionOnBoundary(dom).getX()
64     try:
65 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_2Cells_Scalar.xml",data=x[0],data_b=x_b[0])
66 jgs 153 self.fail("non-matching data not detected.")
67     except StandardError:
68     pass
69     def test_hex_2D_order2_BoundrayPoint_Scalar_vtk(self):
70 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
71 jgs 153 x=ContinuousFunction(dom).getX()
72     x_b=FunctionOnBoundary(dom).getX()
73     try:
74 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundrayPoint_Scalar.xml",data=x[0],data_b=x_b[0])
75 jgs 153 self.fail("non-matching data not detected.")
76     except StandardError:
77     pass
78     def test_hex_2D_order2_Cells_AllData_vtk(self):
79     reference="hex_2D_o2_cell_all.xml"
80 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
81 jgs 153 x=Function(dom).getX()
82 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_Cells_AllData.xml",data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]])
83 jgs 153 self.check_vtk("hex_2D_order2_Cells_AllData.xml",reference)
84    
85     def test_hex_2D_order2_CellsPoints_AllData_vtk(self):
86     reference="hex_2D_o2_cellnode_all.xml"
87 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
88 jgs 153 x_c=Function(dom).getX()
89     x_p=ContinuousFunction(dom).getX()
90 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_CellsPoints_AllData.xml",data_sp=x_p[0],
91 jgs 153 data_vp=x_p[0]*[1.,2.],
92     data_tp=x_p[0]*[[11.,12.],[21.,22.]],
93     data_sc=x_c[0],
94     data_vc=x_c[0]*[1.,2.],
95     data_tc=x_c[0]*[[11.,12.],[21.,22.]])
96     self.check_vtk("hex_2D_order2_CellsPoints_AllData.xml",reference)
97     # ======================================================================================================================
98 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Scalar_vtk(self):
99     reference="hex_2D_o1_node_s.xml"
100 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
101 jgs 150 x=ContinuousFunction(dom).getX()
102 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Scalar.xml",data=x[0])
103 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Scalar.xml",reference)
104 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Vector_vtk(self):
105     reference="hex_2D_o1_node_v.xml"
106 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
107 jgs 150 x=ContinuousFunction(dom).getX()
108 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.])
109 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Vector.xml",reference)
110 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Tensor_vtk(self):
111     reference="hex_2D_o1_node_t.xml"
112 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
113 jgs 150 x=ContinuousFunction(dom).getX()
114 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
115 jgs 153 self.check_vtk("hex_contact_2D_order1_ContinuousFunction_Tensor.xml",reference)
116 jgs 150 def test_hex_contact_2D_order1_Solution_Scalar_vtk(self):
117     reference="hex_2D_o1_node_s.xml"
118 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
119 jgs 150 x=Solution(dom).getX()
120 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Scalar.xml",data=x[0])
121 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Scalar.xml",reference)
122 jgs 150 def test_hex_contact_2D_order1_Solution_Vector_vtk(self):
123     reference="hex_2D_o1_node_v.xml"
124 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
125 jgs 150 x=Solution(dom).getX()
126 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Vector.xml",data=x[0]*[1.,2.])
127 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Vector.xml",reference)
128 jgs 150 def test_hex_contact_2D_order1_Solution_Tensor_vtk(self):
129     reference="hex_2D_o1_node_t.xml"
130 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
131 jgs 150 x=Solution(dom).getX()
132 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
133 jgs 153 self.check_vtk("hex_contact_2D_order1_Solution_Tensor.xml",reference)
134 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Scalar_vtk(self):
135     reference="hex_2D_o1_node_s.xml"
136 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
137 jgs 150 x=ReducedSolution(dom).getX()
138 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Scalar.xml",data=x[0])
139 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Scalar.xml",reference)
140 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Vector_vtk(self):
141     reference="hex_2D_o1_node_v.xml"
142 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
143 jgs 150 x=ReducedSolution(dom).getX()
144 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Vector.xml",data=x[0]*[1.,2.])
145 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Vector.xml",reference)
146 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Tensor_vtk(self):
147     reference="hex_2D_o1_node_t.xml"
148 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
149 jgs 150 x=ReducedSolution(dom).getX()
150 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
151 jgs 153 self.check_vtk("hex_contact_2D_order1_ReducedSolution_Tensor.xml",reference)
152 jgs 150 def test_hex_contact_2D_order1_Function_Scalar_vtk(self):
153     reference="hex_2D_o1_cell_s.xml"
154 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
155 jgs 150 x=Function(dom).getX()
156 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Scalar.xml",data=x[0])
157 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Scalar.xml",reference)
158 jgs 150 def test_hex_contact_2D_order1_Function_Vector_vtk(self):
159     reference="hex_2D_o1_cell_v.xml"
160 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
161 jgs 150 x=Function(dom).getX()
162 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Vector.xml",data=x[0]*[1.,2.])
163 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Vector.xml",reference)
164 jgs 150 def test_hex_contact_2D_order1_Function_Tensor_vtk(self):
165     reference="hex_2D_o1_cell_t.xml"
166 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
167 jgs 150 x=Function(dom).getX()
168 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
169 jgs 153 self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference)
170 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self):
171     reference="hex_2D_o1_boundary_s.xml"
172 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
173 jgs 150 x=FunctionOnBoundary(dom).getX()
174 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",data=x[0])
175 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Scalar.xml",reference)
176 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Vector_vtk(self):
177     reference="hex_2D_o1_boundary_v.xml"
178 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
179 jgs 150 x=FunctionOnBoundary(dom).getX()
180 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
181 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Vector.xml",reference)
182 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Tensor_vtk(self):
183     reference="hex_2D_o1_boundary_t.xml"
184 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
185 jgs 150 x=FunctionOnBoundary(dom).getX()
186 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
187 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference)
188 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
189     reference="hex_2D_o1_f_boundary_s.xml"
190 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
191 jgs 150 x=FunctionOnBoundary(dom).getX()
192 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
193 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
194 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
195     reference="hex_2D_o1_f_boundary_v.xml"
196 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
197 jgs 150 x=FunctionOnBoundary(dom).getX()
198 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
199 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
200 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
201     reference="hex_2D_o1_f_boundary_t.xml"
202 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
203 jgs 150 x=FunctionOnBoundary(dom).getX()
204 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
205 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
206 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self):
207     reference="hex_2D_o1_contact_s.xml"
208 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
209 jgs 150 x=FunctionOnContactZero(dom).getX()
210 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",data=x[0])
211 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Scalar.xml",reference)
212 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Vector_vtk(self):
213     reference="hex_2D_o1_contact_v.xml"
214 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
215 jgs 150 x=FunctionOnContactZero(dom).getX()
216 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
217 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Vector.xml",reference)
218 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactZero_Tensor_vtk(self):
219     reference="hex_2D_o1_contact_t.xml"
220 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
221 jgs 150 x=FunctionOnContactZero(dom).getX()
222 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
223 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference)
224 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
225     reference="hex_2D_o1_contact_s.xml"
226 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
227 jgs 150 x=FunctionOnContactZero(dom).getX()
228 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
229 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
230 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
231     reference="hex_2D_o1_contact_v.xml"
232 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
233 jgs 150 x=FunctionOnContactZero(dom).getX()
234 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
235 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
236 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
237     reference="hex_2D_o1_contact_t.xml"
238 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
239 jgs 150 x=FunctionOnContactZero(dom).getX()
240 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
241 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
242 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self):
243     reference="hex_2D_o1_contact_s.xml"
244 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
245 jgs 150 x=FunctionOnContactOne(dom).getX()
246 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",data=x[0])
247 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Scalar.xml",reference)
248 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Vector_vtk(self):
249     reference="hex_2D_o1_contact_v.xml"
250 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
251 jgs 150 x=FunctionOnContactOne(dom).getX()
252 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
253 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Vector.xml",reference)
254 jgs 150 def test_hex_contact_2D_order1_FunctionOnContactOne_Tensor_vtk(self):
255     reference="hex_2D_o1_contact_t.xml"
256 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
257 jgs 150 x=FunctionOnContactOne(dom).getX()
258 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
259 jgs 153 self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference)
260 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
261     reference="hex_2D_o1_contact_s.xml"
262 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
263 jgs 150 x=FunctionOnContactOne(dom).getX()
264 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
265 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
266 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
267     reference="hex_2D_o1_contact_v.xml"
268 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
269 jgs 150 x=FunctionOnContactOne(dom).getX()
270 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
271 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
272 jgs 150 def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
273     reference="hex_2D_o1_contact_t.xml"
274 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
275 jgs 150 x=FunctionOnContactOne(dom).getX()
276 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
277 jgs 153 self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
278 jgs 150 # ======================================================================================================================
279     def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self):
280     reference="hex_2D_o2_node_s.xml"
281 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
282 jgs 150 x=ContinuousFunction(dom).getX()
283 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Scalar.xml",data=x[0])
284 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Scalar.xml",reference)
285 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Vector_vtk(self):
286     reference="hex_2D_o2_node_v.xml"
287 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
288 jgs 150 x=ContinuousFunction(dom).getX()
289 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.])
290 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Vector.xml",reference)
291 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Tensor_vtk(self):
292     reference="hex_2D_o2_node_t.xml"
293 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
294 jgs 150 x=ContinuousFunction(dom).getX()
295 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
296 jgs 153 self.check_vtk("hex_contact_2D_order2_ContinuousFunction_Tensor.xml",reference)
297 jgs 150 def test_hex_contact_2D_order2_Solution_Scalar_vtk(self):
298     reference="hex_2D_o2_node_s.xml"
299 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
300 jgs 150 x=Solution(dom).getX()
301 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Scalar.xml",data=x[0])
302 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Scalar.xml",reference)
303 jgs 150 def test_hex_contact_2D_order2_Solution_Vector_vtk(self):
304     reference="hex_2D_o2_node_v.xml"
305 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
306 jgs 150 x=Solution(dom).getX()
307 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Vector.xml",data=x[0]*[1.,2.])
308 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Vector.xml",reference)
309 jgs 150 def test_hex_contact_2D_order2_Solution_Tensor_vtk(self):
310     reference="hex_2D_o2_node_t.xml"
311 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
312 jgs 150 x=Solution(dom).getX()
313 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
314 jgs 153 self.check_vtk("hex_contact_2D_order2_Solution_Tensor.xml",reference)
315 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Scalar_vtk(self):
316     reference="hex_2D_o1_node_s.xml"
317 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
318 jgs 150 x=ReducedSolution(dom).getX()
319 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Scalar.xml",data=x[0])
320 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Scalar.xml",reference)
321 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Vector_vtk(self):
322     reference="hex_2D_o1_node_v.xml"
323 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
324 jgs 150 x=ReducedSolution(dom).getX()
325 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Vector.xml",data=x[0]*[1.,2.])
326 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Vector.xml",reference)
327 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Tensor_vtk(self):
328     reference="hex_2D_o1_node_t.xml"
329 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
330 jgs 150 x=ReducedSolution(dom).getX()
331 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
332 jgs 153 self.check_vtk("hex_contact_2D_order2_ReducedSolution_Tensor.xml",reference)
333 jgs 150 def test_hex_contact_2D_order2_Function_Scalar_vtk(self):
334     reference="hex_2D_o2_cell_s.xml"
335 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
336 jgs 150 x=Function(dom).getX()
337 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Scalar.xml",data=x[0])
338 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Scalar.xml",reference)
339 jgs 150 def test_hex_contact_2D_order2_Function_Vector_vtk(self):
340     reference="hex_2D_o2_cell_v.xml"
341 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
342 jgs 150 x=Function(dom).getX()
343 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Vector.xml",data=x[0]*[1.,2.])
344 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Vector.xml",reference)
345 jgs 150 def test_hex_contact_2D_order2_Function_Tensor_vtk(self):
346     reference="hex_2D_o2_cell_t.xml"
347 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
348 jgs 150 x=Function(dom).getX()
349 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
350 jgs 153 self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference)
351 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self):
352     reference="hex_2D_o2_boundary_s.xml"
353 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
354 jgs 150 x=FunctionOnBoundary(dom).getX()
355 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",data=x[0])
356 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Scalar.xml",reference)
357 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Vector_vtk(self):
358     reference="hex_2D_o2_boundary_v.xml"
359 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
360 jgs 150 x=FunctionOnBoundary(dom).getX()
361 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
362 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Vector.xml",reference)
363 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Tensor_vtk(self):
364     reference="hex_2D_o2_boundary_t.xml"
365 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
366 jgs 150 x=FunctionOnBoundary(dom).getX()
367 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
368 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference)
369 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
370     reference="hex_2D_o2_f_boundary_s.xml"
371 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
372 jgs 150 x=FunctionOnBoundary(dom).getX()
373 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
374 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
375 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
376     reference="hex_2D_o2_f_boundary_v.xml"
377 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
378 jgs 150 x=FunctionOnBoundary(dom).getX()
379 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
380 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
381 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
382     reference="hex_2D_o2_f_boundary_t.xml"
383 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
384 jgs 150 x=FunctionOnBoundary(dom).getX()
385 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
386 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
387 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self):
388     reference="hex_2D_o2_contact_s.xml"
389 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
390 jgs 150 x=FunctionOnContactZero(dom).getX()
391 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",data=x[0])
392 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Scalar.xml",reference)
393 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Vector_vtk(self):
394     reference="hex_2D_o2_contact_v.xml"
395 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
396 jgs 150 x=FunctionOnContactZero(dom).getX()
397 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
398 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Vector.xml",reference)
399 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactZero_Tensor_vtk(self):
400     reference="hex_2D_o2_contact_t.xml"
401 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
402 jgs 150 x=FunctionOnContactZero(dom).getX()
403 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
404 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference)
405 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
406     reference="hex_2D_o2_contact_s.xml"
407 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
408 jgs 150 x=FunctionOnContactZero(dom).getX()
409 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
410 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference)
411 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector_vtk(self):
412     reference="hex_2D_o2_contact_v.xml"
413 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
414 jgs 150 x=FunctionOnContactZero(dom).getX()
415 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
416 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Vector.xml",reference)
417 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self):
418     reference="hex_2D_o2_contact_t.xml"
419 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
420 jgs 150 x=FunctionOnContactZero(dom).getX()
421 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
422 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
423 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self):
424     reference="hex_2D_o2_contact_s.xml"
425 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
426 jgs 150 x=FunctionOnContactOne(dom).getX()
427 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",data=x[0])
428 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Scalar.xml",reference)
429 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Vector_vtk(self):
430     reference="hex_2D_o2_contact_v.xml"
431 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
432 jgs 150 x=FunctionOnContactOne(dom).getX()
433 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
434 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Vector.xml",reference)
435 jgs 150 def test_hex_contact_2D_order2_FunctionOnContactOne_Tensor_vtk(self):
436     reference="hex_2D_o2_contact_t.xml"
437 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
438 jgs 150 x=FunctionOnContactOne(dom).getX()
439 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
440 jgs 153 self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference)
441 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self):
442     reference="hex_2D_o2_contact_s.xml"
443 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
444 jgs 150 x=FunctionOnContactOne(dom).getX()
445 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
446 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference)
447 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector_vtk(self):
448     reference="hex_2D_o2_contact_v.xml"
449 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
450 jgs 150 x=FunctionOnContactOne(dom).getX()
451 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
452 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Vector.xml",reference)
453 jgs 150 def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self):
454     reference="hex_2D_o2_contact_t.xml"
455 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
456 jgs 150 x=FunctionOnContactOne(dom).getX()
457 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
458 jgs 153 self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
459 jgs 150
460 jgs 153
461 jgs 150 # ======================================================================================================================
462     def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self):
463     reference="hex_3D_o1_node_s.xml"
464 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
465 jgs 150 x=ContinuousFunction(dom).getX()
466 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Scalar.xml",data=x[0])
467 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Scalar.xml",reference)
468 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Vector_vtk(self):
469     reference="hex_3D_o1_node_v.xml"
470 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
471 jgs 150 x=ContinuousFunction(dom).getX()
472 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.])
473 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Vector.xml",reference)
474 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Tensor_vtk(self):
475     reference="hex_3D_o1_node_t.xml"
476 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
477 jgs 150 x=ContinuousFunction(dom).getX()
478 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
479 jgs 153 self.check_vtk("hex_contact_3D_order1_ContinuousFunction_Tensor.xml",reference)
480 jgs 150 def test_hex_contact_3D_order1_Solution_Scalar_vtk(self):
481     reference="hex_3D_o1_node_s.xml"
482 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
483 jgs 150 x=Solution(dom).getX()
484 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Scalar.xml",data=x[0])
485 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Scalar.xml",reference)
486 jgs 150 def test_hex_contact_3D_order1_Solution_Vector_vtk(self):
487     reference="hex_3D_o1_node_v.xml"
488 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
489 jgs 150 x=Solution(dom).getX()
490 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Vector.xml",data=x[0]*[1.,2.,3.])
491 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Vector.xml",reference)
492 jgs 150 def test_hex_contact_3D_order1_Solution_Tensor_vtk(self):
493     reference="hex_3D_o1_node_t.xml"
494 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
495 jgs 150 x=Solution(dom).getX()
496 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
497 jgs 153 self.check_vtk("hex_contact_3D_order1_Solution_Tensor.xml",reference)
498 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Scalar_vtk(self):
499     reference="hex_3D_o1_node_s.xml"
500 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
501 jgs 150 x=ReducedSolution(dom).getX()
502 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Scalar.xml",data=x[0])
503 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Scalar.xml",reference)
504 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Vector_vtk(self):
505     reference="hex_3D_o1_node_v.xml"
506 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
507 jgs 150 x=ReducedSolution(dom).getX()
508 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.])
509 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Vector.xml",reference)
510 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Tensor_vtk(self):
511     reference="hex_3D_o1_node_t.xml"
512 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
513 jgs 150 x=ReducedSolution(dom).getX()
514 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
515 jgs 153 self.check_vtk("hex_contact_3D_order1_ReducedSolution_Tensor.xml",reference)
516 jgs 150 def test_hex_contact_3D_order1_Function_Scalar_vtk(self):
517     reference="hex_3D_o1_cell_s.xml"
518 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
519 jgs 150 x=Function(dom).getX()
520 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Scalar.xml",data=x[0])
521 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Scalar.xml",reference)
522 jgs 150 def test_hex_contact_3D_order1_Function_Vector_vtk(self):
523     reference="hex_3D_o1_cell_v.xml"
524 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
525 jgs 150 x=Function(dom).getX()
526 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Vector.xml",data=x[0]*[1.,2.,3.])
527 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Vector.xml",reference)
528 jgs 150 def test_hex_contact_3D_order1_Function_Tensor_vtk(self):
529     reference="hex_3D_o1_cell_t.xml"
530 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
531 jgs 150 x=Function(dom).getX()
532 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
533 jgs 153 self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference)
534 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self):
535     reference="hex_3D_o1_boundary_s.xml"
536 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
537 jgs 150 x=FunctionOnBoundary(dom).getX()
538 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",data=x[0])
539 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Scalar.xml",reference)
540 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Vector_vtk(self):
541     reference="hex_3D_o1_boundary_v.xml"
542 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
543 jgs 150 x=FunctionOnBoundary(dom).getX()
544 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
545 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Vector.xml",reference)
546 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Tensor_vtk(self):
547     reference="hex_3D_o1_boundary_t.xml"
548 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
549 jgs 150 x=FunctionOnBoundary(dom).getX()
550 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
551 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference)
552 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
553     reference="hex_3D_o1_f_boundary_s.xml"
554 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
555 jgs 150 x=FunctionOnBoundary(dom).getX()
556 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
557 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar.xml",reference)
558 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector_vtk(self):
559     reference="hex_3D_o1_f_boundary_v.xml"
560 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
561 jgs 150 x=FunctionOnBoundary(dom).getX()
562 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
563 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Vector.xml",reference)
564 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor_vtk(self):
565     reference="hex_3D_o1_f_boundary_t.xml"
566 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
567 jgs 150 x=FunctionOnBoundary(dom).getX()
568 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
569 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
570 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self):
571     reference="hex_3D_o1_contact_s.xml"
572 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
573 jgs 150 x=FunctionOnContactZero(dom).getX()
574 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",data=x[0])
575 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Scalar.xml",reference)
576 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Vector_vtk(self):
577     reference="hex_3D_o1_contact_v.xml"
578 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
579 jgs 150 x=FunctionOnContactZero(dom).getX()
580 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
581 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Vector.xml",reference)
582 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactZero_Tensor_vtk(self):
583     reference="hex_3D_o1_contact_t.xml"
584 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
585 jgs 150 x=FunctionOnContactZero(dom).getX()
586 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
587 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference)
588 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
589     reference="hex_3D_o1_contact_s.xml"
590 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
591 jgs 150 x=FunctionOnContactZero(dom).getX()
592 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
593 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar.xml",reference)
594 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector_vtk(self):
595     reference="hex_3D_o1_contact_v.xml"
596 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
597 jgs 150 x=FunctionOnContactZero(dom).getX()
598 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
599 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Vector.xml",reference)
600 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor_vtk(self):
601     reference="hex_3D_o1_contact_t.xml"
602 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
603 jgs 150 x=FunctionOnContactZero(dom).getX()
604 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
605 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
606 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self):
607     reference="hex_3D_o1_contact_s.xml"
608 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
609 jgs 150 x=FunctionOnContactOne(dom).getX()
610 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",data=x[0])
611 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Scalar.xml",reference)
612 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Vector_vtk(self):
613     reference="hex_3D_o1_contact_v.xml"
614 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
615 jgs 150 x=FunctionOnContactOne(dom).getX()
616 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
617 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Vector.xml",reference)
618 jgs 150 def test_hex_contact_3D_order1_FunctionOnContactOne_Tensor_vtk(self):
619     reference="hex_3D_o1_contact_t.xml"
620 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
621 jgs 150 x=FunctionOnContactOne(dom).getX()
622 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
623 jgs 153 self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference)
624 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
625     reference="hex_3D_o1_contact_s.xml"
626 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
627 jgs 150 x=FunctionOnContactOne(dom).getX()
628 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
629 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar.xml",reference)
630 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector_vtk(self):
631     reference="hex_3D_o1_contact_v.xml"
632 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
633 jgs 150 x=FunctionOnContactOne(dom).getX()
634 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
635 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Vector.xml",reference)
636 jgs 150 def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor_vtk(self):
637     reference="hex_3D_o1_contact_t.xml"
638 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
639 jgs 150 x=FunctionOnContactOne(dom).getX()
640 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
641 jgs 153 self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
642 jgs 150 # ======================================================================================================================
643     def test_hex_contact_3D_order2_ContinuousFunction_Scalar_vtk(self):
644     reference="hex_3D_o2_node_s.xml"
645 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
646 jgs 150 x=ContinuousFunction(dom).getX()
647 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Scalar.xml",data=x[0])
648 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Scalar.xml",reference)
649 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Vector_vtk(self):
650     reference="hex_3D_o2_node_v.xml"
651 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
652 jgs 150 x=ContinuousFunction(dom).getX()
653 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Vector.xml",data=x[0]*[1.,2.,3.])
654 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Vector.xml",reference)
655 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Tensor_vtk(self):
656     reference="hex_3D_o2_node_t.xml"
657 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
658 jgs 150 x=ContinuousFunction(dom).getX()
659 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
660 jgs 153 self.check_vtk("hex_contact_3D_order2_ContinuousFunction_Tensor.xml",reference)
661 jgs 150 def test_hex_contact_3D_order2_Solution_Scalar_vtk(self):
662     reference="hex_3D_o2_node_s.xml"
663 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
664 jgs 150 x=Solution(dom).getX()
665 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Scalar.xml",data=x[0])
666 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Scalar.xml",reference)
667 jgs 150 def test_hex_contact_3D_order2_Solution_Vector_vtk(self):
668     reference="hex_3D_o2_node_v.xml"
669 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
670 jgs 150 x=Solution(dom).getX()
671 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Vector.xml",data=x[0]*[1.,2.,3.])
672 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Vector.xml",reference)
673 jgs 150 def test_hex_contact_3D_order2_Solution_Tensor_vtk(self):
674     reference="hex_3D_o2_node_t.xml"
675 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
676 jgs 150 x=Solution(dom).getX()
677 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
678 jgs 153 self.check_vtk("hex_contact_3D_order2_Solution_Tensor.xml",reference)
679 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Scalar_vtk(self):
680     reference="hex_3D_o1_node_s.xml"
681 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
682 jgs 150 x=ReducedSolution(dom).getX()
683 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Scalar.xml",data=x[0])
684 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Scalar.xml",reference)
685 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Vector_vtk(self):
686     reference="hex_3D_o1_node_v.xml"
687 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
688 jgs 150 x=ReducedSolution(dom).getX()
689 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Vector.xml",data=x[0]*[1.,2.,3.])
690 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Vector.xml",reference)
691 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Tensor_vtk(self):
692     reference="hex_3D_o1_node_t.xml"
693 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
694 jgs 150 x=ReducedSolution(dom).getX()
695 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
696 jgs 153 self.check_vtk("hex_contact_3D_order2_ReducedSolution_Tensor.xml",reference)
697 jgs 150 def test_hex_contact_3D_order2_Function_Scalar_vtk(self):
698     reference="hex_3D_o2_cell_s.xml"
699 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
700 jgs 150 x=Function(dom).getX()
701 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Scalar.xml",data=x[0])
702 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Scalar.xml",reference)
703 jgs 150 def test_hex_contact_3D_order2_Function_Vector_vtk(self):
704     reference="hex_3D_o2_cell_v.xml"
705 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
706 jgs 150 x=Function(dom).getX()
707 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Vector.xml",data=x[0]*[1.,2.,3.])
708 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Vector.xml",reference)
709 jgs 150 def test_hex_contact_3D_order2_Function_Tensor_vtk(self):
710     reference="hex_3D_o2_cell_t.xml"
711 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
712 jgs 150 x=Function(dom).getX()
713 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
714 jgs 153 self.check_vtk("hex_contact_3D_order2_Function_Tensor.xml",reference)
715 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_vtk(self):
716     reference="hex_3D_o2_boundary_s.xml"
717 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
718 jgs 150 x=FunctionOnBoundary(dom).getX()
719 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",data=x[0])
720 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Scalar.xml",reference)
721 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Vector_vtk(self):
722     reference="hex_3D_o2_boundary_v.xml"
723 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
724 jgs 150 x=FunctionOnBoundary(dom).getX()
725 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
726 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Vector.xml",reference)
727 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Tensor_vtk(self):
728     reference="hex_3D_o2_boundary_t.xml"
729 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
730 jgs 150 x=FunctionOnBoundary(dom).getX()
731 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
732 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",reference)
733 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
734     reference="hex_3D_o2_f_boundary_s.xml"
735 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
736 jgs 150 x=FunctionOnBoundary(dom).getX()
737 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",data=x[0])
738 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar.xml",reference)
739 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector_vtk(self):
740     reference="hex_3D_o2_f_boundary_v.xml"
741 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
742 jgs 150 x=FunctionOnBoundary(dom).getX()
743 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
744 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Vector.xml",reference)
745 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor_vtk(self):
746     reference="hex_3D_o2_f_boundary_t.xml"
747 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
748 jgs 150 x=FunctionOnBoundary(dom).getX()
749 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
750 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
751 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Scalar_vtk(self):
752     reference="hex_3D_o2_contact_s.xml"
753 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
754 jgs 150 x=FunctionOnContactZero(dom).getX()
755 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",data=x[0])
756 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Scalar.xml",reference)
757 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Vector_vtk(self):
758     reference="hex_3D_o2_contact_v.xml"
759 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
760 jgs 150 x=FunctionOnContactZero(dom).getX()
761 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
762 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Vector.xml",reference)
763 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactZero_Tensor_vtk(self):
764     reference="hex_3D_o2_contact_t.xml"
765 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
766 jgs 150 x=FunctionOnContactZero(dom).getX()
767 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
768 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",reference)
769 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
770     reference="hex_3D_o2_contact_s.xml"
771 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
772 jgs 150 x=FunctionOnContactZero(dom).getX()
773 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar.xml",data=x[0])
774 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar.xml",reference)
775 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector_vtk(self):
776     reference="hex_3D_o2_contact_v.xml"
777 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
778 jgs 150 x=FunctionOnContactZero(dom).getX()
779 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
780 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Vector.xml",reference)
781 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor_vtk(self):
782     reference="hex_3D_o2_contact_t.xml"
783 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
784 jgs 150 x=FunctionOnContactZero(dom).getX()
785 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
786 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
787 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactOne_Scalar_vtk(self):
788     reference="hex_3D_o2_contact_s.xml"
789 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
790 jgs 150 x=FunctionOnContactOne(dom).getX()
791 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Scalar.xml",data=x[0])
792 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Scalar.xml",reference)
793 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactOne_Vector_vtk(self):
794     reference="hex_3D_o2_contact_v.xml"
795 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
796 jgs 150 x=FunctionOnContactOne(dom).getX()
797 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
798 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Vector.xml",reference)
799 jgs 150 def test_hex_contact_3D_order2_FunctionOnContactOne_Tensor_vtk(self):
800     reference="hex_3D_o2_contact_t.xml"
801 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
802 jgs 150 x=FunctionOnContactOne(dom).getX()
803 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
804 jgs 153 self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",reference)
805 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self):
806     reference="hex_3D_o2_contact_s.xml"
807 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
808 jgs 150 x=FunctionOnContactOne(dom).getX()
809 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar.xml",data=x[0])
810 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar.xml",reference)
811 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector_vtk(self):
812     reference="hex_3D_o2_contact_v.xml"
813 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
814 jgs 150 x=FunctionOnContactOne(dom).getX()
815 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
816 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Vector.xml",reference)
817 jgs 150 def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor_vtk(self):
818     reference="hex_3D_o2_contact_t.xml"
819 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
820 jgs 150 x=FunctionOnContactOne(dom).getX()
821 gross 709 saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
822 jgs 153 self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
823 jgs 150
824     class Test_DXFiles(Test_VisualizationInterface):
825     # ======================================================================================================================
826 jgs 153 def test_hex_2D_order2_dx(self):
827     reference="hex_2D_o1.dx"
828 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
829     saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2.dx",domain=dom)
830 jgs 153 self.check_dx("hex_2D_order2.dx",reference)
831    
832     def test_hex_2D_order2_AllPoints_Scalar_dx(self):
833     reference="hex_2D_o1_node_3xs.dx"
834 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
835 jgs 153 x=Solution(dom).getX()
836     x_r=ReducedSolution(dom).getX()
837     x_n=ContinuousFunction(dom).getX()
838 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_AllPoints_Scalar.dx",data_r=x_r[0],data_n=x_n[0],data=x[0])
839 jgs 153 self.check_dx("hex_2D_order2_AllPoints_Scalar.dx",reference)
840     def test_hex_2D_order2_02Points_Scalar_dx(self):
841     reference="hex_2D_o1_node_2xs.dx"
842 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
843 jgs 153 x=Solution(dom).getX()
844     x_n=ContinuousFunction(dom).getX()
845 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_O2Points_Scalar.dx",data_n=x_n[0],data=x[0])
846 jgs 153 self.check_dx("hex_2D_order2_O2Points_Scalar.dx",reference)
847     def test_hex_2D_order2_2Cells_Scalar_dx(self):
848 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
849 jgs 153 x=Function(dom).getX()
850     x_b=FunctionOnBoundary(dom).getX()
851     try:
852 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_2Cells_Scalar.dx",data=x[0],data_b=x_b[0])
853 jgs 153 self.fail("non-matching data not detected.")
854     except StandardError:
855     pass
856     def test_hex_2D_order2_BoundrayPoint_Scalar_dx(self):
857 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
858 jgs 153 x=ContinuousFunction(dom).getX()
859     x_b=FunctionOnBoundary(dom).getX()
860     try:
861 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundrayPoint_Scalar.dx",data=x[0],data_b=x_b[0])
862 jgs 153 self.fail("non-matching data not detected.")
863     except StandardError:
864     pass
865     def test_hex_2D_order2_Cells_AllData_dx(self):
866     reference="hex_2D_o1_cell_all.dx"
867 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
868 jgs 153 x=Function(dom).getX()
869 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_Cells_AllData.dx",data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]])
870 jgs 153 self.check_dx("hex_2D_order2_Cells_AllData.dx",reference)
871    
872     def test_hex_2D_order2_CellsPoints_AllData_dx(self):
873     reference="hex_2D_o1_cellnode_all.dx"
874 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
875 jgs 153 x_c=Function(dom).getX()
876     x_p=ContinuousFunction(dom).getX()
877 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_CellsPoints_AllData.dx",data_sp=x_p[0],
878 jgs 153 data_vp=x_p[0]*[1.,2.],
879     data_tp=x_p[0]*[[11.,12.],[21.,22.]],
880     data_sc=x_c[0],
881     data_vc=x_c[0]*[1.,2.],
882     data_tc=x_c[0]*[[11.,12.],[21.,22.]])
883     self.check_dx("hex_2D_order2_CellsPoints_AllData.dx",reference)
884     # ======================================================================================================================
885 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Scalar_dx(self):
886     reference="hex_2D_o1_node_s.dx"
887 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
888 jgs 150 x=ContinuousFunction(dom).getX()
889 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Scalar.dx",data=x[0])
890 jgs 153 self.check_dx("hex_contact_2D_order1_ContinuousFunction_Scalar.dx",reference)
891 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Vector_dx(self):
892     reference="hex_2D_o1_node_v.dx"
893 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
894 jgs 150 x=ContinuousFunction(dom).getX()
895 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Vector.dx",data=x[0]*[1.,2.])
896 jgs 153 self.check_dx("hex_contact_2D_order1_ContinuousFunction_Vector.dx",reference)
897 jgs 150 def test_hex_contact_2D_order1_ContinuousFunction_Tensor_dx(self):
898     reference="hex_2D_o1_node_t.dx"
899 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
900 jgs 150 x=ContinuousFunction(dom).getX()
901 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ContinuousFunction_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
902 jgs 153 self.check_dx("hex_contact_2D_order1_ContinuousFunction_Tensor.dx",reference)
903 jgs 150 def test_hex_contact_2D_order1_Solution_Scalar_dx(self):
904     reference="hex_2D_o1_node_s.dx"
905 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
906 jgs 150 x=Solution(dom).getX()
907 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Scalar.dx",data=x[0])
908 jgs 153 self.check_dx("hex_contact_2D_order1_Solution_Scalar.dx",reference)
909 jgs 150 def test_hex_contact_2D_order1_Solution_Vector_dx(self):
910     reference="hex_2D_o1_node_v.dx"
911 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
912 jgs 150 x=Solution(dom).getX()
913 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Vector.dx",data=x[0]*[1.,2.])
914 jgs 153 self.check_dx("hex_contact_2D_order1_Solution_Vector.dx",reference)
915 jgs 150 def test_hex_contact_2D_order1_Solution_Tensor_dx(self):
916     reference="hex_2D_o1_node_t.dx"
917 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
918 jgs 150 x=Solution(dom).getX()
919 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Solution_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
920 jgs 153 self.check_dx("hex_contact_2D_order1_Solution_Tensor.dx",reference)
921 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Scalar_dx(self):
922     reference="hex_2D_o1_node_s.dx"
923 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
924 jgs 150 x=ReducedSolution(dom).getX()
925 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Scalar.dx",data=x[0])
926 jgs 153 self.check_dx("hex_contact_2D_order1_ReducedSolution_Scalar.dx",reference)
927 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Vector_dx(self):
928     reference="hex_2D_o1_node_v.dx"
929 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
930 jgs 150 x=ReducedSolution(dom).getX()
931 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Vector.dx",data=x[0]*[1.,2.])
932 jgs 153 self.check_dx("hex_contact_2D_order1_ReducedSolution_Vector.dx",reference)
933 jgs 150 def test_hex_contact_2D_order1_ReducedSolution_Tensor_dx(self):
934     reference="hex_2D_o1_node_t.dx"
935 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
936 jgs 150 x=ReducedSolution(dom).getX()
937 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedSolution_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
938 jgs 153 self.check_dx("hex_contact_2D_order1_ReducedSolution_Tensor.dx",reference)
939 jgs 150 def test_hex_contact_2D_order1_Function_Scalar_dx(self):
940     reference="hex_2D_o1_cell_s.dx"
941 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
942 jgs 150 x=Function(dom).getX()
943 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Scalar.dx",data=x[0])
944 jgs 153 self.check_dx("hex_contact_2D_order1_Function_Scalar.dx",reference)
945 jgs 150 def test_hex_contact_2D_order1_Function_Vector_dx(self):
946     reference="hex_2D_o1_cell_v.dx"
947 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
948 jgs 150 x=Function(dom).getX()
949 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Vector.dx",data=x[0]*[1.,2.])
950 jgs 153 self.check_dx("hex_contact_2D_order1_Function_Vector.dx",reference)
951 jgs 150 def test_hex_contact_2D_order1_Function_Tensor_dx(self):
952     reference="hex_2D_o1_cell_t.dx"
953 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
954 jgs 150 x=Function(dom).getX()
955 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
956 jgs 153 self.check_dx("hex_contact_2D_order1_Function_Tensor.dx",reference)
957 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_dx(self):
958     reference="hex_2D_o1_boundary_s.dx"
959 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
960 jgs 150 x=FunctionOnBoundary(dom).getX()
961 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Scalar.dx",data=x[0])
962 jgs 153 self.check_dx("hex_contact_2D_order1_FunctionOnBoundary_Scalar.dx",reference)
963 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Vector_dx(self):
964     reference="hex_2D_o1_boundary_v.dx"
965 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
966 jgs 150 x=FunctionOnBoundary(dom).getX()
967 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.])
968 jgs 153 self.check_dx("hex_contact_2D_order1_FunctionOnBoundary_Vector.dx",reference)
969 jgs 150 def test_hex_contact_2D_order1_FunctionOnBoundary_Tensor_dx(self):
970     reference="hex_2D_o1_boundary_t.dx"
971 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
972 jgs 150 x=FunctionOnBoundary(dom).getX()
973 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
974 jgs 153 self.check_dx("hex_contact_2D_order1_FunctionOnBoundary_Tensor.dx",reference)
975 jgs 150 # ======================================================================================================================
976     def test_hex_contact_2D_order2_ContinuousFunction_Scalar_dx(self):
977     reference="hex_2D_o2_node_s.dx"
978 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
979 jgs 150 x=ContinuousFunction(dom).getX()
980 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Scalar.dx",data=x[0])
981 jgs 153 self.check_dx("hex_contact_2D_order2_ContinuousFunction_Scalar.dx",reference)
982 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Vector_dx(self):
983     reference="hex_2D_o2_node_v.dx"
984 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
985 jgs 150 x=ContinuousFunction(dom).getX()
986 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Vector.dx",data=x[0]*[1.,2.])
987 jgs 153 self.check_dx("hex_contact_2D_order2_ContinuousFunction_Vector.dx",reference)
988 jgs 150 def test_hex_contact_2D_order2_ContinuousFunction_Tensor_dx(self):
989     reference="hex_2D_o2_node_t.dx"
990 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
991 jgs 150 x=ContinuousFunction(dom).getX()
992 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ContinuousFunction_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
993 jgs 153 self.check_dx("hex_contact_2D_order2_ContinuousFunction_Tensor.dx",reference)
994 jgs 150 def test_hex_contact_2D_order2_Solution_Scalar_dx(self):
995     reference="hex_2D_o2_node_s.dx"
996 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
997 jgs 150 x=Solution(dom).getX()
998 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Scalar.dx",data=x[0])
999 jgs 153 self.check_dx("hex_contact_2D_order2_Solution_Scalar.dx",reference)
1000 jgs 150 def test_hex_contact_2D_order2_Solution_Vector_dx(self):
1001     reference="hex_2D_o2_node_v.dx"
1002 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1003 jgs 150 x=Solution(dom).getX()
1004 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Vector.dx",data=x[0]*[1.,2.])
1005 jgs 153 self.check_dx("hex_contact_2D_order2_Solution_Vector.dx",reference)
1006 jgs 150 def test_hex_contact_2D_order2_Solution_Tensor_dx(self):
1007     reference="hex_2D_o2_node_t.dx"
1008 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1009 jgs 150 x=Solution(dom).getX()
1010 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Solution_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1011 jgs 153 self.check_dx("hex_contact_2D_order2_Solution_Tensor.dx",reference)
1012 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Scalar_dx(self):
1013     reference="hex_2D_o1_node_s.dx"
1014 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1015 jgs 150 x=ReducedSolution(dom).getX()
1016 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Scalar.dx",data=x[0])
1017 jgs 153 self.check_dx("hex_contact_2D_order2_ReducedSolution_Scalar.dx",reference)
1018 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Vector_dx(self):
1019     reference="hex_2D_o1_node_v.dx"
1020 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1021 jgs 150 x=ReducedSolution(dom).getX()
1022 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Vector.dx",data=x[0]*[1.,2.])
1023 jgs 153 self.check_dx("hex_contact_2D_order2_ReducedSolution_Vector.dx",reference)
1024 jgs 150 def test_hex_contact_2D_order2_ReducedSolution_Tensor_dx(self):
1025     reference="hex_2D_o1_node_t.dx"
1026 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1027 jgs 150 x=ReducedSolution(dom).getX()
1028 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedSolution_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1029 jgs 153 self.check_dx("hex_contact_2D_order2_ReducedSolution_Tensor.dx",reference)
1030 jgs 150 def test_hex_contact_2D_order2_Function_Scalar_dx(self):
1031     reference="hex_2D_o2_cell_s.dx"
1032 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1033 jgs 150 x=Function(dom).getX()
1034 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Scalar.dx",data=x[0])
1035 jgs 153 self.check_dx("hex_contact_2D_order2_Function_Scalar.dx",reference)
1036 jgs 150 def test_hex_contact_2D_order2_Function_Vector_dx(self):
1037     reference="hex_2D_o2_cell_v.dx"
1038 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1039 jgs 150 x=Function(dom).getX()
1040 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Vector.dx",data=x[0]*[1.,2.])
1041 jgs 153 self.check_dx("hex_contact_2D_order2_Function_Vector.dx",reference)
1042 jgs 150 def test_hex_contact_2D_order2_Function_Tensor_dx(self):
1043     reference="hex_2D_o2_cell_t.dx"
1044 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1045 jgs 150 x=Function(dom).getX()
1046 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1047 jgs 153 self.check_dx("hex_contact_2D_order2_Function_Tensor.dx",reference)
1048 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_dx(self):
1049     reference="hex_2D_o2_boundary_s.dx"
1050 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1051 jgs 150 x=FunctionOnBoundary(dom).getX()
1052 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Scalar.dx",data=x[0])
1053 jgs 153 self.check_dx("hex_contact_2D_order2_FunctionOnBoundary_Scalar.dx",reference)
1054 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Vector_dx(self):
1055     reference="hex_2D_o2_boundary_v.dx"
1056 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1057 jgs 150 x=FunctionOnBoundary(dom).getX()
1058 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.])
1059 jgs 153 self.check_dx("hex_contact_2D_order2_FunctionOnBoundary_Vector.dx",reference)
1060 jgs 150 def test_hex_contact_2D_order2_FunctionOnBoundary_Tensor_dx(self):
1061     reference="hex_2D_o2_boundary_t.dx"
1062 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1063 jgs 150 x=FunctionOnBoundary(dom).getX()
1064 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1065 jgs 153 self.check_dx("hex_contact_2D_order2_FunctionOnBoundary_Tensor.dx",reference)
1066 jgs 150 # ======================================================================================================================
1067     def test_hex_contact_3D_order1_ContinuousFunction_Scalar_dx(self):
1068     reference="hex_3D_o1_node_s.dx"
1069 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1070 jgs 150 x=ContinuousFunction(dom).getX()
1071 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Scalar.dx",data=x[0])
1072 jgs 153 self.check_dx("hex_contact_3D_order1_ContinuousFunction_Scalar.dx",reference)
1073 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Vector_dx(self):
1074     reference="hex_3D_o1_node_v.dx"
1075 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1076 jgs 150 x=ContinuousFunction(dom).getX()
1077 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Vector.dx",data=x[0]*[1.,2.,3.])
1078 jgs 153 self.check_dx("hex_contact_3D_order1_ContinuousFunction_Vector.dx",reference)
1079 jgs 150 def test_hex_contact_3D_order1_ContinuousFunction_Tensor_dx(self):
1080     reference="hex_3D_o1_node_t.dx"
1081 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1082 jgs 150 x=ContinuousFunction(dom).getX()
1083 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ContinuousFunction_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1084 jgs 153 self.check_dx("hex_contact_3D_order1_ContinuousFunction_Tensor.dx",reference)
1085 jgs 150 def test_hex_contact_3D_order1_Solution_Scalar_dx(self):
1086     reference="hex_3D_o1_node_s.dx"
1087 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1088 jgs 150 x=Solution(dom).getX()
1089 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Scalar.dx",data=x[0])
1090 jgs 153 self.check_dx("hex_contact_3D_order1_Solution_Scalar.dx",reference)
1091 jgs 150 def test_hex_contact_3D_order1_Solution_Vector_dx(self):
1092     reference="hex_3D_o1_node_v.dx"
1093 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1094 jgs 150 x=Solution(dom).getX()
1095 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Vector.dx",data=x[0]*[1.,2.,3.])
1096 jgs 153 self.check_dx("hex_contact_3D_order1_Solution_Vector.dx",reference)
1097 jgs 150 def test_hex_contact_3D_order1_Solution_Tensor_dx(self):
1098     reference="hex_3D_o1_node_t.dx"
1099 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1100 jgs 150 x=Solution(dom).getX()
1101 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Solution_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1102 jgs 153 self.check_dx("hex_contact_3D_order1_Solution_Tensor.dx",reference)
1103 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Scalar_dx(self):
1104     reference="hex_3D_o1_node_s.dx"
1105 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1106 jgs 150 x=ReducedSolution(dom).getX()
1107 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Scalar.dx",data=x[0])
1108 jgs 153 self.check_dx("hex_contact_3D_order1_ReducedSolution_Scalar.dx",reference)
1109 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Vector_dx(self):
1110     reference="hex_3D_o1_node_v.dx"
1111 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1112 jgs 150 x=ReducedSolution(dom).getX()
1113 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Vector.dx",data=x[0]*[1.,2.,3.])
1114 jgs 153 self.check_dx("hex_contact_3D_order1_ReducedSolution_Vector.dx",reference)
1115 jgs 150 def test_hex_contact_3D_order1_ReducedSolution_Tensor_dx(self):
1116     reference="hex_3D_o1_node_t.dx"
1117 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1118 jgs 150 x=ReducedSolution(dom).getX()
1119 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedSolution_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1120 jgs 153 self.check_dx("hex_contact_3D_order1_ReducedSolution_Tensor.dx",reference)
1121 jgs 150 def test_hex_contact_3D_order1_Function_Scalar_dx(self):
1122     reference="hex_3D_o1_cell_s.dx"
1123 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1124 jgs 150 x=Function(dom).getX()
1125 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Scalar.dx",data=x[0])
1126 jgs 153 self.check_dx("hex_contact_3D_order1_Function_Scalar.dx",reference)
1127 jgs 150 def test_hex_contact_3D_order1_Function_Vector_dx(self):
1128     reference="hex_3D_o1_cell_v.dx"
1129 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1130 jgs 150 x=Function(dom).getX()
1131 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Vector.dx",data=x[0]*[1.,2.,3.])
1132 jgs 153 self.check_dx("hex_contact_3D_order1_Function_Vector.dx",reference)
1133 jgs 150 def test_hex_contact_3D_order1_Function_Tensor_dx(self):
1134     reference="hex_3D_o1_cell_t.dx"
1135 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1136 jgs 150 x=Function(dom).getX()
1137 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1138 jgs 153 self.check_dx("hex_contact_3D_order1_Function_Tensor.dx",reference)
1139 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_dx(self):
1140     reference="hex_3D_o1_boundary_s.dx"
1141 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1142 jgs 150 x=FunctionOnBoundary(dom).getX()
1143 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Scalar.dx",data=x[0])
1144 jgs 153 self.check_dx("hex_contact_3D_order1_FunctionOnBoundary_Scalar.dx",reference)
1145 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Vector_dx(self):
1146     reference="hex_3D_o1_boundary_v.dx"
1147 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1148 jgs 150 x=FunctionOnBoundary(dom).getX()
1149 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.,3.])
1150 jgs 153 self.check_dx("hex_contact_3D_order1_FunctionOnBoundary_Vector.dx",reference)
1151 jgs 150 def test_hex_contact_3D_order1_FunctionOnBoundary_Tensor_dx(self):
1152     reference="hex_3D_o1_boundary_t.dx"
1153 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1154 jgs 150 x=FunctionOnBoundary(dom).getX()
1155 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1156 jgs 153 self.check_dx("hex_contact_3D_order1_FunctionOnBoundary_Tensor.dx",reference)
1157 jgs 150 # ======================================================================================================================
1158     def test_hex_contact_3D_order2_ContinuousFunction_Scalar_dx(self):
1159     reference="hex_3D_o1_node_s.dx"
1160 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1161 jgs 150 x=ContinuousFunction(dom).getX()
1162 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Scalar.dx",data=x[0])
1163 jgs 153 self.check_dx("hex_contact_3D_order2_ContinuousFunction_Scalar.dx",reference)
1164 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Vector_dx(self):
1165     reference="hex_3D_o1_node_v.dx"
1166 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1167 jgs 150 x=ContinuousFunction(dom).getX()
1168 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Vector.dx",data=x[0]*[1.,2.,3.])
1169 jgs 153 self.check_dx("hex_contact_3D_order2_ContinuousFunction_Vector.dx",reference)
1170 jgs 150 def test_hex_contact_3D_order2_ContinuousFunction_Tensor_dx(self):
1171     reference="hex_3D_o1_node_t.dx"
1172 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1173 jgs 150 x=ContinuousFunction(dom).getX()
1174 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ContinuousFunction_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1175 jgs 153 self.check_dx("hex_contact_3D_order2_ContinuousFunction_Tensor.dx",reference)
1176 jgs 150 def test_hex_contact_3D_order2_Solution_Scalar_dx(self):
1177     reference="hex_3D_o1_node_s.dx"
1178 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1179 jgs 150 x=Solution(dom).getX()
1180 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Scalar.dx",data=x[0])
1181 jgs 153 self.check_dx("hex_contact_3D_order2_Solution_Scalar.dx",reference)
1182 jgs 150 def test_hex_contact_3D_order2_Solution_Vector_dx(self):
1183     reference="hex_3D_o1_node_v.dx"
1184 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1185 jgs 150 x=Solution(dom).getX()
1186 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Vector.dx",data=x[0]*[1.,2.,3.])
1187 jgs 153 self.check_dx("hex_contact_3D_order2_Solution_Vector.dx",reference)
1188 jgs 150 def test_hex_contact_3D_order2_Solution_Tensor_dx(self):
1189     reference="hex_3D_o1_node_t.dx"
1190 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1191 jgs 150 x=Solution(dom).getX()
1192 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Solution_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1193 jgs 153 self.check_dx("hex_contact_3D_order2_Solution_Tensor.dx",reference)
1194 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Scalar_dx(self):
1195     reference="hex_3D_o1_node_s.dx"
1196 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1197 jgs 150 x=ReducedSolution(dom).getX()
1198 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Scalar.dx",data=x[0])
1199 jgs 153 self.check_dx("hex_contact_3D_order2_ReducedSolution_Scalar.dx",reference)
1200 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Vector_dx(self):
1201     reference="hex_3D_o1_node_v.dx"
1202 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1203 jgs 150 x=ReducedSolution(dom).getX()
1204 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Vector.dx",data=x[0]*[1.,2.,3.])
1205 jgs 153 self.check_dx("hex_contact_3D_order2_ReducedSolution_Vector.dx",reference)
1206 jgs 150 def test_hex_contact_3D_order2_ReducedSolution_Tensor_dx(self):
1207     reference="hex_3D_o1_node_t.dx"
1208 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1209 jgs 150 x=ReducedSolution(dom).getX()
1210 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedSolution_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1211 jgs 153 self.check_dx("hex_contact_3D_order2_ReducedSolution_Tensor.dx",reference)
1212 jgs 150 def test_hex_contact_3D_order2_Function_Scalar_dx(self):
1213     reference="hex_3D_o1_cell_s.dx"
1214 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1215 jgs 150 x=Function(dom).getX()
1216 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Scalar.dx",data=x[0])
1217 jgs 153 self.check_dx("hex_contact_3D_order2_Function_Scalar.dx",reference)
1218 jgs 150 def test_hex_contact_3D_order2_Function_Vector_dx(self):
1219     reference="hex_3D_o1_cell_v.dx"
1220 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1221 jgs 150 x=Function(dom).getX()
1222 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Vector.dx",data=x[0]*[1.,2.,3.])
1223 jgs 153 self.check_dx("hex_contact_3D_order2_Function_Vector.dx",reference)
1224 jgs 150 def test_hex_contact_3D_order2_Function_Tensor_dx(self):
1225     reference="hex_3D_o1_cell_t.dx"
1226 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1227 jgs 150 x=Function(dom).getX()
1228 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1229 jgs 153 self.check_dx("hex_contact_3D_order2_Function_Tensor.dx",reference)
1230 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_dx(self):
1231     reference="hex_3D_o1_boundary_s.dx"
1232 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1233 jgs 150 x=FunctionOnBoundary(dom).getX()
1234 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Scalar.dx",data=x[0])
1235 jgs 153 self.check_dx("hex_contact_3D_order2_FunctionOnBoundary_Scalar.dx",reference)
1236 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Vector_dx(self):
1237     reference="hex_3D_o1_boundary_v.dx"
1238 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1239 jgs 150 x=FunctionOnBoundary(dom).getX()
1240 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.,3.])
1241 jgs 153 self.check_dx("hex_contact_3D_order2_FunctionOnBoundary_Vector.dx",reference)
1242 jgs 150 def test_hex_contact_3D_order2_FunctionOnBoundary_Tensor_dx(self):
1243     reference="hex_3D_o1_boundary_t.dx"
1244 gross 709 dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1245 jgs 150 x=FunctionOnBoundary(dom).getX()
1246 gross 709 saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1247 jgs 153 self.check_dx("hex_contact_3D_order2_FunctionOnBoundary_Tensor.dx",reference)
1248 jgs 150
1249     if __name__ == '__main__':
1250     suite = unittest.TestSuite()
1251     suite.addTest(unittest.makeSuite(Test_VTKFiles))
1252     suite.addTest(unittest.makeSuite(Test_DXFiles))
1253     s=unittest.TextTestRunner(verbosity=2).run(suite)
1254     if s.wasSuccessful():
1255     sys.exit(0)
1256     else:
1257     sys.exit(1)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26