|
[Sponsors] |
January 31, 2013, 03:46 |
Temporal Analysis
|
#1 |
Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 35
Rep Power: 16 |
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. |
|
February 2, 2013, 07:57 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
February 2, 2013, 11:18 |
|
#3 | |
Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 35
Rep Power: 16 |
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 |
||
February 2, 2013, 15:13 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Mohammad,
I thought you already knew how ParaView handles multiple files... There are two ways ParaView can handle them:
Bruno
__________________
|
|
February 3, 2013, 02:13 |
|
#5 | |
Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 35
Rep Power: 16 |
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? |
||
February 3, 2013, 06:14 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Mohammad,
Attached are some images to help show what I meant:
Bruno
__________________
|
|
February 5, 2013, 21:52 |
|
#7 | |
Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 35
Rep Power: 16 |
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 |
||
February 6, 2013, 18:20 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
February 7, 2013, 11:04 |
|
#9 | |
Member
Mohammad Sarfaraz
Join Date: Feb 2010
Posts: 35
Rep Power: 16 |
Quote:
Now it works!!! I do not know how to thank you. All the Best Mohammad |
||
April 23, 2013, 14:21 |
|
#10 |
Member
Join Date: Mar 2013
Posts: 98
Rep Power: 13 |
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 |
|
April 26, 2013, 20:40 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 12, 2013, 06:43 |
|
#12 |
New Member
N7student
Join Date: Feb 2012
Posts: 9
Rep Power: 14 |
I wanted to plot the position of an interface over time... Well, you've saved my day wyldckat!
|
|
December 3, 2018, 06:36 |
Thanks a lot (in reconstructed)
|
#13 |
New Member
Magnus Hoffmann
Join Date: Sep 2018
Posts: 4
Rep Power: 8 |
Hey Bruno,
just getting into OpenFoam and stumble upon so many valuable post of yours! Your help is definitely appreciated. Let me make an addition, your solution only works (at least for me) in reconstructed Mode. Paraview will give a lot of type mismatch errors, whenever i try to calculate for H in decomposed mode. After Reconstructing everything works like charm. Thank you! Magnus |
|
December 22, 2019, 17:07 |
Please Help, Time not showing on x-axis and graph is all empty
|
#14 |
New Member
Ahsan
Join Date: Nov 2019
Location: Bologna, Italy
Posts: 27
Rep Power: 7 |
When I select a point and press "Plot Selection Over Time", it gives me an empty graph and my time range is 0 to 9 seconds, but on x-axis it is plotting the values from -0.01 to 0.01, it's not getting the time... Why?
|
|
December 25, 2019, 10:23 |
|
#15 | |
New Member
Ahsan
Join Date: Nov 2019
Location: Bologna, Italy
Posts: 27
Rep Power: 7 |
Quote:
Can you please help me get this done for floatingObject case of multiphase, it is a 3D case and I want to know the height of water which is along z-axis I believe. When I am following your procedure, for which I am very thankful, I am not getting the pressure and especially the H (Height of water). Also there are the error messages that says like, "Column "H" must have 61 rows, but only has 1." (I have total 61 time steps inlcuding 0th time step, like 0, 0.1, 0.2, 0.3,... ...,5.9, 6) |
||
December 25, 2019, 10:47 |
Not Getting the Time on x-Axis
|
#16 |
New Member
Ahsan
Join Date: Nov 2019
Location: Bologna, Italy
Posts: 27
Rep Power: 7 |
In another case of mine, with floatingBody of overInterDyMFoam, the graph is coming empty and I have no option to get the Time on the x-axis, even in the data to be selected for the x-axis, the Time is not showing
Please help me if you can... |
|
January 3, 2020, 16:10 |
|
#17 |
Member
Damian Berghof
Join Date: May 2019
Posts: 41
Rep Power: 11 |
Hello,
I was dealing with a similar case last year and developed a short python script to rename and to move all the *.vtk files to one specific folder. Maybe it's useful for someone. It can be run in background to the OpenFOAM run. best, Damian https://gitlab.com/virengos/openfoam...PostCopyPlanes
__________________
Get more support about Meshing with Salome and Visualization with ParaView in my growing groups https://bit.ly/2lFfDkQ https://bit.ly/2k2u8Pj |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Urgent - Perform an DISCRETE adjoint analysis in parallel_computation | JPBLourenco | SU2 | 1 | April 23, 2018 11:38 |
Explicit dynamics results for initial condition to another explicit dynamics analysis | KOI | Structural Mechanics | 0 | March 2, 2018 05:16 |
How to implement a sensitivity analysis for certain items | Mason liu | CFX | 10 | August 17, 2017 09:46 |
FSI-system coupling: "...same analysis type"? | rjw | CFX | 0 | March 26, 2017 08:25 |
ANSYS WORKBENCH Transfer result of one analysis to a new analysis as preload | ingjuanm90 | ANSYS | 0 | July 26, 2016 15:04 |