|
[Sponsors] |
[OpenFOAM.org] paraview 5.6 on Ubuntu 18.04 (Windows 10 WSL) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 11, 2019, 07:13 |
paraview 5.6 on Ubuntu 18.04 (Windows 10 WSL)
|
#1 |
New Member
Neil Turner
Join Date: Jan 2019
Posts: 2
Rep Power: 0 |
Last year I was using OpenFoam happily having followed the instructions at openfoam.org/download/windows without really understanding what I was doing and everything worked beautifully. Before Christmas, for unrelated reasons, I had to remove and reinstall a lot of the software on that computer, including the Ubuntu application. Now I have tried to install OpenFoam again the same way, and while the OpenFoam part of the installation works just fine, the paraview part no longer functions properly.
I can see here that the installation I had before would probably have had an earlier version of paraview. Also that the new version uses a different OpenGL than the older versions. I suspect it is this that makes the problem. I have tried setting the environment variable LIBGL_ALWAYS_INDIRECT but it makes no difference. The result of any paraview command is the same: Code:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-neil' failed to get the current screen resources Xlib: extension "MIT-SHM" missing on display "localhost:0.0". Can someone help to make paraview 5.6 work under WSL or help me to revert back to the paraview I had before (I suspect it was 5.4, but I'm not completely sure)? Thanks. Neil |
|
January 12, 2019, 09:34 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Neil and welcome to the forum,
I feel like I must apologize for allowing this to happen, but I haven't had time to contribute in order to avoid from this happening in the first place The simplest solution is to go back in time, namely to install an older OpenFOAM 6 Deb package that still binds to ParaView 5.4.0, until this issue is sorted out. This can be done with the following commands: Code:
sudo apt remove paraviewopenfoam56 sudo apt install paraviewopenfoam54 sudo apt install openfoam6=20181130 sudo apt-mark hold openfoam6 Then when the fix is implemented, you can unblock the package "openfoam6" from upgrading, by running: Code:
sudo apt-mark unhold openfoam6 I did try a more convoluted way of getting a more recent version of OpenFOAM 6 Deb package to work with the "openfoamparaview54" package, but it did not work I still have to look into this better, so once I've gotten a better understanding on how to solve this issue on all platforms, I'll open a bug report on how to fix this. Best regards, Bruno
__________________
|
|
January 14, 2019, 12:21 |
|
#3 |
New Member
Neil Turner
Join Date: Jan 2019
Posts: 2
Rep Power: 0 |
Thanks for your suggestions. Before you responded, I installed ParaView on Windows, and ran all of the OpenFOAM cases in a Windows directory mounted in /mnt. This isn't enough of a drawback for me to go back and try what you have suggested.
Thanks for looking. Neil |
|
March 5, 2019, 18:58 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick note: This issue should be fixed in the more recent Deb packages from the OpenFOAM Foundation. In CFD Direct's newsletter that I received today was the indication that this issue should be fixed, although I haven't tested it myself.
|
|
January 20, 2020, 17:19 |
|
#5 |
Member
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9 |
hi wyldckat .I've also compiled openfoam 7 in ubuntu 1804 running on the wls for windows 10.
I get the same error described before. this is the link where I found the source code https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04 after compiling openfoam I get this error when I try to run paraview/paraFoam PHP Code:
|
|
January 20, 2020, 19:38 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
__________________
|
|
January 21, 2020, 05:49 |
|
#7 |
Member
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9 |
Hi wyldckat,
I've installed openfoam 1706 for windows following these instruction https://www.openfoam.com/download/in...windows-10.php I've enabled Xming with this of version and all works fine. When I try to run of7 together with Xming, I get the previous error. I correctly defined an alias for the two versions and the source of the respective openfoam environment works properly... to enable graphical application I've added at the end of the bashrc file the line echo "export DISPLAY=:0" >> ${HOME}/.bashrc graphical application works fine only under of1906 but I want to run it properly also with of7 |
|
January 29, 2020, 09:47 |
|
#8 |
Member
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9 |
hi guys, problem partially solved by following this link
: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 the only problem is that for large case size Xming on WLS experienced some difficulties on loading paraFoam.. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 3.0.1 in Ubuntu 18.04 | jlr | OpenFOAM Installation | 4 | January 3, 2019 13:57 |
[OpenFOAM.org] (Script)OpenFOAM 2.3.0 and Paraview for Ubuntu 14.04 | p0kerus | OpenFOAM Installation | 2 | December 2, 2014 08:54 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Problems with visualization (bundled ParaView 3.8) in Ubuntu 10.04 | eiffleduarte | OpenFOAM | 1 | July 13, 2010 18:59 |
Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04 | AlanR | OpenFOAM Installation | 21 | September 17, 2009 12:27 |