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

[PyFoam] pyFoamPotentialRunner issue!

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 4 Post By gschaider
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2011, 12:09
Question pyFoamPotentialRunner issue!
  #1
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
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, 14:52
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 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, 16:06
Default
  #3
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
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, 18:26
Default
  #4
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 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, Hanzo and 1 others like this.
gschaider is offline   Reply With Quote

Old   July 4, 2011, 20:00
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 02:29
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
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


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
rhoCentralFoam inviscid airfoil issue (Foam::error::printStack(Foam::Ostream&) at ??) kmkb21 OpenFOAM Running, Solving & CFD 1 March 1, 2018 01:07
Convergence issue in natural convection problem chrisf90 FLUENT 5 March 5, 2016 08:30
Strange issue while launching ANSYS workbench in CentOS 6.4 Philip_C ANSYS 11 August 29, 2013 06:44
CyclicAMI Issue In OpenFOAM 2.2.0 prasant OpenFOAM Running, Solving & CFD 17 March 16, 2013 02:00
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 08:27


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