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

[OpenFOAM] Installation of ParaView on Ubuntu that exists in (Windows Subsystem Linux)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By k.farnagh
  • 1 Post By habitatguy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2017, 04:45
Default Installation of ParaView on Ubuntu that exists in (Windows Subsystem Linux)
  #1
New Member
 
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 12
k.farnagh is on a distinguished road
Hi

I'm going to install ParaView on Ubuntu which installed through Windows Subsystem Linux (WSL).

So I've downloaded ParaView v5.4 from https://www.paraview.org/download/
and installed it. (I don't know what is 'nightly builds' in that link so I ignor them)

Further more, I've followed 'Enabling Graphical Applications' that exist in https://openfoam.org/download/windows-10/

I could finally ran a case with openfoam but when I want to apply paraview below error appears:

Code:
kasra@Kasra-PC:/c/mnt/Users/kasra/tutorial/cavity$ paraFoam

ERROR: ParaView reader module library (PVFoamReader) does not exist
Please build the reader module before continuing:

    cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders
    ./Allwclean
    ./Allwmake

Using the native VTK/OpenFOAM reader instead
/opt/OpenFOAM/OpenFOAM-v1706/bin/paraFoam: 317: /opt/OpenFOAM/OpenFOAM-v1706/bin/paraFoam: paraview: not found
kasra@Kasra-PC:/c/mnt/Users/kasra/tutorial/cavity$
Would you please help me.
Sincerely Yours
k.farnagh is offline   Reply With Quote

Old   July 9, 2017, 10:03
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: To at least test if it works or not, you need to run the following command first:
Code:
export PATH=$PATH:/path/to/paraview/bin
Where you need to replace the path "/path/to/paraview/bin" with the actual path where you placed ParaView 5.4.0, including the path to its "bin" folder.
__________________
wyldckat is offline   Reply With Quote

Old   July 9, 2017, 10:50
Default
  #3
New Member
 
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 12
k.farnagh is on a distinguished road
Hi Dear Bruno

CFD online and Just Bruno you are the best. Thanks for reply.
As I mentioned early, the installation was performed in windows which caused that Linux kernel could not detect and apply it (as I recognized).

Then I enter
Code:
sudo apt install paraview
in bash to download it directly from Ubuntu.

With performing paraFoam the below message appears
Code:
ERROR: ParaView reader module library (PVFoamReader) does not exist
Please build the reader module before continuing:

    cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders
    ./Allwclean
    ./Allwmake

Using the native VTK/OpenFOAM reader instead
The last line caused going everything well. If you think there are some problem hidden please tell me. Thank you again.
Sincerely Yours
aniket020 likes this.
k.farnagh is offline   Reply With Quote

Old   July 9, 2017, 20:24
Default
  #4
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 answers:
Quote:
Originally Posted by k.farnagh View Post
The last line caused going everything well.
Sorry, but I didn't understand which line made it work properly?

Quote:
Originally Posted by k.farnagh View Post
If you think there are some problem hidden please tell me.
I'm confused... first you stated that you downloaded ParaView 5.4.0 from paraview.org, but now you've gotten it via Ubuntu's apt?
Isn't the version available via apt an older version of ParaView?


Then again, if I understood you correctly, by using ParaView that was installed via apt, everything is working well, without the need to use the command I wrote in my previous comment.
wyldckat is offline   Reply With Quote

Old   July 10, 2017, 02:48
Default
  #5
New Member
 
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 12
k.farnagh is on a distinguished road
Hi Dear Bruno,

I haven't any problem now.

In first try I've installed paraview in windows via .exe file which downloaded from its official site. this approach not worked and I couldn't invoke paraview from bash.

In 2nd try I've installed paraview in (WSL) via apt command. this approach works properly.

In previous comment I tried to describe how the problem can be solved for who has same problem.

As you can see in previous comments, both approaches led to same error but in 2nd the native VTK/OpenFOAM reader module library used instead of paraview reader module (I don't know what I guess is correct or not).

The only question that remains is about error. Is it important to be solved?How can I solve it?

Thanks for your consideration
Sincerely Yours
k.farnagh is offline   Reply With Quote

Old   July 10, 2017, 08:02
Default
  #6
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 answers:
  1. The ParaView installation for Windows should be run on Windows. You would need to run it outside of bash.
  2. Within WSL:
    1. In order to not get the message about the "ParaView reader module", run paraFoam with the option "-builtin":
      Code:
      paraFoam -builtin
    2. In order to not have to always write it, you can create an alias command at the end of the file "~ /.bashrc" like this:
      Code:
      alias paraFoam='paraFoam -builtin'
      You will then either need to start a new terminal (command window) or run:
      Code:
      source ~/.bashrc
  3. In order to use ParaView outside of WSL, you can run inside WSL the following command to create the file that is used by ParaView:
    Code:
    paraFoam -touch -builtin
    "-touch" option will lead to the creation of a file with the name of the case and the file extension ".foam" that can be opened directly in ParaView.
wyldckat is offline   Reply With Quote

Old   July 10, 2017, 09:31
Default
  #7
New Member
 
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 12
k.farnagh is on a distinguished road
Hi Dear Bruno,
Thanks for great information that is useful.
k.farnagh is offline   Reply With Quote

Old   February 10, 2021, 07:50
Default
  #8
New Member
 
Tomas
Join Date: Mar 2019
Posts: 9
Rep Power: 7
habitatguy is on a distinguished road
Hi!


I am using OpenFOAM v2012 through WSL. I have installed ParaView on Windows. Is there anyway to open a .foam file directly from bash on WSL? My $FOAM_RUN directory is in the original location, and although I can access it through Windows File Explorer it would be a lot simpler to open the .foam file from bash.



Thank you!
seyfigirgin likes this.
habitatguy is offline   Reply With Quote

Old   November 20, 2023, 10:40
Default
  #9
New Member
 
Join Date: Nov 2023
Posts: 5
Rep Power: 3
vv123 is on a distinguished road
Quote:
Originally Posted by habitatguy View Post
Hi!


I am using OpenFOAM v2012 through WSL. I have installed ParaView on Windows. Is there anyway to open a .foam file directly from bash on WSL? My $FOAM_RUN directory is in the original location, and although I can access it through Windows File Explorer it would be a lot simpler to open the .foam file from bash.



Thank you!
Hi Tomas,

I have the same question. Did you get to a solution in the mean time? Thanks!
vv123 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] Installation ParaView for Windows version of openFOAM kasra karimi ParaView 14 September 8, 2018 15:06
[OpenFOAM.org] Installation problem for paraView 4.1 to go with OpenFOAM-2.4.0-MNF deepbandivadekar OpenFOAM Installation 2 October 25, 2017 09:45
[OpenFOAM] Paraview usage in Windows archeoptyrx ParaView 1 August 28, 2013 16:13
Thumbs up Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04 AlanR OpenFOAM Installation 8 December 18, 2009 12:14
Linux to Windows (dual boot system) Alex Main CFD Forum 9 May 3, 2007 04:36


All times are GMT -4. The time now is 11:45.