CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

pyFoam stuck: Text file busy

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2015, 05:15
Default pyFoam stuck: Text file busy
  #1
New Member
 
Chris Coutinho
Join Date: Jan 2015
Posts: 5
Rep Power: 2
cbcoutinho is on a distinguished road
Hello Foamers,

I have successfully used pyFoam in the past to plot residuals during runs, but now that I have upgraded to OF2.4.x there seems to be a compatibility issue. PyFoam just hangs at the first timestep. Running the case without pyFoam does not produce the error, so I don't think it has to do with my /system/ files, but I have attached them nonetheless. The command I am running is:

Code:
decomposePar -force -cellDist
mpiexec -np 4 renumberMesh -overwrite -parallel
pyFoamPlotRunner.py mpiexec -np 4 simpleFoam -parallel
And the resulting error message is:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.4.x-664271ec09a7
Exec   : simpleFoam -parallel
Date   : Jun 30 2015
Time   : 20:42:07
Host   : "linux-8o2d.site"
PID    : 8243
Case   : /home/chris/Dropbox/REDstack/spacerCFD/spacerCFD_2D/spacer2d-mapped
nProcs : 4
Slaves :
3
(
"linux-8o2d.site.8244"
"linux-8o2d.site.8245"
"linux-8o2d.site.8246"
)

Pstream initialized with:
floatTransfer      : 0
nProcsSimpleSum    : 0
commsType          : nonBlocking
polling iterations : 0
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 laminar
No finite volume options present


SIMPLE: convergence criteria
field p	 tolerance 1e-05
field U	 tolerance 1e-05


Starting time loop

Time = 1
Traceback (most recent call last):
  File "/usr/bin/pyFoamPlotRunner.py", line 4, in <module>
    __import__('pkg_resources').run_script('PyFoam==0.6.4', 'pyFoamPlotRunner.py')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1438, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/EGG-INFO/scripts/pyFoamPlotRunner.py", line 5, in <module>
    PlotRunner()
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Applications/PlotRunner.py", line 59, in __init__
    **kwargs)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Applications/PyFoamApplication.py", line 356, in __init__
    result=self.run()
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Applications/PlotRunner.py", line 142, in run
    run.start()
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Execution/BasicRunner.py", line 363, in start
    self.lineHandle(line)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Execution/GnuplotRunner.py", line 179, in lineHandle
    GnuplotCommon.lineHandle(self,line)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Execution/AnalyzedCommon.py", line 84, in lineHandle
    self.analyzer.analyzeLine(line)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/LogAnalysis/FoamLogAnalyzer.py", line 138, in analyzeLine
    self.analyzers[nm].doAnalysis(line)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/LogAnalysis/TimeLineAnalyzer.py", line 43, in doAnalysis
    self.notifyNewTime(m)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/LogAnalysis/TimeLineAnalyzer.py", line 32, in notifyNewTime
    self.notify(float(m.group(2)))
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/LogAnalysis/LogLineAnalyzer.py", line 65, in notify
    f(*data)
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/LogAnalysis/FoamLogAnalyzer.py", line 84, in setTime
    listener.timeChanged()
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Execution/StepAnalyzedCommon.py", line 39, in timeChanged
    self.picklePlots()
  File "/usr/lib/python2.7/site-packages/PyFoam-0.6.4-py2.7.egg/PyFoam/Execution/AnalyzedCommon.py", line 334, in picklePlots
    move(pickleFile+".tmp",pickleFile)
  File "/usr/lib64/python2.7/shutil.py", line 303, in move
    os.unlink(src)
OSError: [Errno 26] Text file busy: './Gnuplotting.analyzed/pickledPlots.tmp'
Attached Files
File Type: gz tarball.tar.gz (1.5 KB, 0 views)
cbcoutinho is offline   Reply With Quote

Reply

Tags
pyfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 22 August 26, 2013 11:06
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


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