/[escript]/trunk-mpi-branch/finley/test/python/run_visualization_interface.py
ViewVC logotype

Annotation of /trunk-mpi-branch/finley/test/python/run_visualization_interface.py

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26