CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [PyFoam] doesn't plot residuals (https://www.cfd-online.com/Forums/openfoam-community-contributions/154527-doesnt-plot-residuals.html)

immortality June 16, 2015 11:36

doesn't plot residuals
 
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?:confused:
thanks a lot.

immortality June 22, 2015 03:48

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


jason June 27, 2015 17:25

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 June 28, 2015 08:43

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.

immortality June 28, 2015 10:13

type this in terminal:
Code:

sudo apt-get install gnuplot-x11


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