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

[OpenFOAM] Paraview transfering slices to other simulations

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By Friendly
  • 1 Post By forgeanalytics
  • 1 Post By forgeanalytics
  • 2 Post By Friendly

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2018, 16:53
Default Paraview transfering slices to other simulations
  #1
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
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
pconen likes this.
Friendly is offline   Reply With Quote

Old   January 26, 2018, 17:29
Default
  #2
New Member
 
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8
forgeanalytics is on a distinguished road
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.
hwangpo likes this.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers
forgeanalytics is offline   Reply With Quote

Old   January 27, 2018, 10:20
Default
  #3
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
Hi,

thank you very much for your reply.

I had the same thought but experienced some troubles. Especially with the following part:

Quote:
Originally Posted by forgeanalytics View Post
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.
I am not getting asked these two options. I open another simulation, click on "load state" to load the settings of my previous simulation and then a windows pops up with the titel "Fix Paths in State Filed". I can shoose between "ok" and "close without saving".

What am I doing wrong?
Friendly is offline   Reply With Quote

Old   January 27, 2018, 11:11
Default
  #4
New Member
 
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8
forgeanalytics is on a distinguished road
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.
pconen likes this.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers
forgeanalytics is offline   Reply With Quote

Old   January 28, 2018, 12:37
Default
  #5
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
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"/>
3. Replace your_case with the file Name of other cases.


Thanks again, great help!

Friendly
hwangpo and pconen like this.
Friendly 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
[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


All times are GMT -4. The time now is 00:25.