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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26