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

[PyFoam] tutorial problems

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Asghari_M

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 28, 2015, 03:49
Default tutorial problems
  #1
Senior Member
 
Mehdi Asghari
Join Date: Feb 2010
Posts: 127
Rep Power: 16
Asghari_M is on a distinguished road
Hi All Foamers,

I am going to learn PyFoam programming by doInletVariation.py tutorial file.
Pyton program for this file has been presented at following link:
https://openfoamwiki.net/index.php/C...ter_Variation;

However, I executed it into pyton and encountered some errors such as follows:
Code:
OSError: [Errno 2] No such file or directory: 'pitzDaily/InletVariation'
Or,
Code:
run.start()
  File "<stdin>", line 1
    run.start()
    ^
IndentationError: unexpected indent
Also, I ran its own program (doInletVariation.py) in example directory. Again, I faced some errors such as follows:
Code:
/home/myfoam/OpenFOAM/PyFoam-0.6.4/examples/doInletVariation.py: line 3: $'Example for an automatic variation of an inlet-Parameter. Runs the solver\nand after it has finished runs utilies that postprocess the output.\nCollects some results': command not found
from: can't read /var/mail/PyFoam.Execution.ConvergenceRunner
from: can't read /var/mail/PyFoam.Execution.UtilityRunner
from: can't read /var/mail/PyFoam.LogAnalysis.BoundingLogAnalyzer
from: can't read /var/mail/PyFoam.RunDictionary.SolutionFile
from: can't read /var/mail/PyFoam.RunDictionary.SolutionDirectory
/home/myfoam/OpenFOAM/PyFoam-0.6.4/examples/doInletVariation.py: line 16: syntax error near unexpected token `('
/home/myfoam/OpenFOAM/PyFoam-0.6.4/examples/doInletVariation.py: line 16: `dire=SolutionDirectory(case,archive="InletVariation")'
My version of Pyton, PyFoam and OpenFoam are 2.7.6, 0.6.4 and 2.3.1 , respectively.

Can anyone help me how to overcome these problems?!
M.Asghari
manoj_nav likes this.

Last edited by Asghari_M; July 4, 2015 at 16:09.
Asghari_M is offline   Reply With Quote

 

Tags
pyfoam tutorial error


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
Tutorial for subcooled nucleate boiling Asghari FLUENT 42 December 10, 2018 11:42
Problem on Fluent Tutorial: Horizontal Film Boilig Feng FLUENT 2 April 13, 2013 05:34
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Problems with channelOodles tutorial alberto OpenFOAM Running, Solving & CFD 0 June 5, 2007 09:08
Rotor/stator tutorial, and how to... gilberto CFX 5 January 21, 2002 09:41


All times are GMT -4. The time now is 06:56.