Update data in ParaView
Hi,
How do I update the data in ParaView? I'm currently designing a mesh and I need to repeatedly update the visual representation in ParaView to check the results, and I'm hoping there is a convenient "update" button hidden somewhere. /hpon |
Hi hpon,
If I'm not mistaken, you are using the ParaView version that is provided with OpenFOAM for Ubuntu 10.04. So, you will need 2 clicks:
And there is also a "Refresh Times" button, in case you want to keep up-to-date with a running simulation :) Best regards, Bruno |
Thank you Bruno,
You are correct, -that is the paraView version I am using. But strangely I cannot update the data the way you described. The case which I have called "Spalt.OpenFoam" is highlighted. I click the "Update GUI" box to put a marker in it, and the "Apply" botton subsequently becomes green. I then click the "Apply" button. ...and nothing happens. If instead, I open an new instance of "Spalt.OpenFoam" I get the updated mesh. Is there something else I need to do in order to make it work? /hpon |
Hi hpon,
Sorry about that, I should have tested too before posting. It's simple nonetheless: uncheck the check box "Cache Mesh", and then you can use the "Update GUI" check box to induce a refresh! "Cache Mesh" is quite useful for when you are seeing results from non dynamic meshes, but it doesn't do any good when you are running trial-and-error with mesh generation. Oh, by the way, be careful when updating the mesh! If you try to update in ParaView while the mesh is being generated by the mesher, you might be able to make ParaView crash! Best regards, Bruno |
Perfect. Thank you!
/hpon |
any progress...?
Hi,
Is there any progress in this matter? Has a generic "refresh data" button for every file reader finally found its way into a paraview release? I find it outmost annoying that every time a new state has been written out by a running simulation, or the simulation has been restarted - which is 99% of all cases if you're a cfd developer, I need to start from scratch setting up all the filters and glyphs. Of course you can trace your setup and then modify the python script but I think a simple refresh button would be an immense improvement in usability. And I'm not the only one, a refresh button has been requested for so long and at so many places. Maybe I'm missing something and simple solutions have been proposed already. Maybe it's in the latest release? I'm using 3.14.1 on ubuntu 12.04 64bit and I also have a version 3.12.0 that comes with OpenFoam (using (legacy) vtk data) and I'd say there's nothing. Edit: This is the corresponding "bug report" http://paraview.org/Bug/view.php?id=7314 Seems that since 2010 no one ever looked into this again so it just expired???? Cheers, Eric |
Quote:
|
thanks fro your quick reply, akidess!
Using the state files is what I do when I have restarted the simulations (existing files are overwritten) but unfortunately it doesn't help when new data files are added to a time series. It seems that the state also fixes the list of files that belong to a series. It doesn't load all data.timestep*.vtk files. So PV4 has a reload button now? Nice, will check it out! Cheers, Eric |
Indeed, if you open vtk files thats true. However, if you create a *.foam file and load that the issue will disappear, i.e. it will also read time steps that were not there previously! It also spares you a call of foamToVTK.
- Anton |
I've data in (legacy) vtk format only. I know this is the forum for OpenFOAM paraview, sorry, but this discussion thread was the one matching my problem best.
I've tried PV4 now and I see some changes but nothing like a "refresh/reload" button. Where would I have to look for it or what would be the way to trigger the reload? Cheers, Eric |
Ok, that wasn't clear to me. It might be that the reload button is only available when using the OpenFOAM loader.
|
2 Attachment(s)
Greetings to all!
I do love a good challenge :D And managing to win the challenge is a nice feeling as well :cool: A few hours ago I was playing around with ParaView, trying to hookup the position of a slice to a "python annotation" filter, which resulted in this: http://www.cfd-online.com/Forums/par...tml#post446231 post #5 And now I've managed to figure out how to override the default XML Server Proxy options for the Legacy VTK Reader. The instructions are as follows:
So, after reading this, my guess is that people will like ParaView a little bit more! Allowing users to hack into plugins without having to rebuild from source code, is a very big bonus! Best regards, Bruno PS: I did spend some time chasing my own tail, because while I was investigating inside the file "readers.xml", I stopped looking at the "legacyreader" entry, which only provides the VTK reader for a single file. This is only accessible through the Python scripting "paraview.simple.LegacyVTKReader"... until I stumbled upon the "vtkFileSeriesReader" classes in the "readers.xml" and searched for the one for legacy VTK files... and BOOM, it's this post you've read above :D. |
Great!!!
Hey wyldckat,
THANK YOU SO MUCH for this plugin!! It does exactly what's needed! Life is so much easier now!!! You're a hero! For all users that don't read your post I hope your plugin will find its way into the next paraview release. All the best, Eric PS: If you have some spare minutes in the future, a button that causes all data sets (time series) to be updated/reloaded in one go would be the icing on the cake :) |
Hi Eric,
This was kind of thing was suggest some time ago on the bug tracker, but unfortunately it was never implemented. In addition, the solution I gave on the previous post is just a hack, since the button seems to be out-of-place on the GUI :S Quote:
If so, that can easily be done with a macro:
Bruno References: |
For VTU files or animations?
Does this plugin work for VTU files or animations saved with .pvd?
|
Greetings mnajafiyazdi and welcome (back) to the forum!
Quote:
But if you can provide one example file or a set of example files, I can have a look into this. Furthermore, I suspect that the code and XML files above will not fully work with the latest ParaView 4.1.0 :( Best regards, Bruno |
Thanks a lot Bruno, it worked like a charm :):):)
Quote:
|
Quote:
Your xml plugin is really helpful, making life easier. As a result of plugin, I get a button 'modified' and a link to update the individual file series. However, if multiple series of files are there (vtk for geometry, vtk for particles etc.) then one has to update them one by one. Can you add some piece of code that can update things with a single click. :confused::confused: |
Quote:
|
All times are GMT -4. The time now is 06:09. |