blueCFD / Core

Coordination repository for the blueCFD-Core: Issue tracking, Wiki, project webpage and miscellaneous scripts
http://bluecfd.github.io/Core
49 stars 10 forks source link

Can't use foamMonitor on Windows, due to x11 terminal not existing for gnuplot #97

Closed wyldckat closed 4 years ago

wyldckat commented 6 years ago

The solution would be to replace the x11 entry for windows and remove the noraise persistent options.

However, this should be made a bit more generic, since there should be an option for exporting to PNG, SVG or any other image format...

s1291 commented 6 years ago

Currently I solve this by replacing x11 by wxt or some other terminals.

Mattiads1 commented 6 years ago

Hi, where are you replaced x11 by wxt terminal? I have the same problem, can you be more specific? Thanks

s1291 commented 6 years ago

@Mattiads1 : In windows, I think the terminal x11 does not exist, instead there are others, for example: qt Qt cross-platform interactive terminal. windows Microsoft Windows. wxt wxWidgets cross-platform interactive terminal. To see the complete list of the available terminals in gnuplot, open gnuplot and type: set terminal I think you got the idea. EDIT: Sorry I forgot to mention that foamMonitor is a shell script, you can find its location by executing the command which foamMonitor

wyldckat commented 6 years ago

My apologies for not giving more details on this sooner. I've gotten another question about this a few minutes ago and here are the steps to fix this:

  1. Start a new blueCFD-Core terminal.

  2. Run the following command:

    sed -i -e 's=set term x11=set term windows=' -e 's= persist noraise==' $(which foamMonitor)
  3. It should now be fixed and ready to work properly.

Note: You can replace the windows word in step 2, for wxt or qt, if you prefer another one.

@s1291: Which of the terminals qt, windows and wxt does it look better to you?

s1291 commented 6 years ago

@wyldckat : Hello Bruno, Personally I prefer the wxt terminal. Sometimes I change style to make the graphs look better, for e.g, I change the style of the grid, to get something like this: graphe

Mattiads1 commented 6 years ago

Thank you for the reply. I have fix the problem