|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 22
Rep Power: 5 ![]() |
Dear all
Hi I have made an analysis of wave propagation (free surface flow). It is a temporal problem, which means that the wave height changes over the time at a specific section. In my analysis each time step is saved on an individual file. For example 01.vtk is the free surface profile of the wave at t=0.1 sec. for the whole channel. 02.vtk for t=0.2 sec. and so on. I want to use ParaView to analyze wave height vs. time at a specific location. Please help me. |
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Mohammad,
I finally managed to figure how this can be done. My test case was OpenFOAM's tutorial "multiphase/interFoam/laminar/damBreak". The steps I used were as follows:
Best regards, Bruno
__________________
|
|
|
|
|
|
|
|
|
#3 | |
|
New Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 22
Rep Power: 5 ![]() |
Quote:
It is agreat help. But you should consider that: I had about 100 files of .vtu, which each ofthem is for one time step,i.e. 0.vtk is for t=0,1.vtkis for t=0.1, ..., 100.vtk is for t=100 sec. Should I open all of them with Paraview? I would be thankful for your reply. Best Regards |
||
|
|
|
||
|
|
|
#4 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Mohammad,
I thought you already knew how ParaView handles multiple files... There are two ways ParaView can handle them:
Bruno
__________________
|
|
|
|
|
|
|
|
|
#5 | |
|
New Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 22
Rep Power: 5 ![]() |
Quote:
Dear Bruno Hi Again too much thanks I have about 100 files of .vtk, which they are not grouped,i.e. they are seperate. How can I make them in a group and assign them time step? |
||
|
|
|
||
|
|
|
#6 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Mohammad,
Attached are some images to help show what I meant:
Bruno
__________________
|
|
|
|
|
|
|
|
|
#7 | |
|
New Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 22
Rep Power: 5 ![]() |
Quote:
Your helps are acknowledged. But when I want to open multiple files, I can NOT see "snap.vtk" as shown in the picture. Paraview_Opening_FileS.jpg Best Regards |
||
|
|
|
||
|
|
|
#8 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Mohammad,
I forgot to tell you that you will have to rename all of the files to have text before the number, for ParaView to identify the files. This is why my example files had "snap" before the numbers. For example, you'll have to rename these files: Code:
0.vtk 1.vtk 2.vtk 3.vtk Code:
snap0.vtk snap1.vtk snap2.vtk snap3.vtk Bruno
__________________
|
|
|
|
|
|
|
|
|
#9 | |
|
New Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 22
Rep Power: 5 ![]() |
Quote:
Now it works!!! I do not know how to thank you. All the Best Mohammad |
||
|
|
|
||
|
|
|
#10 |
|
Member
Join Date: Mar 2013
Posts: 39
Rep Power: 2 ![]() |
Hi to all,
I follow the method proposed by wyldckat to calculate the velocity of the front of a bubble. I have a question about it. It's possible change the point after a certain time step? the front of my bubble is not always at the same y. The front of the bubble is characterized by the minimum value of z, so after set the contour of alpha=0,5 I want insert a filter that give me the point of minimum z. Moreover the second slice must be able to choose the this point that change position in y and z. Thanks to all |
|
|
|
|
|
|
|
|
#11 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Greetings giack,
Attached is an image demonstration the power of the "Python Calculator" filter and how to configure it. Note: it will give some error/warning messages, but you can ignore those Basically it complains about the result not being of the same array size as of the original data, but we don't care about that since we just need one value.Keep in mind that you'll need a ParaView version that has got Python built into it. I used "ParaView 3.14.1" that Ubuntu 12.04 has got. Best regards, Bruno
__________________
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Acoutic fan analysis | arunraj | CFX | 3 | October 4, 2012 18:54 |
| Acoutic fan analysis | arunraj | FLUENT | 0 | October 4, 2012 05:54 |
| Eigenfrequencies static and modal analysis | Laura_mecheng | ANSYS | 1 | May 15, 2012 03:40 |
| Short Course: Computational Thermal Analysis | Dean S. Schrage | Main CFD Forum | 11 | September 27, 2000 17:46 |