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

[PyFoam] doesn't plot residuals

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2015, 12:36
Default doesn't plot residuals
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi everyone,
when I want to run my case in 2.4.0 version of OF by this command as I had done before in 2.2.2 version
Code:
pyFoamPlotRunner.py --hardcopy --with-deltat --with-courant --procnr=4 rhoCentralFoamGasCont
this warning is shown and although it runs successfully but doesn't plot residuals as before
Code:
 PyFoam WARNING on line 142 of file /usr/local/lib/python2.7/dist-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/LogAnalysis/GeneralLineAnalyzer.py : Problem doing timelines could not convert string to float:  
Time = 1.8007576e-05
what could be the reason?
thanks a lot.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 22, 2015, 04:48
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
that error has resolved,now another error on gnuplot is shown, the graphs are written to disc but don't show while running the case.
Code:
 PyFoam WARNING on line 144 of file /usr/local/lib/python2.7/dist-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Execution/ParallelExecution.py : which can not find a match for rhoCentralFoamGasCont . Hoping for the best 

gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

^Z
[3]+  Stopped                 runPlot 4 rhoCentralFoamGasCont
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 27, 2015, 18:25
Default
  #3
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Hi,

I also get a similar error on Ubuntu 14.04.2 and OpenFOAM 2.4.0, if I type gnuplot and then set terminal the x11 type is not listed

Any luck finding what's wrong? Maybe I will try an earlier version of gnuplot.

Br


one-think@ubuntu:~/OpenFOAM/one-think-2.4.0/run/tutorials/incompressible/simpleFoam/pitzDaily$ pyFoamPlotRunner.py simpleFoam

gnuplot> set terminal x11
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list


gnuplot> set terminal x11 noraise
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.4.0-f0842aea0e77
Exec : simpleFoam
Date : Jun 27 2015
Time : 22:18:13
Host : "ubuntu"
PID : 75673
Case : /home/one-think/OpenFOAM/one-think-2.4.0/run/tutorials/incompressible/simpleFoam/pitzDaily
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
sigmaEps 1.3;
}

No finite volume options present


SIMPLE: convergence criteria
field p tolerance 0.01
field U tolerance 0.001
field "(k|epsilon|omega)" tolerance 0.001


Starting time loop

streamLine streamLines:
automatic track length specified through number of sub cycles : 5

Time = 1

smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 0.0259999, No Iterations 1
smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 0.0552193, No Iterations 1
GAMG: Solving for p, Initial residual = 1, Final residual = 0.0940796, No Iterations 22
time step continuity errors : sum local = 1.64619, global = -0.314315, cumulative = -0.314315
smoothSolver: Solving for epsilon, Initial residual = 0.10353, Final residual = 0.00344963, No Iterations 2
smoothSolver: Solving for k, Initial residual = 1, Final residual = 0.0392021, No Iterations 2
ExecutionTime = 0.21 s ClockTime = 1 s
jason is offline   Reply With Quote

Old   June 28, 2015, 09:43
Default
  #4
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Ok, so if you install gnuplot and then install gnuplot-x11 it then works ok. gnuplot-x11 is the driver to plot to the terminal and its not included in the main gnuplot package.
Doh.
jason is offline   Reply With Quote

Old   June 28, 2015, 11:13
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
type this in terminal:
Code:
sudo apt-get install gnuplot-x11
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality 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
[Tutorials] Tutorial of how to plot residuals ! wolle1982 OpenFOAM Community Contributions 171 February 20, 2024 03:55
How to plot residuals vs iterations using pyFoam... ata313ata Visualization & Post-Processing 1 February 6, 2018 05:34
Plot the residuals over all the domain Douglas OpenFOAM Post-Processing 0 June 27, 2017 17:01
plot residuals pigna OpenFOAM Running, Solving & CFD 2 December 19, 2014 03:32
How to plot residuals of all iterations in Fluent FJSJ FLUENT 4 September 20, 2013 10:47


All times are GMT -4. The time now is 13:35.