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

[PyFoam] PyFoam BasicRunner producing LinuxMem error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2016, 17:09
Default PyFoam BasicRunner producing LinuxMem error
  #1
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19
tas38 is on a distinguished road
I am utilizing PyFoam to run a number of OpenFOAM cases wherein the value of the velocity on a boundary is parametrically varied. PyFoam works well but I continue to get the following error sporadically:

Code:
Getting LinuxMem: [Errno 2] No such file or directory: '/proc/19787/status'
I have isolated the error to the following lines in my python run script:

Code:
run=BasicRunner(argv=[solver,"-case",case],silent=True,noLog=True)
run.start()
The solver is simpleFoam and case is the name of the case directory.
OpenFOAM version 2.3.0.
PyFoam version 0.6.5
Ubuntu 12.04.05

The script still runs just fine and produces the desired output, but I would like to eliminate this error. Any help would be much appreciated.
tas38 is offline   Reply With Quote

Old   October 5, 2016, 12:22
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by tas38 View Post
I am utilizing PyFoam to run a number of OpenFOAM cases wherein the value of the velocity on a boundary is parametrically varied. PyFoam works well but I continue to get the following error sporadically:

Code:
Getting LinuxMem: [Errno 2] No such file or directory: '/proc/19787/status'
I have isolated the error to the following lines in my python run script:

Code:
run=BasicRunner(argv=[solver,"-case",case],silent=True,noLog=True)
run.start()
The solver is simpleFoam and case is the name of the case directory.
OpenFOAM version 2.3.0.
PyFoam version 0.6.5
Ubuntu 12.04.05

The script still runs just fine and produces the desired output, but I would like to eliminate this error. Any help would be much appreciated.
That just means that the solver ended very quickly. PyFoam looks at the file /proc/<pid>/status to find out how much memory the process with the process ID <pid> uses. If the process ends before PyFoam can have a first look at the file the file is gone and you get the above error message. Nothing harmful happens. Any solution for this cosmetic problem: don't bother your computer with tiny cases
ananthajit02 likes 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
gschaider is offline   Reply With Quote

Old   October 5, 2016, 12:29
Default
  #3
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19
tas38 is on a distinguished road
Thanks Bernhard. I thought it had to do with the speed with which the cases were running as inserting a few time.sleep() remedied the situation. I will keep this in mind when running small cases for debugging purposes.
tas38 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 01:10
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 21:15.