CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing > OpenFOAM Paraview & paraFoam

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

Register Blogs Members List Search Today's Posts Mark Forums Read

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: 6
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,613
Blog Entries: 42
Rep Power: 116
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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: 6
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
k.farnagh is offline   Reply With Quote

Old   July 9, 2017, 20:24
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,613
Blog Entries: 42
Rep Power: 116
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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: 6
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,613
Blog Entries: 42
Rep Power: 116
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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: 6
k.farnagh is on a distinguished road
Hi Dear Bruno,
Thanks for great information that is useful.
k.farnagh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation ParaView for Windows version of openFOAM kasra karimi OpenFOAM Paraview & paraFoam 14 September 8, 2018 15:06
[foam-extend.org] FOAM on Windows, Linux and Mac hjasak OpenFOAM Installation 7 January 24, 2016 07:54
Ubuntu 12.10 + openfoam2.2.0 ==> paraview error message peteryuan OpenFOAM Installation 6 August 18, 2013 19:00
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 08:50.