CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   why pyFoamPlotRunner doesn't plot continuity residuals? (http://www.cfd-online.com/Forums/openfoam-post-processing/117004-why-pyfoamplotrunner-doesnt-plot-continuity-residuals.html)

immortality April 30, 2013 08:56

why pyFoamPlotRunner doesn't plot continuity residuals?
 
is it due to output of rhoCentralFoam and I have to modify it or can do another thing with pyFoam to plot?
Code:

pyFoamPlotRunner.py --hardcopy --with-courant --no-pickled-file --procnr=4 rhoPimpleFoam
and what does --no-pickled-file do in the command?

gschaider April 30, 2013 12:20

Quote:

Originally Posted by immortality (Post 424167)
is it due to output of rhoCentralFoam and I have to modify it or can do another thing with pyFoam to plot?
Code:

pyFoamPlotRunner.py --hardcopy --with-courant --no-pickled-file --procnr=4 rhoPimpleFoam
and what does --no-pickled-file do in the command?

Have you used --help to look at the documentation?

Usually in the *.analzed directory you find a file with all the data necessary to reproduce the plots. --no-pickled-file obviously doesn't write this.

immortality April 30, 2013 13:06

help of the pyfoam?
I have been using that for rhoPimpleFoam without any problem.it plots residuals for rhoCentralFoam but not continuity residuals.
where can i find some explanations about its other options? i couldn't find any in pyfoam contrib.

gschaider April 30, 2013 14:18

Quote:

Originally Posted by immortality (Post 424246)
help of the pyfoam?

I think I mention it in every presentation/webpage about pyFoam that for every utility if you add the option --help that you get a complete list of the options plus description

Quote:

Originally Posted by immortality (Post 424246)
I have been using that for rhoPimpleFoam without any problem.it plots residuals for rhoCentralFoam but not continuity residuals.
where can i find some explanations about its other options? i couldn't find any in pyfoam contrib.

PyFoam looks for a line like "Time = ...". If it finds that then it should print residuals. If no info about continuity is printed then no continuity will be plotted

immortality May 1, 2013 12:13

1 Attachment(s)
why execution time is like this figure?(clock time lines are vertical.why?:confused:)
and whats the difference between cpu and clock time?

gschaider May 1, 2013 13:17

Quote:

Originally Posted by immortality (Post 424464)
why execution time is like this figure?(clock time lines are vertical.why?:confused:)
and whats the difference between cpu and clock time?

CPU is the time used by the CPU. Clock is the time in the real world. They may differ if the process doesn't get the whole CPU. Clock-time is only printed with a resolution of 1s. Thus the "vertical" lines. Look at the output of the solver

immortality May 3, 2013 16:08

is there a simple instruction on how reproduce graphs from .analyzed file?when it will be useful?
and i didn't find out what does --raise option do.:)

gschaider May 4, 2013 07:26

Quote:

Originally Posted by immortality (Post 425083)
is there a simple instruction on how reproduce graphs from .analyzed file?when it will be useful?

With the pyFoamRedo.py-utility. It is useful if you have large logs (in the GB-range) that would take quite some time to process with the pyFoamPlotWatcher. If you haven't run into that problem yet you don't need the utility

Quote:

Originally Posted by immortality (Post 425083)
and i didn't find out what does --raise option do.:)

If you have to ask you don't need it

immortality May 4, 2013 07:56

why after plotting residuals by pyFoamPlotWatcher.py from log file it waits and when use ctrl+c the figure becomes disappeared.how can save the residual figure after run?(I think this would be a good way to have residuals altogether after ending of run)
and this command doesn't work:
Code:

probeDisplay.py
Code:

ehsan@Ehsan-com:~/Desktop/shock_tube_and_backwards/shock_tube_3.5Mpa$ probeDisplay.py
probeDisplay.py: command not found

I just want to know about --raise option.:)

gschaider May 4, 2013 12:18

Quote:

Originally Posted by immortality (Post 425168)
why after plotting residuals by pyFoamPlotWatcher.py from log file it waits and when use ctrl+c the figure becomes disappeared.how can save the residual figure after run?(I think this would be a good way to have residuals altogether after ending of run)

--help is your friend: --hardcopy already does that

Closing windows after Ctrl-C is a design decision: closing 10 windows "by hand" as well would be annoying. And BTW: you can override this behaviour with --persist

Quote:

Originally Posted by immortality (Post 425168)
and this command doesn't work:
Code:

probeDisplay.py
Code:

ehsan@Ehsan-com:~/Desktop/shock_tube_and_backwards/shock_tube_3.5Mpa$ probeDisplay.py
probeDisplay.py: command not found

I just want to know about --raise option.:)

probeDisplay.py? Don't know that command

immortality May 5, 2013 06:13

sorry.that was a script.I executed it in paraview withis error:
Code:

  p, li { white-space: pre-wrap; }  Python 2.7.2+ (default, Jul 20 2012, 22:32:25)
 [GCC 4.6.1] on linux2
 >>> from paraview.simple import *
 Traceback (most recent call last):
   File "<string>", line 4, in <module>
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
     import paraview, re, os, os.path, new, sys, vtk
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
     from vtkCommonPython import *
 ImportError: No module named vtkCommonPython
  >>>
 Traceback (most recent call last):
   File "<string>", line 11, in <module>
   File "/usr/local/lib/python2.7/dist-packages/PyFoam/Paraview/__init__.py", line 15, in <module>
     from paraview import servermanager
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
     import paraview, re, os, os.path, new, sys, vtk
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
     from vtkCommonPython import *
 ImportError: No module named vtkCommonPython
 >>>
 >>>
 >>>
 Traceback (most recent call last):
   File "<string>", line 11, in <module>
   File "/usr/local/lib/python2.7/dist-packages/PyFoam/Paraview/__init__.py", line 15, in <module>
     from paraview import servermanager
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
     import paraview, re, os, os.path, new, sys, vtk
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
     from vtkCommonPython import *
 ImportError: No module named vtkCommonPython



All times are GMT -4. The time now is 04:19.