|
[Sponsors] |
[OpenFOAM] Paraview transfering slices to other simulations |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 26, 2018, 16:53 |
Paraview transfering slices to other simulations
|
#1 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 8 |
Hi,
it is possible to save your camera settings and use them for other simulations. But is it also possible to transfer your settings for sclices, streamlines and so on too? I have multiple cases of the same geometrie with different turbulence models and want to compare them. It would safe me a lot of work, if I could transfer my settings from case to case. Does anyone know if this is possible? I am thankful for any advice! Greetings, Friendly |
|
January 26, 2018, 17:29 |
|
#2 |
New Member
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8 |
It sounds like ParaView state files would be a good solution for you.
After you have your ParaView session set up as you'd like it, go to File >> Save State, and save it somewhere on your disk. Then, when you want to look at the other simulations, open ParaView and go to File >> Load State. You'll be asked to select "Load State Data File Options", where you can either load it from the same case, or choose "Search Files Under Specified Directory" which works well if your results files are all the same and all that differs is the case directory names, or you can choose "Choose File Names" and specifically identify the files to load. Once you've made your selection, hit "OK" and it will create the ParaView session for the simulation results you've specified. Alternatively, you can create Python scripts to do this work for you, but that will be a larger investment of your time. I've started writing a few how-to guides (https://forgeanalytics.io/blog/creat...s-in-paraview/), but they aren't comprehensive. Let me know if you have any trouble.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers |
|
January 27, 2018, 10:20 |
|
#3 | |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 8 |
Hi,
thank you very much for your reply. I had the same thought but experienced some troubles. Especially with the following part: Quote:
What am I doing wrong? |
||
January 27, 2018, 11:11 |
|
#4 |
New Member
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8 |
I may be using a newer version of ParaView than you.
Try this: Make a copy of the state file you saved, and open it in a text editor. You should find a number of file paths are identified in that file. Change those paths to apply to the next simulation you want to review, and save the file. Then load it in ParaView. Let me know if it works.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers |
|
January 28, 2018, 12:37 |
|
#5 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 8 |
Hi,
it worked as you said. Thank your very much, it safes me a huge load of work! For everyone with the same problem: 1. Open your .pvsm file (your state) 2. Search the following lines: Code:
<Property name="FileName" id="3749.FileName" number_of_elements="1"> <Element index="0" value="/home/student/Desktop/your_case/your_case.OpenFOAM"/> Thanks again, great help! Friendly |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Decomposed multiregion cases in Paraview with native reader | Yann | ParaView | 2 | January 16, 2019 05:48 |
[OpenFOAM.org] Paraview 5.4 in shell environment of5x - Segmentation fault (core dumped) | dslbkxd | OpenFOAM Installation | 1 | February 3, 2018 00:56 |
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) | chrisb2244 | OpenFOAM Installation | 2 | August 21, 2013 13:24 |
[General] Paraview launch & crash problems | dancfd | ParaView | 3 | January 17, 2013 12:04 |
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? | jaffar | ParaView | 0 | November 27, 2012 09:36 |