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

GnuPlot does not work.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By NotOverUnderated

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2024, 07:08
Default GnuPlot does not work.
  #1
New Member
 
Ashraf Khlaed
Join Date: Jan 2024
Posts: 2
Rep Power: 0
ahamed68 is on a distinguished road
Hello colleagues,
I want to plot the residual of my Openfoam case by using pyFoamPlotWacher command but unfortunately, it didn't plot anything
after I wrote the command it gave me many lines but I found these lines may be the reason for the problem, any suggestions to solve it?
-----------------------------------------------------------
ashraf$ pyFoamPlotWatcher.py log.icoFoam

gnuplot: unable to open display ''
gnuplot: X11 aborted.

gnuplot: unable to open display ''
gnuplot: X11 aborted.

gnuplot: unable to open display ''
gnuplot: X11 aborted.

gnuplot: unable to open display ''
gnuplot: X11 aborted.

gnuplot: unable to open display ''
gnuplot: X11 aborted.
ahamed68 is offline   Reply With Quote

Old   January 28, 2024, 07:22
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
What Operating system are you using?
ahamed68 likes this.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Old   January 29, 2024, 02:44
Default
  #3
New Member
 
Ashraf Khlaed
Join Date: Jan 2024
Posts: 2
Rep Power: 0
ahamed68 is on a distinguished road
i am using windows 11 as an operating system and, Ubuntu is running using Windows sup system for Linux.
ahamed68 is offline   Reply With Quote

Old   January 29, 2024, 05:02
Default
  #4
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
GUI apps should work under WSL2 on Windows 11.

Please take a look at this thread: https://askubuntu.com/questions/1397...pen-x11-window
gnuplot under the hood, run this command:

Code:
export DISPLAY="$(hostname).local:0.0"
pyFoamPlotWatcher.py log.icoFoam
In case that didn't work, Please follow the steps here (under the section Graphical applications (X11) within WSL):

https://develop.openfoam.com/Develop...x11-within-wsl

I hope this helps
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated 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
problem with gnuplot saeed jamshidi OpenFOAM Pre-Processing 1 November 1, 2023 11:32
Using gnuplot to plot probe data Rotidpor OpenFOAM 3 March 9, 2022 05:44
How to access gnuplot from OpeanFOAM v2106 on macOS? atav OpenFOAM 0 November 11, 2021 11:53
Companies that lease software & hardware for cloud-based work? Catthan ANSYS 0 June 18, 2014 10:53
Do all CFD analysts have to do some hands-on work except PhDs? e13drd Main CFD Forum 2 March 17, 2014 14:56


All times are GMT -4. The time now is 15:59.