|
[Sponsors] |
[PyFoam] why pyFoamPlotRunner doesn't plot continuity residuals? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 30, 2013, 09:56 |
why pyFoamPlotRunner doesn't plot continuity residuals?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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
__________________
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. |
|
April 30, 2013, 13:20 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
April 30, 2013, 14:06 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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.
__________________
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. |
|
April 30, 2013, 15:18 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 1, 2013, 13:13 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
why execution time is like this figure?(clock time lines are vertical.why?)
and whats the difference between cpu and clock time?
__________________
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. |
|
May 1, 2013, 14:17 |
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 3, 2013, 17:08 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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.
__________________
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. |
|
May 4, 2013, 08:26 |
|
#8 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If you have to ask you don't need it
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 4, 2013, 08:56 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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
__________________
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. Last edited by immortality; May 4, 2013 at 09:33. |
|
May 4, 2013, 13:18 |
|
#10 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 probeDisplay.py? Don't know that command
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 5, 2013, 07:13 |
|
#11 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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
__________________
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Tutorials] Tutorial of how to plot residuals ! | wolle1982 | OpenFOAM Community Contributions | 172 | December 6, 2024 07:20 |
plot residuals in multiregion solver | val46 | OpenFOAM | 4 | December 12, 2016 07:06 |
Plot Residuals in each Outer Iteration using foamLog or PyFoam | coolcrasher | OpenFOAM Running, Solving & CFD | 1 | October 30, 2015 11:41 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |