|
[Sponsors] |
[OpenFOAM.org] X Server does not work on WSL2 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 19, 2023, 18:06 |
X Server does not work on WSL2
|
#1 |
Member
Luca
Join Date: Mar 2021
Location: Italy
Posts: 56
Rep Power: 5 |
Hi guys, I'm trying to install OpenFOAM 10 on Ubuntu 22.04 LTS, I'm running Linux on the WSL2, Windows 10.
I followed the exact instructions enlighted at the official link from The OpenFOAM Foundation (https://openfoam.org/download/windows/). Everything is fine until the enabling of graphical application; as I stated before, I followed exactly the same procedure by installing VcXsrv, but if I try to run gedit or paraFoam, basically nothing is working. XLaunch is running in the background but the only thing I see is the pointer blinking on the terminal without any window opening. I already used OpenFOAM few times ago with WSL1 but I didn't experienced this issue. The .bashrc file has these two strings at the end: Code:
. /opt/openfoam10/etc/bashrc export DISPLAY=<IP ADDRESS>:0 Thanks! |
|
April 20, 2023, 04:45 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Related topics:
You are better to use a Windows installation of ParaView. |
|
April 20, 2023, 05:07 |
|
#3 |
Member
Luca
Join Date: Mar 2021
Location: Italy
Posts: 56
Rep Power: 5 |
Ok, let's say to install ParaView directly on Windows and solving the problem. How can I manage the issue with gedit?
|
|
April 20, 2023, 05:46 |
|
#4 | |
Member
Alejandro Valeije
Join Date: Nov 2014
Location: Spain
Posts: 52
Rep Power: 12 |
Quote:
I do not get the question. Install paraview in Windows, and in the case folder generate a blank file with a ".openfoam" termination. For example, "case.openfoam". Then, open that file with paraView and when it asks for the reader type, select OpenFoam Reader, and then your case will be loaded. Much easier and better display than depending on the parafoam command and X acceleration Hope that helps. Best regards, |
||
April 20, 2023, 06:26 |
|
#5 | ||
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Quote:
Quote:
Cheers, Yann |
|||
April 20, 2023, 07:30 |
|
#6 | |
Member
Luca
Join Date: Mar 2021
Location: Italy
Posts: 56
Rep Power: 5 |
Thank you guys, as I mentioned before I used OpenFOAM few times ago mainly at the university, professors told us to go with X Server and since I did not experienced any issues my intention was to go in the exact same way.
Quote:
|
||
April 20, 2023, 08:11 |
|
#7 | |
Member
Alejandro Valeije
Join Date: Nov 2014
Location: Spain
Posts: 52
Rep Power: 12 |
Without further information, I would say that those problems might have been caused by the carriage return that Windows Notepad does.
With Notepad++, or using nano in the terminal you should be safe. I know some people that likes vim, but I hate it so much hahaha @Yann Nice trick the .foam instead .openfoam extension, I hadn't noticed so far Quote:
|
||
April 20, 2023, 08:36 |
|
#8 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Quote:
I've been doing this on a daily basis for years, no issues with it, as long as you remember to check it and convert from Windows to Linux if needed. Notepad++ maintain the original format of the file so if you open OpenFOAM files with it it will be fine. You just need to be careful when creating a new file from windows. Cheers, Yann |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[solids4Foam] elasticWallPressure no work in parallel. BC robin. | Neb | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 13 | June 6, 2023 09:49 |
Home PC, Play, Work (CFD) - AMD7950x or i9-13900K without complicated settings? | Mr.ZIMULAXION | Hardware | 3 | March 7, 2023 08:20 |
parallel InterFoam solving does not work (single core does work) | jordy | OpenFOAM Running, Solving & CFD | 0 | February 2, 2023 08:11 |
Viscous Adjoint does not work | AndreaMichelotti | SU2 | 0 | November 29, 2021 06:59 |
Installing SGE and getting CFX to work with it | shreyasr | Hardware | 1 | September 8, 2012 04:17 |