CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM

pyFoamPotentialRunner issue!

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

Like Tree4Likes
  • 3 Post By gschaider
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2011, 13:09
Question pyFoamPotentialRunner issue!
  #1
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 738
Blog Entries: 1
Rep Power: 13
Amir is on a distinguished road
Hi experts,
I have a problem with pyFoamPotentialRunner.py.
I use it in pitzDaily tutorials but after it sets case for potential solver it crashes!
here is the error:
Code:
Setting system-directory for potentialFoam
Traceback (most recent call last):
  File "/usr/local/bin/pyFoamPotentialRunner.py", line 5, in <module>
    PotentialRunner()
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py", line 42, in __init__
    nr=1)
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PyFoamApplication.py", line 155, in __init__
    result=self.run()
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py", line 128, in run
    pRefValue=self.opts.pRefValue)
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py", line 148, in __init__
    pot=SolutionDirectory(path.join(pre,"potentialFoam","cylinder"),archive=None,paraviewLink=False)
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 53, in __init__
    self.reread()
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 321, in reread
    if not force and stat(self.name)[ST_CTIME]<=self.lastReread:
OSError: [Errno 2] No such file or directory: '/usr/lib/OpenFOAM-1.6-ext/tutorials/basic/potentialFoam/cylinder'
Any suggestion?
Amir is offline   Reply With Quote

Old   July 4, 2011, 15:52
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,889
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Amir View Post
Hi experts,
I have a problem with pyFoamPotentialRunner.py.
I use it in pitzDaily tutorials but after it sets case for potential solver it crashes!
here is the error:
Code:
Setting system-directory for potentialFoam
Traceback (most recent call last):
  File "/usr/local/bin/pyFoamPotentialRunner.py", line 5, in <module>
    PotentialRunner()
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py", line 42, in __init__
    nr=1)
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PyFoamApplication.py", line 155, in __init__
    result=self.run()
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py", line 128, in run
    pRefValue=self.opts.pRefValue)
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py", line 148, in __init__
    pot=SolutionDirectory(path.join(pre,"potentialFoam","cylinder"),archive=None,paraviewLink=False)
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 53, in __init__
    self.reread()
  File "/usr/local/lib/python2.6/dist-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 321, in reread
    if not force and stat(self.name)[ST_CTIME]<=self.lastReread:
OSError: [Errno 2] No such file or directory: '/usr/lib/OpenFOAM-1.6-ext/tutorials/basic/potentialFoam/cylinder'
Any suggestion?
OK. What happens here is that the utility tries to copy fvSolution and fvSchemes (as these are different from the one that simpleFoam needs) from the case $FOAM_TUTORIALS/basic/potentialFoam/cylinder. There was a hickup that the debian packages of 1.6-ext copy the tutorials to the debin-conforming location (/usr/share/doc/something I think) but the $FOAM_TUTORIALS variable still points to the "old" location. Either set the $FOAM_TUTORIALS-variable to the "real" location or set a symbolic link from the location where the stuff is now to the location where OF expects it

Bernhard
gschaider is offline   Reply With Quote

Old   July 4, 2011, 17:06
Default
  #3
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 738
Blog Entries: 1
Rep Power: 13
Amir is on a distinguished road
Quote:
Originally Posted by gschaider View Post
OK. What happens here is that the utility tries to copy fvSolution and fvSchemes (as these are different from the one that simpleFoam needs) from the case $FOAM_TUTORIALS/basic/potentialFoam/cylinder. There was a hickup that the debian packages of 1.6-ext copy the tutorials to the debin-conforming location (/usr/share/doc/something I think) but the $FOAM_TUTORIALS variable still points to the "old" location. Either set the $FOAM_TUTORIALS-variable to the "real" location or set a symbolic link from the location where the stuff is now to the location where OF expects it

Bernhard
Thanks a lot Bernard,
You are right about different tutorials location; I fixed that and I got some results but after that I faced 2 warnings, maybe these are not very important but could you please have a look:
Code:
Setting system-directory for potentialFoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM Extend Project: Open source CFD        |
|  \\    /   O peration     | Version:  1.6-ext                               |
|   \\  /    A nd           | Web:      www.extend-project.de                 |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.6-ext
Exec   : potentialFoam -case . -writep
Date   : Jul 05 2011
Time   : 00:26:48
Host   : amir
PID    : 5198
Case   : /home/amir/OpenFOAM/amir-1.6-ext/run/myRun/simpleFoam/pitzDaily
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

// using new solver syntax:
p
{
solver          PCG;
preconditioner  DIC;
tolerance       1e-06;
relTol          0.01;
}

// using new solver syntax:
U
{
solver          PBiCG;
preconditioner  DILU;
tolerance       1e-05;
relTol          0.1;
}

// using new solver syntax:
k
{
solver          PBiCG;
preconditioner  DILU;
tolerance       1e-05;
relTol          0.1;
}

// using new solver syntax:
epsilon
{
solver          PBiCG;
preconditioner  DILU;
tolerance       1e-05;
relTol          0.1;
}

// using new solver syntax:
R
{
solver          PBiCG;
preconditioner  DILU;
tolerance       1e-05;
relTol          0.1;
}

// using new solver syntax:
nuTilda
{
solver          PBiCG;
preconditioner  DILU;
tolerance       1e-05;
relTol          0.1;
}

Reading field p

Reading field U


Calculating potential flow
DICPCG:  Solving for p, Initial residual = 1, Final residual = 0.00951731, No Iterations 172
continuity error = 0.166533
Interpolated U error = 0.000116283
mag(U): max: 27.0928 min: 0.125791
ExecutionTime = 0.23 s  ClockTime = 0 s

End

 PyFoam WARNING on line 196 of file /usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py : Trigger called: Resetting fvSchemes and fvSolution 
Killing PID 5197
 PyFoam WARNING on line 232 of file /usr/local/lib/python2.6/dist-packages/PyFoam/Execution/FoamThread.py : Process 5197 was already dead 
Getting LinuxMem: [Errno 2] No such file or directory: '/proc/5197/status'
Amir is offline   Reply With Quote

Old   July 4, 2011, 19:26
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,889
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Amir View Post
Thanks a lot Bernard,
You are right about different tutorials location; I fixed that and I got some results but after that I faced 2 warnings, maybe these are not very important but could you please have a look:
Code:
 PyFoam WARNING on line 196 of file /usr/local/lib/python2.6/dist-packages/PyFoam/Applications/PotentialRunner.py : Trigger called: Resetting fvSchemes and fvSolution 
Killing PID 5197
 PyFoam WARNING on line 232 of file /usr/local/lib/python2.6/dist-packages/PyFoam/Execution/FoamThread.py : Process 5197 was already dead 
Getting LinuxMem: [Errno 2] No such file or directory: '/proc/5197/status'
That's alright. The first warning means that everything was working as planned (the case now has the original fvS*-files). But you already guessed that.

The second warning means "your computer is too fast". Once the process that should supervise the solver had started up the solver itself was already finished. No problem here. Solution: get a slower machine
Amir, fumiya and Hanzo like this.
gschaider is offline   Reply With Quote

Old   July 4, 2011, 21:00
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quote:
Originally Posted by gschaider View Post
Solution: get a slower machine
Solution #2: Increase mesh resolution by 10x or 100x
Amir likes this.
wyldckat is offline   Reply With Quote

Old   July 5, 2011, 03:29
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 738
Blog Entries: 1
Rep Power: 13
Amir is on a distinguished road
Quote:
Originally Posted by gschaider View Post
That's alright. The first warning means that everything was working as planned (the case now has the original fvS*-files). But you already guessed that.

The second warning means "your computer is too fast". Once the process that should supervise the solver had started up the solver itself was already finished. No problem here. Solution: get a slower machine
Quote:
Originally Posted by wyldckat View Post
Solution #2: Increase mesh resolution by 10x or 100x
Dear Bernhard and Bruno,
Thank you very much for your helps
Amir is offline   Reply With Quote

Reply

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
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 09:27
snappyHexMesh Issue thomasnwalshiii OpenFOAM 3 March 15, 2011 15:49
Issue Involving Paraview MechE OpenFOAM 22 October 31, 2010 10:29
Issue 4 of adapco-online Sreenadh Jonnavithula Main CFD Forum 8 January 5, 2001 14:40
Issue 4 of adapco-online Sreenadh Jonnavithula CD-adapco 0 December 21, 2000 14:41


All times are GMT -4. The time now is 08:49.