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

Diff of /trunk/finley/test/python/run_visualization_interface.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1064 by gross, Fri Aug 4 01:05:36 2006 UTC revision 1065 by gross, Tue Mar 27 09:04:56 2007 UTC
# Line 76  class Test_VTKFiles(Test_VisualizationIn Line 76  class Test_VTKFiles(Test_VisualizationIn
76          self.fail("non-matching data not detected.")          self.fail("non-matching data not detected.")
77       except StandardError:       except StandardError:
78          pass          pass
79    def test_hex_2D_order2_BoundrayPoint_Scalar_vtk(self):    def test_hex_2D_order2_BoundaryPoint_Scalar_vtk(self):
80       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
81       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
82       x_b=FunctionOnBoundary(dom).getX()       x_b=FunctionOnBoundary(dom).getX()
83       try:       try:
84          saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundrayPoint_Scalar.xml",data=x[0],data_b=x_b[0])          saveVTK(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundaryPoint_Scalar.xml",data=x[0],data_b=x_b[0])
85          self.fail("non-matching data not detected.")          self.fail("non-matching data not detected.")
86       except StandardError:       except StandardError:
87          pass          pass
# Line 177  class Test_VTKFiles(Test_VisualizationIn Line 177  class Test_VTKFiles(Test_VisualizationIn
177       x=Function(dom).getX()       x=Function(dom).getX()
178       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
179       self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_Function_Tensor.xml",reference)
180      def test_hex_contact_2D_order1_ReducedFunction_Scalar_vtk(self):
181         reference="hex_2D_o1_cell_s.xml"
182         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
183         x=ReducedFunction(dom).getX()
184         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Scalar.xml",data=x[0])
185         self.check_vtk("hex_contact_2D_order1_ReducedFunction_Scalar.xml",reference)
186      def test_hex_contact_2D_order1_ReducedFunction_Vector_vtk(self):
187         reference="hex_2D_o1_cell_v.xml"
188         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
189         x=ReducedFunction(dom).getX()
190         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Vector.xml",data=x[0]*[1.,2.])
191         self.check_vtk("hex_contact_2D_order1_ReducedFunction_Vector.xml",reference)
192      def test_hex_contact_2D_order1_ReducedFunction_Tensor_vtk(self):
193         reference="hex_2D_o1_cell_t.xml"
194         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
195         x=ReducedFunction(dom).getX()
196         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
197         self.check_vtk("hex_contact_2D_order1_ReducedFunction_Tensor.xml",reference)
198    def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_vtk(self):
199       reference="hex_2D_o1_boundary_s.xml"       reference="hex_2D_o1_boundary_s.xml"
200       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
# Line 195  class Test_VTKFiles(Test_VisualizationIn Line 213  class Test_VTKFiles(Test_VisualizationIn
213       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
214       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
215       self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_FunctionOnBoundary_Tensor.xml",reference)
216      def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
217         reference="hex_2D_o1_boundary_s.xml"
218         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
219         x=ReducedFunctionOnBoundary(dom).getX()
220         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
221         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
222      def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
223         reference="hex_2D_o1_boundary_v.xml"
224         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
225         x=ReducedFunctionOnBoundary(dom).getX()
226         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
227         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
228      def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
229         reference="hex_2D_o1_boundary_t.xml"
230         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
231         x=ReducedFunctionOnBoundary(dom).getX()
232         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
233         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
234    def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_2D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
235       reference="hex_2D_o1_f_boundary_s.xml"       reference="hex_2D_o1_f_boundary_s.xml"
236       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
# Line 213  class Test_VTKFiles(Test_VisualizationIn Line 249  class Test_VTKFiles(Test_VisualizationIn
249       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
250       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
251       self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
252      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
253         reference="hex_2D_o1_f_boundary_s.xml"
254         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
255         x=ReducedFunctionOnBoundary(dom).getX()
256         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
257         self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
258      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
259         reference="hex_2D_o1_f_boundary_v.xml"
260         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
261         x=ReducedFunctionOnBoundary(dom).getX()
262         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
263         self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
264      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
265         reference="hex_2D_o1_f_boundary_t.xml"
266         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
267         x=ReducedFunctionOnBoundary(dom).getX()
268         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
269         self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
270    def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_2D_order1_FunctionOnContactZero_Scalar_vtk(self):
271       reference="hex_2D_o1_contact_s.xml"       reference="hex_2D_o1_contact_s.xml"
272       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
# Line 231  class Test_VTKFiles(Test_VisualizationIn Line 285  class Test_VTKFiles(Test_VisualizationIn
285       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
286       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
287       self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_FunctionOnContactZero_Tensor.xml",reference)
288      def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
289         reference="hex_2D_o1_contact_s.xml"
290         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
291         x=ReducedFunctionOnContactZero(dom).getX()
292         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
293         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference)
294      def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector_vtk(self):
295         reference="hex_2D_o1_contact_v.xml"
296         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
297         x=ReducedFunctionOnContactZero(dom).getX()
298         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
299         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Vector.xml",reference)
300      def test_hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self):
301         reference="hex_2D_o1_contact_t.xml"
302         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
303         x=ReducedFunctionOnContactZero(dom).getX()
304         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
305         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
306    def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_2D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
307       reference="hex_2D_o1_contact_s.xml"       reference="hex_2D_o1_contact_s.xml"
308       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
# Line 249  class Test_VTKFiles(Test_VisualizationIn Line 321  class Test_VTKFiles(Test_VisualizationIn
321       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
322       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
323       self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
324      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
325         reference="hex_2D_o1_contact_s.xml"
326         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
327         x=ReducedFunctionOnContactZero(dom).getX()
328         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
329         self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
330      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
331         reference="hex_2D_o1_contact_v.xml"
332         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
333         x=ReducedFunctionOnContactZero(dom).getX()
334         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
335         self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
336      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
337         reference="hex_2D_o1_contact_t.xml"
338         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
339         x=ReducedFunctionOnContactZero(dom).getX()
340         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
341         self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
342    def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_2D_order1_FunctionOnContactOne_Scalar_vtk(self):
343       reference="hex_2D_o1_contact_s.xml"       reference="hex_2D_o1_contact_s.xml"
344       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
# Line 267  class Test_VTKFiles(Test_VisualizationIn Line 357  class Test_VTKFiles(Test_VisualizationIn
357       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
358       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
359       self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_FunctionOnContactOne_Tensor.xml",reference)
360      def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
361         reference="hex_2D_o1_contact_s.xml"
362         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
363         x=ReducedFunctionOnContactOne(dom).getX()
364         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
365         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference)
366      def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector_vtk(self):
367         reference="hex_2D_o1_contact_v.xml"
368         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
369         x=ReducedFunctionOnContactOne(dom).getX()
370         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
371         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Vector.xml",reference)
372      def test_hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self):
373         reference="hex_2D_o1_contact_t.xml"
374         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
375         x=ReducedFunctionOnContactOne(dom).getX()
376         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
377         self.check_vtk("hex_contact_2D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
378    def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_2D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
379       reference="hex_2D_o1_contact_s.xml"       reference="hex_2D_o1_contact_s.xml"
380       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
# Line 284  class Test_VTKFiles(Test_VisualizationIn Line 392  class Test_VTKFiles(Test_VisualizationIn
392       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
393       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
394       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
395       self.check_vtk("hex_contact_2D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
396      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
397        reference="hex_2D_o1_contact_s.xml"
398        dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
399        x=ReducedFunctionOnContactOne(dom).getX()
400        saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
401        self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
402      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
403        reference="hex_2D_o1_contact_v.xml"
404        dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
405        x=ReducedFunctionOnContactOne(dom).getX()
406        saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
407        self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
408      def test_hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
409        reference="hex_2D_o1_contact_t.xml"
410        dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1_onFace.msh")
411        x=ReducedFunctionOnContactOne(dom).getX()
412        saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
413        self.check_vtk("hex_contact_2D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
414    # ======================================================================================================================    # ======================================================================================================================
415    def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self):    def test_hex_contact_2D_order2_ContinuousFunction_Scalar_vtk(self):
416       reference="hex_2D_o2_node_s.xml"       reference="hex_2D_o2_node_s.xml"
# Line 358  class Test_VTKFiles(Test_VisualizationIn Line 484  class Test_VTKFiles(Test_VisualizationIn
484       x=Function(dom).getX()       x=Function(dom).getX()
485       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
486       self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_Function_Tensor.xml",reference)
487      def test_hex_contact_2D_order2_ReducedFunction_Scalar_vtk(self):
488         reference="hex_2D_o2_cell_s.xml"
489         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
490         x=ReducedFunction(dom).getX()
491         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Scalar.xml",data=x[0])
492         self.check_vtk("hex_contact_2D_order2_ReducedFunction_Scalar.xml",reference)
493      def test_hex_contact_2D_order2_ReducedFunction_Vector_vtk(self):
494         reference="hex_2D_o2_cell_v.xml"
495         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
496         x=ReducedFunction(dom).getX()
497         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Vector.xml",data=x[0]*[1.,2.])
498         self.check_vtk("hex_contact_2D_order2_ReducedFunction_Vector.xml",reference)
499      def test_hex_contact_2D_order2_ReducedFunction_Tensor_vtk(self):
500         reference="hex_2D_o2_cell_t.xml"
501         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
502         x=ReducedFunction(dom).getX()
503         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
504         self.check_vtk("hex_contact_2D_order2_ReducedFunction_Tensor.xml",reference)
505    def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_vtk(self):
506       reference="hex_2D_o2_boundary_s.xml"       reference="hex_2D_o2_boundary_s.xml"
507       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
# Line 376  class Test_VTKFiles(Test_VisualizationIn Line 520  class Test_VTKFiles(Test_VisualizationIn
520       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
521       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
522       self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_FunctionOnBoundary_Tensor.xml",reference)
523      def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
524         reference="hex_2D_o2_boundary_s.xml"
525         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
526         x=ReducedFunctionOnBoundary(dom).getX()
527         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
528         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
529      def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
530         reference="hex_2D_o2_boundary_v.xml"
531         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
532         x=ReducedFunctionOnBoundary(dom).getX()
533         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
534         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
535      def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
536         reference="hex_2D_o2_boundary_t.xml"
537         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
538         x=ReducedFunctionOnBoundary(dom).getX()
539         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
540         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
541    def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_2D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
542       reference="hex_2D_o2_f_boundary_s.xml"       reference="hex_2D_o2_f_boundary_s.xml"
543       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
# Line 394  class Test_VTKFiles(Test_VisualizationIn Line 556  class Test_VTKFiles(Test_VisualizationIn
556       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
557       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
558       self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
559      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
560         reference="hex_2D_o2_f_boundary_s.xml"
561         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
562         x=ReducedFunctionOnBoundary(dom).getX()
563         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
564         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
565      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
566         reference="hex_2D_o2_f_boundary_v.xml"
567         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
568         x=ReducedFunctionOnBoundary(dom).getX()
569         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.])
570         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
571      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
572         reference="hex_2D_o2_f_boundary_t.xml"
573         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
574         x=ReducedFunctionOnBoundary(dom).getX()
575         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
576         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
577    def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_2D_order2_FunctionOnContactZero_Scalar_vtk(self):
578       reference="hex_2D_o2_contact_s.xml"       reference="hex_2D_o2_contact_s.xml"
579       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
# Line 412  class Test_VTKFiles(Test_VisualizationIn Line 592  class Test_VTKFiles(Test_VisualizationIn
592       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
593       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
594       self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_FunctionOnContactZero_Tensor.xml",reference)
595      def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
596         reference="hex_2D_o2_contact_s.xml"
597         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
598         x=ReducedFunctionOnContactZero(dom).getX()
599         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
600         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference)
601      def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector_vtk(self):
602         reference="hex_2D_o2_contact_v.xml"
603         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
604         x=ReducedFunctionOnContactZero(dom).getX()
605         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
606         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Vector.xml",reference)
607      def test_hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self):
608         reference="hex_2D_o2_contact_t.xml"
609         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
610         x=ReducedFunctionOnContactZero(dom).getX()
611         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
612         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)
613    def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_2D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
614       reference="hex_2D_o2_contact_s.xml"       reference="hex_2D_o2_contact_s.xml"
615       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
# Line 430  class Test_VTKFiles(Test_VisualizationIn Line 628  class Test_VTKFiles(Test_VisualizationIn
628       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
629       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
630       self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
631      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
632         reference="hex_2D_o2_contact_s.xml"
633         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
634         x=ReducedFunctionOnContactZero(dom).getX()
635         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
636         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
637      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
638         reference="hex_2D_o2_contact_v.xml"
639         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
640         x=ReducedFunctionOnContactZero(dom).getX()
641         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.])
642         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
643      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
644         reference="hex_2D_o2_contact_t.xml"
645         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
646         x=ReducedFunctionOnContactZero(dom).getX()
647         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
648         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
649    def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_2D_order2_FunctionOnContactOne_Scalar_vtk(self):
650       reference="hex_2D_o2_contact_s.xml"       reference="hex_2D_o2_contact_s.xml"
651       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
# Line 448  class Test_VTKFiles(Test_VisualizationIn Line 664  class Test_VTKFiles(Test_VisualizationIn
664       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
665       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
666       self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_FunctionOnContactOne_Tensor.xml",reference)
667    def test_hex_contact_2D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self):
668         reference="hex_2D_o2_contact_s.xml"
669         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
670         x=ReducedFunctionOnContactOne(dom).getX()
671         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
672         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference)
673      def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector_vtk(self):
674         reference="hex_2D_o2_contact_v.xml"
675         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
676         x=ReducedFunctionOnContactOne(dom).getX()
677         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
678         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Vector.xml",reference)
679      def test_hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self):
680         reference="hex_2D_o2_contact_t.xml"
681         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
682         x=ReducedFunctionOnContactOne(dom).getX()
683         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
684         self.check_vtk("hex_contact_2D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference)
685      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
686       reference="hex_2D_o2_contact_s.xml"       reference="hex_2D_o2_contact_s.xml"
687       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
688       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
# Line 467  class Test_VTKFiles(Test_VisualizationIn Line 701  class Test_VTKFiles(Test_VisualizationIn
701       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
702       self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_2D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
703    
704      def test_hex_contact_2D_order2_onFace_ReducedReducedFunctionOnContactOne_Scalar_vtk(self):
705         reference="hex_2D_o2_contact_s.xml"
706         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
707         x=ReducedFunctionOnContactOne(dom).getX()
708         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
709         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
710      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
711         reference="hex_2D_o2_contact_v.xml"
712         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
713         x=ReducedFunctionOnContactOne(dom).getX()
714         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.])
715         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
716      def test_hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
717         reference="hex_2D_o2_contact_t.xml"
718         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2_onFace.msh")
719         x=ReducedFunctionOnContactOne(dom).getX()
720         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.],[21.,22.]])
721         self.check_vtk("hex_contact_2D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
722    
723    
724    # ======================================================================================================================    # ======================================================================================================================
725    def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self):    def test_hex_contact_3D_order1_ContinuousFunction_Scalar_vtk(self):
# Line 541  class Test_VTKFiles(Test_VisualizationIn Line 794  class Test_VTKFiles(Test_VisualizationIn
794       x=Function(dom).getX()       x=Function(dom).getX()
795       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
796       self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_Function_Tensor.xml",reference)
797      def test_hex_contact_3D_order1_ReducedFunction_Scalar_vtk(self):
798         reference="hex_3D_o1_cell_s.xml"
799         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
800         x=ReducedFunction(dom).getX()
801         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Scalar.xml",data=x[0])
802         self.check_vtk("hex_contact_3D_order1_ReducedFunction_Scalar.xml",reference)
803      def test_hex_contact_3D_order1_ReducedFunction_Vector_vtk(self):
804         reference="hex_3D_o1_cell_v.xml"
805         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
806         x=ReducedFunction(dom).getX()
807         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.])
808         self.check_vtk("hex_contact_3D_order1_ReducedFunction_Vector.xml",reference)
809      def test_hex_contact_3D_order1_ReducedFunction_Tensor_vtk(self):
810         reference="hex_3D_o1_cell_t.xml"
811         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
812         x=ReducedFunction(dom).getX()
813         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
814         self.check_vtk("hex_contact_3D_order1_ReducedFunction_Tensor.xml",reference)
815    def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_vtk(self):
816       reference="hex_3D_o1_boundary_s.xml"       reference="hex_3D_o1_boundary_s.xml"
817       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
# Line 559  class Test_VTKFiles(Test_VisualizationIn Line 830  class Test_VTKFiles(Test_VisualizationIn
830       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
831       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
832       self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_FunctionOnBoundary_Tensor.xml",reference)
833      def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
834         reference="hex_3D_o1_boundary_s.xml"
835         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
836         x=ReducedFunctionOnBoundary(dom).getX()
837         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
838         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
839      def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
840         reference="hex_3D_o1_boundary_v.xml"
841         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
842         x=ReducedFunctionOnBoundary(dom).getX()
843         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
844         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
845      def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
846         reference="hex_3D_o1_boundary_t.xml"
847         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
848         x=ReducedFunctionOnBoundary(dom).getX()
849         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
850         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
851    def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_3D_order1_onFace_FunctionOnBoundary_Scalar_vtk(self):
852       reference="hex_3D_o1_f_boundary_s.xml"       reference="hex_3D_o1_f_boundary_s.xml"
853       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
# Line 577  class Test_VTKFiles(Test_VisualizationIn Line 866  class Test_VTKFiles(Test_VisualizationIn
866       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
867       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
868       self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnBoundary_Tensor.xml",reference)
869      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
870         reference="hex_3D_o1_f_boundary_s.xml"
871         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
872         x=ReducedFunctionOnBoundary(dom).getX()
873         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
874         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
875      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
876         reference="hex_3D_o1_f_boundary_v.xml"
877         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
878         x=ReducedFunctionOnBoundary(dom).getX()
879         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
880         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
881      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
882         reference="hex_3D_o1_f_boundary_t.xml"
883         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
884         x=ReducedFunctionOnBoundary(dom).getX()
885         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
886         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
887    def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_3D_order1_FunctionOnContactZero_Scalar_vtk(self):
888       reference="hex_3D_o1_contact_s.xml"       reference="hex_3D_o1_contact_s.xml"
889       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
# Line 595  class Test_VTKFiles(Test_VisualizationIn Line 902  class Test_VTKFiles(Test_VisualizationIn
902       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
903       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
904       self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_FunctionOnContactZero_Tensor.xml",reference)
905      def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar_vtk(self):
906         reference="hex_3D_o1_contact_s.xml"
907         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
908         x=ReducedFunctionOnContactZero(dom).getX()
909         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
910         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Scalar.xml",reference)
911      def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector_vtk(self):
912         reference="hex_3D_o1_contact_v.xml"
913         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
914         x=ReducedFunctionOnContactZero(dom).getX()
915         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
916         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Vector.xml",reference)
917      def test_hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor_vtk(self):
918         reference="hex_3D_o1_contact_t.xml"
919         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
920         x=ReducedFunctionOnContactZero(dom).getX()
921         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
922         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactZero_Tensor.xml",reference)
923    def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_3D_order1_onFace_FunctionOnContactZero_Scalar_vtk(self):
924       reference="hex_3D_o1_contact_s.xml"       reference="hex_3D_o1_contact_s.xml"
925       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
# Line 613  class Test_VTKFiles(Test_VisualizationIn Line 938  class Test_VTKFiles(Test_VisualizationIn
938       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
939       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
940       self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactZero_Tensor.xml",reference)
941      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
942         reference="hex_3D_o1_contact_s.xml"
943         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
944         x=ReducedFunctionOnContactZero(dom).getX()
945         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
946         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
947      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
948         reference="hex_3D_o1_contact_v.xml"
949         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
950         x=ReducedFunctionOnContactZero(dom).getX()
951         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
952         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
953      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
954         reference="hex_3D_o1_contact_t.xml"
955         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
956         x=ReducedFunctionOnContactZero(dom).getX()
957         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
958         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
959    def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_3D_order1_FunctionOnContactOne_Scalar_vtk(self):
960       reference="hex_3D_o1_contact_s.xml"       reference="hex_3D_o1_contact_s.xml"
961       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
# Line 631  class Test_VTKFiles(Test_VisualizationIn Line 974  class Test_VTKFiles(Test_VisualizationIn
974       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
975       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
976       self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_FunctionOnContactOne_Tensor.xml",reference)
977      def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar_vtk(self):
978         reference="hex_3D_o1_contact_s.xml"
979         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
980         x=ReducedFunctionOnContactOne(dom).getX()
981         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
982         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Scalar.xml",reference)
983      def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector_vtk(self):
984         reference="hex_3D_o1_contact_v.xml"
985         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
986         x=ReducedFunctionOnContactOne(dom).getX()
987         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
988         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Vector.xml",reference)
989      def test_hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor_vtk(self):
990         reference="hex_3D_o1_contact_t.xml"
991         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
992         x=ReducedFunctionOnContactOne(dom).getX()
993         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
994         self.check_vtk("hex_contact_3D_order1_ReducedFunctionOnContactOne_Tensor.xml",reference)
995    def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_3D_order1_onFace_FunctionOnContactOne_Scalar_vtk(self):
996       reference="hex_3D_o1_contact_s.xml"       reference="hex_3D_o1_contact_s.xml"
997       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
# Line 649  class Test_VTKFiles(Test_VisualizationIn Line 1010  class Test_VTKFiles(Test_VisualizationIn
1010       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
1011       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1012       self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order1_onFace_FunctionOnContactOne_Tensor.xml",reference)
1013      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
1014         reference="hex_3D_o1_contact_s.xml"
1015         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
1016         x=ReducedFunctionOnContactOne(dom).getX()
1017         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
1018         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
1019      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
1020         reference="hex_3D_o1_contact_v.xml"
1021         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
1022         x=ReducedFunctionOnContactOne(dom).getX()
1023         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1024         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
1025      def test_hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
1026         reference="hex_3D_o1_contact_t.xml"
1027         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1_onFace.msh")
1028         x=ReducedFunctionOnContactOne(dom).getX()
1029         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1030         self.check_vtk("hex_contact_3D_order1_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1031    # ======================================================================================================================    # ======================================================================================================================
1032    def test_hex_contact_3D_order2_ContinuousFunction_Scalar_vtk(self):    def test_hex_contact_3D_order2_ContinuousFunction_Scalar_vtk(self):
1033       reference="hex_3D_o2_node_s.xml"       reference="hex_3D_o2_node_s.xml"
# Line 722  class Test_VTKFiles(Test_VisualizationIn Line 1101  class Test_VTKFiles(Test_VisualizationIn
1101       x=Function(dom).getX()       x=Function(dom).getX()
1102       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1103       self.check_vtk("hex_contact_3D_order2_Function_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_Function_Tensor.xml",reference)
1104      def test_hex_contact_3D_order2_ReducedFunction_Scalar_vtk(self):
1105         reference="hex_3D_o2_cell_s.xml"
1106         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1107         x=ReducedFunction(dom).getX()
1108         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Scalar.xml",data=x[0])
1109         self.check_vtk("hex_contact_3D_order2_ReducedFunction_Scalar.xml",reference)
1110      def test_hex_contact_3D_order2_ReducedFunction_Vector_vtk(self):
1111         reference="hex_3D_o2_cell_v.xml"
1112         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1113         x=ReducedFunction(dom).getX()
1114         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Vector.xml",data=x[0]*[1.,2.,3.])
1115         self.check_vtk("hex_contact_3D_order2_ReducedFunction_Vector.xml",reference)
1116      def test_hex_contact_3D_order2_ReducedFunction_Tensor_vtk(self):
1117         reference="hex_3D_o2_cell_t.xml"
1118         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1119         x=ReducedFunction(dom).getX()
1120         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1121         self.check_vtk("hex_contact_3D_order2_ReducedFunction_Tensor.xml",reference)
1122    def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_vtk(self):
1123       reference="hex_3D_o2_boundary_s.xml"       reference="hex_3D_o2_boundary_s.xml"
1124       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
# Line 740  class Test_VTKFiles(Test_VisualizationIn Line 1137  class Test_VTKFiles(Test_VisualizationIn
1137       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1138       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1139       self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_FunctionOnBoundary_Tensor.xml",reference)
1140      def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
1141         reference="hex_3D_o2_boundary_s.xml"
1142         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1143         x=ReducedFunctionOnBoundary(dom).getX()
1144         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
1145         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
1146      def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
1147         reference="hex_3D_o2_boundary_v.xml"
1148         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1149         x=ReducedFunctionOnBoundary(dom).getX()
1150         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1151         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
1152      def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
1153         reference="hex_3D_o2_boundary_t.xml"
1154         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1155         x=ReducedFunctionOnBoundary(dom).getX()
1156         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1157         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
1158    def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):    def test_hex_contact_3D_order2_onFace_FunctionOnBoundary_Scalar_vtk(self):
1159       reference="hex_3D_o2_f_boundary_s.xml"       reference="hex_3D_o2_f_boundary_s.xml"
1160       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
# Line 758  class Test_VTKFiles(Test_VisualizationIn Line 1173  class Test_VTKFiles(Test_VisualizationIn
1173       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1174       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1175       self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnBoundary_Tensor.xml",reference)
1176      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar_vtk(self):
1177         reference="hex_3D_o2_f_boundary_s.xml"
1178         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1179         x=ReducedFunctionOnBoundary(dom).getX()
1180         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",data=x[0])
1181         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Scalar.xml",reference)
1182      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector_vtk(self):
1183         reference="hex_3D_o2_f_boundary_v.xml"
1184         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1185         x=ReducedFunctionOnBoundary(dom).getX()
1186         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",data=x[0]*[1.,2.,3.])
1187         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Vector.xml",reference)
1188      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor_vtk(self):
1189         reference="hex_3D_o2_f_boundary_t.xml"
1190         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1191         x=ReducedFunctionOnBoundary(dom).getX()
1192         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1193         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnBoundary_Tensor.xml",reference)
1194    def test_hex_contact_3D_order2_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_3D_order2_FunctionOnContactZero_Scalar_vtk(self):
1195       reference="hex_3D_o2_contact_s.xml"       reference="hex_3D_o2_contact_s.xml"
1196       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
# Line 776  class Test_VTKFiles(Test_VisualizationIn Line 1209  class Test_VTKFiles(Test_VisualizationIn
1209       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
1210       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1211       self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_FunctionOnContactZero_Tensor.xml",reference)
1212      def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar_vtk(self):
1213         reference="hex_3D_o2_contact_s.xml"
1214         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1215         x=ReducedFunctionOnContactZero(dom).getX()
1216         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
1217         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Scalar.xml",reference)
1218      def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector_vtk(self):
1219         reference="hex_3D_o2_contact_v.xml"
1220         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1221         x=ReducedFunctionOnContactZero(dom).getX()
1222         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1223         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Vector.xml",reference)
1224      def test_hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor_vtk(self):
1225         reference="hex_3D_o2_contact_t.xml"
1226         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1227         x=ReducedFunctionOnContactZero(dom).getX()
1228         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1229         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactZero_Tensor.xml",reference)
1230    def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):    def test_hex_contact_3D_order2_onFace_FunctionOnContactZero_Scalar_vtk(self):
1231       reference="hex_3D_o2_contact_s.xml"       reference="hex_3D_o2_contact_s.xml"
1232       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
# Line 794  class Test_VTKFiles(Test_VisualizationIn Line 1245  class Test_VTKFiles(Test_VisualizationIn
1245       x=FunctionOnContactZero(dom).getX()       x=FunctionOnContactZero(dom).getX()
1246       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1247       self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactZero_Tensor.xml",reference)
1248      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar_vtk(self):
1249         reference="hex_3D_o2_contact_s.xml"
1250         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1251         x=ReducedFunctionOnContactZero(dom).getX()
1252         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",data=x[0])
1253         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Scalar.xml",reference)
1254      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector_vtk(self):
1255         reference="hex_3D_o2_contact_v.xml"
1256         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1257         x=ReducedFunctionOnContactZero(dom).getX()
1258         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",data=x[0]*[1.,2.,3.])
1259         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Vector.xml",reference)
1260      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor_vtk(self):
1261         reference="hex_3D_o2_contact_t.xml"
1262         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1263         x=ReducedFunctionOnContactZero(dom).getX()
1264         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1265         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactZero_Tensor.xml",reference)
1266    def test_hex_contact_3D_order2_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_3D_order2_FunctionOnContactOne_Scalar_vtk(self):
1267       reference="hex_3D_o2_contact_s.xml"       reference="hex_3D_o2_contact_s.xml"
1268       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
# Line 812  class Test_VTKFiles(Test_VisualizationIn Line 1281  class Test_VTKFiles(Test_VisualizationIn
1281       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
1282       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1283       self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_FunctionOnContactOne_Tensor.xml",reference)
1284      def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar_vtk(self):
1285         reference="hex_3D_o2_contact_s.xml"
1286         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1287         x=ReducedFunctionOnContactOne(dom).getX()
1288         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
1289         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Scalar.xml",reference)
1290      def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector_vtk(self):
1291         reference="hex_3D_o2_contact_v.xml"
1292         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1293         x=ReducedFunctionOnContactOne(dom).getX()
1294         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1295         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Vector.xml",reference)
1296      def test_hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor_vtk(self):
1297         reference="hex_3D_o2_contact_t.xml"
1298         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1299         x=ReducedFunctionOnContactOne(dom).getX()
1300         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1301         self.check_vtk("hex_contact_3D_order2_ReducedFunctionOnContactOne_Tensor.xml",reference)
1302    def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self):    def test_hex_contact_3D_order2_onFace_FunctionOnContactOne_Scalar_vtk(self):
1303       reference="hex_3D_o2_contact_s.xml"       reference="hex_3D_o2_contact_s.xml"
1304       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
# Line 830  class Test_VTKFiles(Test_VisualizationIn Line 1317  class Test_VTKFiles(Test_VisualizationIn
1317       x=FunctionOnContactOne(dom).getX()       x=FunctionOnContactOne(dom).getX()
1318       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1319       self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_onFace_FunctionOnContactOne_Tensor.xml",reference)
1320      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar_vtk(self):
1321         reference="hex_3D_o2_contact_s.xml"
1322         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1323         x=ReducedFunctionOnContactOne(dom).getX()
1324         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",data=x[0])
1325         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Scalar.xml",reference)
1326      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector_vtk(self):
1327         reference="hex_3D_o2_contact_v.xml"
1328         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1329         x=ReducedFunctionOnContactOne(dom).getX()
1330         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",data=x[0]*[1.,2.,3.])
1331         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Vector.xml",reference)
1332      def test_hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor_vtk(self):
1333         reference="hex_3D_o2_contact_t.xml"
1334         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2_onFace.msh")
1335         x=ReducedFunctionOnContactOne(dom).getX()
1336         saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1337         self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1338    
1339    
1340  class Test_DXFiles(Test_VisualizationInterface):  class Test_DXFiles(Test_VisualizationInterface):
1341    # ======================================================================================================================    # ======================================================================================================================
# Line 863  class Test_DXFiles(Test_VisualizationInt Line 1369  class Test_DXFiles(Test_VisualizationInt
1369          self.fail("non-matching data not detected.")          self.fail("non-matching data not detected.")
1370       except StandardError:       except StandardError:
1371          pass          pass
1372    def test_hex_2D_order2_BoundrayPoint_Scalar_dx(self):    def test_hex_2D_order2_BoundaryPoint_Scalar_dx(self):
1373       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_2D_order2.msh")
1374       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1375       x_b=FunctionOnBoundary(dom).getX()       x_b=FunctionOnBoundary(dom).getX()
1376       try:       try:
1377          saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundrayPoint_Scalar.dx",data=x[0],data_b=x_b[0])          saveDX(FINLEY_WORKDIR_PATH+"hex_2D_order2_BoundaryPoint_Scalar.dx",data=x[0],data_b=x_b[0])
1378          self.fail("non-matching data not detected.")          self.fail("non-matching data not detected.")
1379       except StandardError:       except StandardError:
1380          pass          pass
# Line 964  class Test_DXFiles(Test_VisualizationInt Line 1470  class Test_DXFiles(Test_VisualizationInt
1470       x=Function(dom).getX()       x=Function(dom).getX()
1471       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_Function_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1472       self.check_dx("hex_contact_2D_order1_Function_Tensor.dx",reference)       self.check_dx("hex_contact_2D_order1_Function_Tensor.dx",reference)
1473      def test_hex_contact_2D_order1_ReducedFunction_Scalar_dx(self):
1474         reference="hex_2D_o1_cell_s.dx"
1475         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
1476         x=ReducedFunction(dom).getX()
1477         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Scalar.dx",data=x[0])
1478         self.check_dx("hex_contact_2D_order1_ReducedFunction_Scalar.dx",reference)
1479      def test_hex_contact_2D_order1_ReducedFunction_Vector_dx(self):
1480         reference="hex_2D_o1_cell_v.dx"
1481         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
1482         x=ReducedFunction(dom).getX()
1483         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Vector.dx",data=x[0]*[1.,2.])
1484         self.check_dx("hex_contact_2D_order1_ReducedFunction_Vector.dx",reference)
1485      def test_hex_contact_2D_order1_ReducedFunction_Tensor_dx(self):
1486         reference="hex_2D_o1_cell_t.dx"
1487         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
1488         x=ReducedFunction(dom).getX()
1489         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunction_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1490         self.check_dx("hex_contact_2D_order1_ReducedFunction_Tensor.dx",reference)
1491    def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_dx(self):    def test_hex_contact_2D_order1_FunctionOnBoundary_Scalar_dx(self):
1492       reference="hex_2D_o1_boundary_s.dx"       reference="hex_2D_o1_boundary_s.dx"
1493       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
# Line 982  class Test_DXFiles(Test_VisualizationInt Line 1506  class Test_DXFiles(Test_VisualizationInt
1506       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1507       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1508       self.check_dx("hex_contact_2D_order1_FunctionOnBoundary_Tensor.dx",reference)       self.check_dx("hex_contact_2D_order1_FunctionOnBoundary_Tensor.dx",reference)
1509      def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar_dx(self):
1510         reference="hex_2D_o1_boundary_s.dx"
1511         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
1512         x=ReducedFunctionOnBoundary(dom).getX()
1513         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.dx",data=x[0])
1514         self.check_dx("hex_contact_2D_order1_ReducedFunctionOnBoundary_Scalar.dx",reference)
1515      def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector_dx(self):
1516         reference="hex_2D_o1_boundary_v.dx"
1517         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
1518         x=ReducedFunctionOnBoundary(dom).getX()
1519         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.])
1520         self.check_dx("hex_contact_2D_order1_ReducedFunctionOnBoundary_Vector.dx",reference)
1521      def test_hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor_dx(self):
1522         reference="hex_2D_o1_boundary_t.dx"
1523         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order1.msh")
1524         x=ReducedFunctionOnBoundary(dom).getX()
1525         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1526         self.check_dx("hex_contact_2D_order1_ReducedFunctionOnBoundary_Tensor.dx",reference)
1527    # ======================================================================================================================    # ======================================================================================================================
1528    def test_hex_contact_2D_order2_ContinuousFunction_Scalar_dx(self):    def test_hex_contact_2D_order2_ContinuousFunction_Scalar_dx(self):
1529       reference="hex_2D_o2_node_s.dx"       reference="hex_2D_o2_node_s.dx"
# Line 1055  class Test_DXFiles(Test_VisualizationInt Line 1597  class Test_DXFiles(Test_VisualizationInt
1597       x=Function(dom).getX()       x=Function(dom).getX()
1598       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_Function_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1599       self.check_dx("hex_contact_2D_order2_Function_Tensor.dx",reference)       self.check_dx("hex_contact_2D_order2_Function_Tensor.dx",reference)
1600      def test_hex_contact_2D_order2_ReducedFunction_Scalar_dx(self):
1601         reference="hex_2D_o2_cell_s.dx"
1602         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1603         x=ReducedFunction(dom).getX()
1604         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Scalar.dx",data=x[0])
1605         self.check_dx("hex_contact_2D_order2_ReducedFunction_Scalar.dx",reference)
1606      def test_hex_contact_2D_order2_ReducedFunction_Vector_dx(self):
1607         reference="hex_2D_o2_cell_v.dx"
1608         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1609         x=ReducedFunction(dom).getX()
1610         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Vector.dx",data=x[0]*[1.,2.])
1611         self.check_dx("hex_contact_2D_order2_ReducedFunction_Vector.dx",reference)
1612      def test_hex_contact_2D_order2_ReducedFunction_Tensor_dx(self):
1613         reference="hex_2D_o2_cell_t.dx"
1614         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1615         x=ReducedFunction(dom).getX()
1616         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunction_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1617         self.check_dx("hex_contact_2D_order2_ReducedFunction_Tensor.dx",reference)
1618    def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_dx(self):    def test_hex_contact_2D_order2_FunctionOnBoundary_Scalar_dx(self):
1619       reference="hex_2D_o2_boundary_s.dx"       reference="hex_2D_o2_boundary_s.dx"
1620       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
# Line 1073  class Test_DXFiles(Test_VisualizationInt Line 1633  class Test_DXFiles(Test_VisualizationInt
1633       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1634       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1635       self.check_dx("hex_contact_2D_order2_FunctionOnBoundary_Tensor.dx",reference)       self.check_dx("hex_contact_2D_order2_FunctionOnBoundary_Tensor.dx",reference)
1636      def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar_dx(self):
1637         reference="hex_2D_o2_boundary_s.dx"
1638         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1639         x=ReducedFunctionOnBoundary(dom).getX()
1640         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.dx",data=x[0])
1641         self.check_dx("hex_contact_2D_order2_ReducedFunctionOnBoundary_Scalar.dx",reference)
1642      def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector_dx(self):
1643         reference="hex_2D_o2_boundary_v.dx"
1644         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1645         x=ReducedFunctionOnBoundary(dom).getX()
1646         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.])
1647         self.check_dx("hex_contact_2D_order2_ReducedFunctionOnBoundary_Vector.dx",reference)
1648      def test_hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor_dx(self):
1649         reference="hex_2D_o2_boundary_t.dx"
1650         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_2D_order2.msh")
1651         x=ReducedFunctionOnBoundary(dom).getX()
1652         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.],[21.,22.]])
1653         self.check_dx("hex_contact_2D_order2_ReducedFunctionOnBoundary_Tensor.dx",reference)
1654    # ======================================================================================================================    # ======================================================================================================================
1655    def test_hex_contact_3D_order1_ContinuousFunction_Scalar_dx(self):    def test_hex_contact_3D_order1_ContinuousFunction_Scalar_dx(self):
1656       reference="hex_3D_o1_node_s.dx"       reference="hex_3D_o1_node_s.dx"
# Line 1146  class Test_DXFiles(Test_VisualizationInt Line 1724  class Test_DXFiles(Test_VisualizationInt
1724       x=Function(dom).getX()       x=Function(dom).getX()
1725       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_Function_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1726       self.check_dx("hex_contact_3D_order1_Function_Tensor.dx",reference)       self.check_dx("hex_contact_3D_order1_Function_Tensor.dx",reference)
1727      def test_hex_contact_3D_order1_ReducedFunction_Scalar_dx(self):
1728         reference="hex_3D_o1_cell_s.dx"
1729         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1730         x=ReducedFunction(dom).getX()
1731         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Scalar.dx",data=x[0])
1732         self.check_dx("hex_contact_3D_order1_ReducedFunction_Scalar.dx",reference)
1733      def test_hex_contact_3D_order1_ReducedFunction_Vector_dx(self):
1734         reference="hex_3D_o1_cell_v.dx"
1735         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1736         x=ReducedFunction(dom).getX()
1737         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Vector.dx",data=x[0]*[1.,2.,3.])
1738         self.check_dx("hex_contact_3D_order1_ReducedFunction_Vector.dx",reference)
1739      def test_hex_contact_3D_order1_ReducedFunction_Tensor_dx(self):
1740         reference="hex_3D_o1_cell_t.dx"
1741         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1742         x=ReducedFunction(dom).getX()
1743         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunction_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1744         self.check_dx("hex_contact_3D_order1_ReducedFunction_Tensor.dx",reference)
1745    def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_dx(self):    def test_hex_contact_3D_order1_FunctionOnBoundary_Scalar_dx(self):
1746       reference="hex_3D_o1_boundary_s.dx"       reference="hex_3D_o1_boundary_s.dx"
1747       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
# Line 1164  class Test_DXFiles(Test_VisualizationInt Line 1760  class Test_DXFiles(Test_VisualizationInt
1760       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1761       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1762       self.check_dx("hex_contact_3D_order1_FunctionOnBoundary_Tensor.dx",reference)       self.check_dx("hex_contact_3D_order1_FunctionOnBoundary_Tensor.dx",reference)
1763      def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar_dx(self):
1764         reference="hex_3D_o1_boundary_s.dx"
1765         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1766         x=ReducedFunctionOnBoundary(dom).getX()
1767         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.dx",data=x[0])
1768         self.check_dx("hex_contact_3D_order1_ReducedFunctionOnBoundary_Scalar.dx",reference)
1769      def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector_dx(self):
1770         reference="hex_3D_o1_boundary_v.dx"
1771         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1772         x=ReducedFunctionOnBoundary(dom).getX()
1773         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.,3.])
1774         self.check_dx("hex_contact_3D_order1_ReducedFunctionOnBoundary_Vector.dx",reference)
1775      def test_hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor_dx(self):
1776         reference="hex_3D_o1_boundary_t.dx"
1777         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order1.msh")
1778         x=ReducedFunctionOnBoundary(dom).getX()
1779         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1780         self.check_dx("hex_contact_3D_order1_ReducedFunctionOnBoundary_Tensor.dx",reference)
1781    # ======================================================================================================================    # ======================================================================================================================
1782    def test_hex_contact_3D_order2_ContinuousFunction_Scalar_dx(self):    def test_hex_contact_3D_order2_ContinuousFunction_Scalar_dx(self):
1783       reference="hex_3D_o1_node_s.dx"       reference="hex_3D_o1_node_s.dx"
# Line 1237  class Test_DXFiles(Test_VisualizationInt Line 1851  class Test_DXFiles(Test_VisualizationInt
1851       x=Function(dom).getX()       x=Function(dom).getX()
1852       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_Function_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1853       self.check_dx("hex_contact_3D_order2_Function_Tensor.dx",reference)       self.check_dx("hex_contact_3D_order2_Function_Tensor.dx",reference)
1854      def test_hex_contact_3D_order2_ReducedFunction_Scalar_dx(self):
1855         reference="hex_3D_o1_cell_s.dx"
1856         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1857         x=ReducedFunction(dom).getX()
1858         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Scalar.dx",data=x[0])
1859         self.check_dx("hex_contact_3D_order2_ReducedFunction_Scalar.dx",reference)
1860      def test_hex_contact_3D_order2_ReducedFunction_Vector_dx(self):
1861         reference="hex_3D_o1_cell_v.dx"
1862         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1863         x=ReducedFunction(dom).getX()
1864         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Vector.dx",data=x[0]*[1.,2.,3.])
1865         self.check_dx("hex_contact_3D_order2_ReducedFunction_Vector.dx",reference)
1866      def test_hex_contact_3D_order2_ReducedFunction_Tensor_dx(self):
1867         reference="hex_3D_o1_cell_t.dx"
1868         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1869         x=ReducedFunction(dom).getX()
1870         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunction_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1871         self.check_dx("hex_contact_3D_order2_ReducedFunction_Tensor.dx",reference)
1872    def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_dx(self):    def test_hex_contact_3D_order2_FunctionOnBoundary_Scalar_dx(self):
1873       reference="hex_3D_o1_boundary_s.dx"       reference="hex_3D_o1_boundary_s.dx"
1874       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")       dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
# Line 1255  class Test_DXFiles(Test_VisualizationInt Line 1887  class Test_DXFiles(Test_VisualizationInt
1887       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1888       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_FunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1889       self.check_dx("hex_contact_3D_order2_FunctionOnBoundary_Tensor.dx",reference)       self.check_dx("hex_contact_3D_order2_FunctionOnBoundary_Tensor.dx",reference)
1890      def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar_dx(self):
1891         reference="hex_3D_o1_boundary_s.dx"
1892         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1893         x=ReducedFunctionOnBoundary(dom).getX()
1894         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.dx",data=x[0])
1895         self.check_dx("hex_contact_3D_order2_ReducedFunctionOnBoundary_Scalar.dx",reference)
1896      def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector_dx(self):
1897         reference="hex_3D_o1_boundary_v.dx"
1898         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1899         x=ReducedFunctionOnBoundary(dom).getX()
1900         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.dx",data=x[0]*[1.,2.,3.])
1901         self.check_dx("hex_contact_3D_order2_ReducedFunctionOnBoundary_Vector.dx",reference)
1902      def test_hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor_dx(self):
1903         reference="hex_3D_o1_boundary_t.dx"
1904         dom=ReadMesh(FINLEY_TEST_MESH_PATH+"hex_contact_3D_order2.msh")
1905         x=ReducedFunctionOnBoundary(dom).getX()
1906         saveDX(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.dx",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1907         self.check_dx("hex_contact_3D_order2_ReducedFunctionOnBoundary_Tensor.dx",reference)
1908    
1909    
1910  if __name__ == '__main__':  if __name__ == '__main__':
1911     suite = unittest.TestSuite()     suite = unittest.TestSuite()

Legend:
Removed from v.1064  
changed lines
  Added in v.1065

  ViewVC Help
Powered by ViewVC 1.1.26