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