CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Paraview -- POLYDATA -- multiple value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2012, 13:31
Default Paraview -- POLYDATA -- multiple value
  #1
New Member
 
diego avesani
Join Date: Dec 2010
Location: Trento
Posts: 12
Rep Power: 15
diedro is on a distinguished road
dear all,
I would like to create a vtk file, a polydata. I have also multiple scalar field a vector field.

I find this file:

Code:
# vtk DataFile Version 1.0
Data values for GE stock
ASCII

DATASET POLYDATA
POINTS 348 float
242 49.250 0 
243 49.125 0 
245 48.750 0 
246 48.625 0 
250 48.500 0 
251 48.125 0 
252 47.938 0 
253 48.312 0 
256 48.375 0 
258 49.062 0 
263 48.625 0 
264 48.188 0 
265 48.250 0 
266 48.125 0 
267 47.438 0 
270 48.250 0 
271 47.938 0 
273 47.938 0 
274 47.938 0 
277 48.125 0 
284 48.250 0 
285 47.750 0 
286 48.062 0 
287 48.250 0 
288 49.250 0 
291 49.000 0 
292 49.062 0 
293 49.125 0 
294 48.688 0 
295 48.000 0 
298 47.875 0 
299 48.188 0 
300 48.688 0 
301 48.438 0 
302 48.500 0 
305 48.750 0 
306 48.562 0 
307 48.188 0 
308 46.875 0 
309 47.062 0 
312 47.000 0 
313 47.250 0 
314 47.312 0 
315 46.938 0 
316 46.875 0 
319 47.125 0 
320 48.250 0 
321 48.312 0 
322 48.750 0 
323 49.125 0 
326 49.188 0 
327 49.250 0 
328 48.938 0 
330 49.250 0 
333 48.938 0 
334 49.188 0 
335 49.312 0 
336 49.938 0 
337 50.062 0 
340 50.188 0 
342 50.188 0 
343 50.500 0 
344 50.812 0 
347 50.500 0 
348 51.125 0 
349 51.688 0 
350 51.625 0 
351 52.562 0 
354 52.125 0 
355 52.688 0 
356 52.688 0 
357 53.062 0 
358 53.062 0 
363 53.062 0 
364 53.062 0 
365 53.062 0 
369 51.812 0 
370 51.500 0 
371 51.938 0 
375 52.438 0 
389 53.875 0 
390 53.500 0 
391 53.250 0 
392 54.125 0 
393 53.938 0 
396 53.875 0 
397 53.375 0 
398 54.562 0 
399 54.875 0 
400 53.250 0 
404 53.625 0 
405 54.125 0 
406 53.250 0 
410 54.062 0 
412 54.375 0 
413 54.562 0 
418 54.000 0 
419 53.688 0 
420 52.688 0 
421 52.625 0 
425 52.812 0 
427 52.500 0 
428 52.438 0 
431 52.875 0 
432 52.500 0 
433 52.688 0 
435 52.625 0 
440 51.875 0 
442 52.250 0 
445 52.000 0 
446 51.625 0 
447 51.938 0 
448 51.812 0 
449 51.250 0 
452 51.750 0 
453 51.188 0 
454 49.375 0 
455 50.000 0 
460 49.438 0 
461 48.812 0 
462 49.125 0 
463 48.688 0 
466 49.188 0 
467 49.625 0 
468 49.438 0 
469 48.750 0 
470 48.375 0 
473 47.438 0 
474 47.750 0 
475 47.750 0 
476 48.125 0 
478 48.000 0 
480 48.438 0 
481 48.000 0 
483 48.312 0 
484 47.562 0 
487 47.938 0 
488 48.125 0 
489 48.938 0 
490 48.875 0 
494 47.438 0 
495 47.500 0 
496 46.625 0 
497 46.875 0 
501 47.375 0 
502 47.625 0 
503 47.875 0 
504 48.250 0 
505 47.625 0 
508 47.000 0 
509 47.500 0 
510 47.500 0 
511 48.500 0 
512 49.000 0 
517 50.125 0 
518 50.000 0 
519 49.375 0 
522 48.750 0 
523 48.625 0 
525 48.375 0 
529 48.250 0 
530 48.000 0 
531 47.500 0 
532 48.000 0 
533 47.750 0 
536 47.375 0 
537 46.125 0 
538 45.625 0 
539 46.250 0 
540 46.375 0 
543 47.375 0 
545 47.625 0 
546 46.750 0 
551 47.000 0 
552 47.250 0 
553 47.375 0 
554 47.375 0 
557 47.250 0 
558 46.875 0 
559 46.750 0 
560 47.625 0 
561 47.875 0 
564 47.875 0 
565 48.750 0 
566 48.750 0 
567 48.750 0 
568 49.625 0 
571 49.875 0 
572 49.125 0 
574 49.500 0 
575 50.375 0 
578 50.250 0 
579 50.000 0 
580 49.625 0 
581 48.500 0 
582 49.000 0 
585 49.500 0 
586 49.000 0 
587 48.250 0 
588 47.625 0 
589 48.125 0 
592 48.375 0 
593 48.500 0 
594 47.875 0 
595 47.125 0 
596 47.875 0 
599 47.750 0 
600 48.750 0 
601 49.250 0 
602 49.750 0 
606 50.250 0 
607 50.000 0 
608 49.750 0 
609 50.250 0 
610 50.000 0 
614 49.375 0 
615 49.000 0 
616 49.125 0 
617 49.250 0 
620 49.125 0 
621 49.500 0 
622 50.250 0 
624 51.000 0 
627 50.500 0 
628 49.375 0 
629 49.500 0 
630 49.125 0 
631 48.750 0 
634 49.250 0 
635 48.750 0 
636 48.750 0 
637 48.750 0 
638 48.125 0 
641 47.625 0 
642 47.000 0 
643 47.375 0 
644 47.000 0 
645 46.750 0 
648 46.875 0 
649 48.375 0 
650 50.125 0 
651 50.000 0 
652 50.375 0 
655 50.250 0 
656 49.875 0 
657 50.250 0 
658 49.000 0 
659 47.375 0 
662 47.875 0 
663 48.000 0 
665 48.125 0 
666 49.375 0 
669 49.125 0 
670 48.625 0 
671 48.250 0 
672 48.500 0 
673 48.000 0 
676 48.250 0 
677 48.875 0 
683 48.750 0 
685 49.250 0 
697 47.250 0 
698 46.625 0 
699 46.000 0 
700 45.625 0 
701 47.125 0 
704 47.500 0 
705 46.500 0 
706 47.375 0 
707 46.125 0 
708 47.000 0 
711 47.375 0 
712 47.875 0 
713 48.750 0 
714 49.000 0 
715 50.250 0 
718 49.875 0 
719 49.750 0 
720 49.875 0 
721 50.500 0 
722 49.750 0 
727 51.125 0 
728 51.625 0 
729 51.000 0 
733 51.000 0 
734 50.875 0 
735 51.125 0 
736 50.875 0 
739 50.375 0 
740 50.750 0 
741 51.500 0 
742 51.375 0 
743 52.000 0 
747 52.000 0 
748 52.250 0 
749 51.000 0 
753 50.250 0 
754 50.375 0 
755 50.750 0 
756 51.000 0 
757 50.500 0 
760 51.125 0 
761 51.500 0 
762 51.125 0 
764 52.000 0 
768 52.000 0 
769 52.000 0 
774 52.625 0 
775 52.625 0 
776 53.625 0 
782 53.875 0 
783 55.125 0 
784 55.375 0 
785 54.875 0 
788 53.625 0 
789 54.750 0 
790 54.125 0 
791 53.125 0 
792 53.000 0 
795 52.750 0 
796 52.625 0 
797 53.250 0 
798 53.250 0 
799 54.750 0 
802 54.625 0 
803 55.000 0 
804 53.750 0 
805 54.875 0 
806 54.250 0 
809 54.125 0 
810 54.375 0 
811 54.500 0 
812 54.500 0 
813 55.000 0 
816 54.625 0 
817 54.875 0 
818 55.000 0 
819 54.875 0 
820 54.000 0 
823 54.625 0 
824 54.875 0 
825 54.875 0 
827 54.875 0 
830 55.000 0 
831 54.750 0 
832 54.750 0 
833 55.000 0 
834 55.000 0 

LINES 1 349 348
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347

POINT_DATA 348
SCALARS volume float
LOOKUP_TABLE default
1139.2
1360.4
1247.2
1745.4
1517.8
2327.6
1533.2
1731.2
1958.6
2579.0
1153.2
1789.2
1926.0
1387.0
2210.4
1689.6
1284.4
1314.4
1096.0
1351.6
947.4
2212.6
1253.6
1819.8
3683.2
1426.8
1553.4
919.8
1211.6
2310.2
1666.2
1449.0
1109.6
1671.6
1415.6
1325.6
1905.2
2027.6
2664.2
2760.0
1551.8
2311.2
1638.0
1731.2
2909.4
1933.8
2198.4
2095.2
2149.2
3093.0
3807.6
2825.4
1370.4
590.8
1680.8
1234.2
1689.0
2147.0
2744.0
1535.8
1573.6
3121.4
2090.2
1713.2
2674.8
4023.2
2807.8
5434.0
1965.2
2500.2
1785.2
2665.4
2665.4
2665.4
2665.4
2665.4
3350.6
2619.0
4358.2
2206.8
1714.6
2118.4
1742.8
1941.4
2550.8
2576.8
1758.0
2415.8
2721.8
2705.6
1529.0
1700.6
1486.0
1601.6
1685.0
2451.0
1601.6
1438.6
2425.4
1951.4
2457.4
1805.0
2150.4
1503.8
1652.8
1666.4
1572.2
2124.2
6774.4
1689.8
1736.8
1510.6
1917.0
1737.0
1771.2
1730.6
5293.4
4594.6
3635.4
4745.0
2513.6
2302.4
2132.6
1685.8
2225.2
1654.8
3103.4
3554.2
3226.6
2817.2
2224.8
1629.0
2434.8
2181.6
2368.8
1479.2
1736.6
2204.6
3047.2
2740.6
2669.4
2566.4
3248.4
2152.4
1456.8
2253.3
2141.5
2214.3
3408.8
2418.2
2238.5
1896.5
1620.9
1730.8
1957.7
1304.2
1569.1
1778.6
1405.3
1652.6
1279
1978.2
2821.4
1973.1
5721.2
2140.7
4068.5
4827.8
5188.7
3002.3
3097.2
2271.5
2130.9
2047.9
1618.1
1483.7
1416.9
1523.2
1778.8
1573.8
2485.8
2825.3
1622.6
2431.9
1749.9
1542.9
1721.3
2031.8
1142.7
1018.3
2396.3
1688.1
2171.2
1564.1
3261.7
1058.8
1224.6
1717
3064
2454.1
2777.9
3160.8
2947.1
2132
4114.5
3812.6
1255.4
2419.5
1995.1
2799.8
1993.8
1966.8
1936.8
1351.6
1196.9
1136.6
1612.4
1335.2
1744.7
1526.9
1224.9
1949.2
4470.8
2102.7
2309
2328.6
2309.6
1616.4
1432.9
1593.1
1865.4
1874.5
1517.3
3097
2749
2899.7
1657.9
2089.6
1621.5
2538.5
2899.5
2932.9
1528.5
1798.7
1809.7
1964.1
2974.5
5093.4
3399.9
1773
2049.5
2354.7
1107.4
1469.3
1932.8
1277.6
1551.3
1270.9
710.4
1355.2
1474.4
2038.7
2145
2195.1
1994.8
2235
1732.8
2040
1654.6
2190.4
2693.7
2258.6
2616.2
2690.6
2401.1
7297
2392.9
2230.4
2706.3
2135.2
1087.3
1479.9
2009
1331.3
1982.8
1687.2
1829
1626.6
1413
1999.5
1762.3
1357.3
1658.4
2383
1958.1
2441
2579.4
1036.3
1725.1
1801.2
1370.8
1084.2
1446.8
1668
2537.5
1514.6
1333.2
1252.9
1610.5
2596.3
1749.9
2721.1
3731.6
2349.1
2222.7
1731.4
1918
1997.9
1228.6
2163.5
2015
2578.5
1436.7
2630.9
1617.5
1642.8
1972.9
1984.6
4491.1
1614
2354.8
1311.3
1989.3
2008.9
1477.8
1241.3
2227.3
1475.1
1924.8
1771.7
2115.2
1176
1707.6
1005.3
1464.8
1117.8
1447.3
1447.3
However, I need two scalar field.
How can I do?

please help me, I cannot find any tutorial
diedro is offline   Reply With Quote

Old   April 22, 2012, 11:25
Default
  #2
New Member
 
Dr. Madhukar M Rao
Join Date: Nov 2010
Location: Bangalore, India
Posts: 21
Rep Power: 15
madhukar_m_rao is on a distinguished road
You can give multiple scalars in your file; each with its own name.

See the vtk website: http://www.vtk.org/VTK/img/file-formats.pdf
madhukar_m_rao is offline   Reply With Quote

Old   April 22, 2012, 12:56
Default
  #3
New Member
 
diego avesani
Join Date: Dec 2010
Location: Trento
Posts: 12
Rep Power: 15
diedro is on a distinguished road
hi,
thank you

now it works..with scalar

however it does not work with vector fields:

Code:
           0.00000
VECTORS velocity float
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
           0.00000           0.00000           0.00000
do you see something wrong?

thank you
it is very important
diedro is offline   Reply With Quote

Old   April 23, 2012, 02:15
Default
  #4
New Member
 
Dr. Madhukar M Rao
Join Date: Nov 2010
Location: Bangalore, India
Posts: 21
Rep Power: 15
madhukar_m_rao is on a distinguished road
The vector components seem to be all zeros. vtk has nothing to plot, if that is the case.
madhukar_m_rao is offline   Reply With Quote

Old   April 23, 2012, 05:13
Default
  #5
New Member
 
diego avesani
Join Date: Dec 2010
Location: Trento
Posts: 12
Rep Power: 15
diedro is on a distinguished road
Dear madhukar_m_rao,

I do not have only zero, I copy only few line of my input file. Indeed my error is

Code:
Generic Warning: In /home/utkarsh/Kitware/superbuild/paraview/src/paraview/VTK/IO/vtkDataReader.cxx, line 1382
Error reading ascii data. Possible mismatch of datasize with declaration.
diedro is offline   Reply With Quote

Old   April 23, 2012, 10:25
Default
  #6
New Member
 
diego avesani
Join Date: Dec 2010
Location: Trento
Posts: 12
Rep Power: 15
diedro is on a distinguished road
I get it
it was a my error in plotting data,

as the error message says.

thank all
diedro is offline   Reply With Quote

Old   April 30, 2012, 11:03
Default
  #7
New Member
 
diego avesani
Join Date: Dec 2010
Location: Trento
Posts: 12
Rep Power: 15
diedro is on a distinguished road
dear all,
as you can see I get it.
However, How can visualize both of them at the same time?

thanks a lot
diedro is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[foam-extend.org] foam-extend-3.1 multiple versions paraview issue CFDpal OpenFOAM Installation 1 May 31, 2018 08:51
[OpenFOAM] Multiple version of ParaView Pavel Rodin ParaView 1 October 13, 2017 10:21
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 19:29.