CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] ParaView 5.7.0 and OpenFoam v1906 on Windows

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By mm66

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2019, 20:04
Question ParaView 5.7.0 and OpenFoam v1906 on Windows
  #1
New Member
 
Josh
Join Date: Jul 2019
Posts: 3
Rep Power: 7
MrTod is on a distinguished road
Hello,

I recently installed OpenFoam for Windows using openFoam Installation on Windows instructions: https://www.openfoam.com/download/in...ry-windows.php

I am able to run a simulation in openFOAM, but as I was going through the well known cavity tutorial, I found the the paraView command wasn't functioning.

I installed ParaView but I'm getting the following error when I enter the "paraFoam" command as per the tutorial:

Cannot us ParaView reader module library (PVFoamReader)
The PV_PLUGIN_PATH environment value is not set

Continuing with builtin reader: paraFoam -vtk

/opt/OpenFOAM/openFOAM-v1906/bin/paraFoam: line 326: paraview: command not found


I have yet to find a solution as was wondering if anyone has seen this before and knows what I missed in the setup or what I need to do to correct it.

Thank you!
MrTod is offline   Reply With Quote

Old   July 16, 2019, 19:39
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Quoting from the page you provided the link:
Quote:
How can I post process the results from OpenFOAM? I am unable to launch Paraview/ParaFoam from terminal?

You will need to install ParaView for Windows separately from ParaView. Create a file with the suffix ”.foam” e.g. type the command ”touch a.foam” in your case folder. Launch ParaView and browse the case folder. Open the file with suffix ”.foam” to start the post processing.
__________________
wyldckat is offline   Reply With Quote

Old   July 16, 2019, 21:15
Default
  #3
New Member
 
Josh
Join Date: Jul 2019
Posts: 3
Rep Power: 7
MrTod is on a distinguished road
Somehow I forgot to add that I did install paraview from the website provided in the readme and created a file named "cavity.foam" in the case directory and still got that error.
MrTod is offline   Reply With Quote

Old   July 17, 2019, 03:25
Default
  #4
Member
 
ingraban's Avatar
 
Ingo Riess
Join Date: Jun 2019
Location: Switzerland
Posts: 40
Rep Power: 7
ingraban is on a distinguished road
I use OpenFoam v1812 on Windows. I am also unable to start Paraview from the Ubuntu terminal. I use Paraview 5.6.0 for Windows (launch it from the Windows icon).

Last edited by ingraban; July 17, 2019 at 09:57.
ingraban is offline   Reply With Quote

Old   July 17, 2019, 19:44
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Wow! This is one of those interesting perspective problems, where the brain can fill in the gaps when data is missing... the website does have a critical typo, where:
Quote:
You will need to install ParaView for Windows separately from ParaView.
[...]
Launch ParaView and browse the case folder.
  • So on the first sentence is not stating explicitly that it needs ParaView to be installed separately from the Docker installation and instead be installed on Windows.
  • The second one is assuming the person understood the first sentence correctly, i.e. to do it on Windows...
OK, bug tracker here I go...

edit: Done: https://develop.openfoam.com/Develop...us/issues/1377
__________________

Last edited by wyldckat; July 17, 2019 at 19:54. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   July 18, 2019, 22:47
Default
  #6
New Member
 
Josh
Join Date: Jul 2019
Posts: 3
Rep Power: 7
MrTod is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Wow! This is one of those interesting perspective problems, where the brain can fill in the gaps when data is missing... the website does have a critical typo, where:
  • So on the first sentence is not stating explicitly that it needs ParaView to be installed separately from the Docker installation and instead be installed on Windows.
  • The second one is assuming the person understood the first sentence correctly, i.e. to do it on Windows...
OK, bug tracker here I go...

edit: Done: https://develop.openfoam.com/Develop...us/issues/1377
This is what I ended up finding out too. When I run through Windows it works properly. Have to open the a.foam file in ParaView via Windows which wasn't made explicitly clear.
MrTod is offline   Reply With Quote

Old   July 19, 2019, 01:20
Smile
  #7
New Member
 
Akash Patel
Join Date: Dec 2018
Location: Champaign, IL, USA
Posts: 20
Rep Power: 8
akashpatel95 is on a distinguished road
Quote:
Originally Posted by MrTod View Post
Hello,

I recently installed OpenFoam for Windows using openFoam Installation on Windows instructions: https://www.openfoam.com/download/in...ry-windows.php

I am able to run a simulation in openFOAM, but as I was going through the well known cavity tutorial, I found the the paraView command wasn't functioning.

I installed ParaView but I'm getting the following error when I enter the "paraFoam" command as per the tutorial:

Cannot us ParaView reader module library (PVFoamReader)
The PV_PLUGIN_PATH environment value is not set

Continuing with builtin reader: paraFoam -vtk

/opt/OpenFOAM/openFOAM-v1906/bin/paraFoam: line 326: paraview: command not found


I have yet to find a solution as was wondering if anyone has seen this before and knows what I missed in the setup or what I need to do to correct it.

Thank you!

Try using "paraFoam -builtin" command. The best thing about this command is that it creates temporary .foam file automatically and clean up that file after closing paraview.
akashpatel95 is offline   Reply With Quote

Old   July 21, 2019, 21:54
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by akashpatel95 View Post
Try using "paraFoam -builtin" command. The best thing about this command is that it creates temporary .foam file automatically and clean up that file after closing paraview.
Quick answer: Since ParaView is missing from within the Docker container, this is still somewhat usable, namely by running:
Code:
paraFoam -builtin -touch
fantomas242 likes this.
wyldckat is offline   Reply With Quote

Old   December 11, 2019, 09:59
Default
  #9
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Quote:
Originally Posted by ingraban View Post
I use OpenFoam v1812 on Windows. I am also unable to start Paraview from the Ubuntu terminal. I use Paraview 5.6.0 for Windows (launch it from the Windows icon).
Hi Ingo,

Are you using the Windows Subsystem for Linux (WSL)?
mm66 is offline   Reply With Quote

Old   December 12, 2019, 05:46
Default
  #10
Member
 
ingraban's Avatar
 
Ingo Riess
Join Date: Jun 2019
Location: Switzerland
Posts: 40
Rep Power: 7
ingraban is on a distinguished road
Quote:
Originally Posted by mm66 View Post
Hi Ingo,

Are you using the Windows Subsystem for Linux (WSL)?
Actually, I don't know . During installation, I followed youtube tutorial and installed a Ubuntu App (by Canonical Group Limited) on Windows 10. So far, it works fine. And OpenFoam is not even significantly slower than my colleague's installation on Ubuntu.
ingraban is offline   Reply With Quote

Old   December 12, 2019, 08:43
Default
  #11
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Yes, that's WSL and by default graphical applications cannot run there.
However, there are two options to run Paraview.
1. Install Paraview on Windows: after completion of simulation by openFoam, run:
Code:
foamToVTK
This will generate some files which can be fed to Paraview on Windows for visualization and post processing. Windows C drive (for example) can be accessed by Ubuntu at:
Code:
cd /mnt/c/
Or you can access Ubuntu files in Windows at:
Code:
C:/Users/your...user.../Appdata/local/packages/Canonical.../LocalState/rootfs
2. Install Paraview on Ubuntu: you need to install an Xserver software on Windows (such as VcXsrv). Once the installation is complete, then run the software and select 0 as the Display Number, then go to Ubuntu and open a terminal and put this:
Code:
echo "export DISPLAY=:0" >> ~/.bashrc
Then run:
Code:
. ~/.bashrc
Wait for it to complete and preferably there should be no error.
Now once simulations in openFoam are completed run:
Code:
paraFoam
This should do the trick.

Hope this helps...
ingraban likes this.
mm66 is offline   Reply With Quote

Old   December 12, 2019, 09:26
Default
  #12
Member
 
ingraban's Avatar
 
Ingo Riess
Join Date: Jun 2019
Location: Switzerland
Posts: 40
Rep Power: 7
ingraban is on a distinguished road
Hi mm66, thank you for responding, but I did not ask the original question. My installation of ParaView for Windows is working fine. Still, your posting will be helpful to other users, I'm sure.
ingraban is offline   Reply With Quote

Old   December 12, 2019, 09:28
Default
  #13
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Quote:
Originally Posted by ingraban View Post
Hi mm66, thank you for responding, but I did not ask the original question. My installation of ParaView for Windows is working fine. Still, your posting will be helpful to other users, I'm sure.
Oh, I misunderstood, haha!
Good luck foaming
mm66 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 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
Updated native OpenFOAM reader for ParaView 5.3 opencfd OpenFOAM Announcements from ESI-OpenCFD 4 July 13, 2017 11:14
Difference between OpenFOAM on Centos 7 and On Windows 10 (cygwin) JensGoldberg OpenFOAM Programming & Development 0 November 10, 2016 04:30
Caelus: fork of OpenFOAM cnsidero OpenFOAM Announcements from Other Sources 7 November 11, 2014 23:55
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 20:26.