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

[PyFoam] DecomposePar arbitrary Timestep

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2012, 05:02
Default DecomposePar arbitrary Timestep
  #1
New Member
 
Benjamin
Join Date: Sep 2011
Posts: 11
Rep Power: 15
elys is on a distinguished road
Dear forum,

I was looking into pyFoam and like it a lot. However, I have difficulties with pyFoamDecompose.py if I want to decompose a case at a certain timestep and not the last one. I couldnt find an option to do so within the wiki or --help. Does anybody has a suggestion to solve this problem? And a second question: Beside that parallel runs are automatically reconstructed, is there also a script to do so in pyFoam (with certain time steps)??

Thanks in advance,

Ben
elys is offline   Reply With Quote

Old   March 12, 2012, 19:47
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 elys View Post
Dear forum,

I was looking into pyFoam and like it a lot. However, I have difficulties with pyFoamDecompose.py if I want to decompose a case at a certain timestep and not the last one. I couldnt find an option to do so within the wiki or --help. Does anybody has a suggestion to solve this problem? And a second question: Beside that parallel runs are automatically reconstructed, is there also a script to do so in pyFoam (with certain time steps)??

Thanks in advance,

Ben
Selecting the timestep is currently not supported by this utility (but can be if a feature request shows up on the openfoam-extend-Mantis). As a workaround you can use it with the --no-decompose-option to just generate decomposeParDict and then call decomposePar with the appropriate time-options
elys likes this.
gschaider is offline   Reply With Quote

Old   March 13, 2012, 03:27
Default
  #3
New Member
 
Benjamin
Join Date: Sep 2011
Posts: 11
Rep Power: 15
elys is on a distinguished road
Thanks Bernhard for the explanation! The workaround will do.

Best,

Ben
elys is offline   Reply With Quote

Old   March 13, 2012, 10:10
Default Decomposing GGI case
  #4
Member
 
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16
SD@TUB is on a distinguished road
Hello,

Sorry, that i chime in with my problem of decomposing a case for GGI with, e.g.
Code:
pyFoamDecompose.py --globalFaceZones='( insideZone outsideZone )' . 4
followed with error:
Quote:
Traceback (most recent call last):
File "/usr/local/bin/pyFoamDecompose.py", line 5, in <module>
Decomposer()
File "/usr/local/lib/python2.6/dist-packages/PyFoam/Applications/Decomposer.py", line 40, in __init__
nr=2)
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/Decomposer.py", line 162, in run
fZones=eval(self.opts.globalFaceZones)
File "<string>", line 1
( insideZone outsideZone )
^
SyntaxError: invalid syntax
What is the problem? Help message stats:
--globalFaceZones=GLOBALFACEZONES
Global face zones. A python string. Used for the GGI interface. Ex: '(GGI_Z1 GGI_Z2)'


I tried different expressions. I am using pyFoam 0.5.6 on Debian Squeeze with Python 2.6.6.
Thank you very much in advance!


/Stefan
SD@TUB is offline   Reply With Quote

Old   March 13, 2012, 19:20
Default
  #5
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 SD@TUB View Post
Hello,

Sorry, that i chime in with my problem of decomposing a case for GGI with, e.g.
Code:
pyFoamDecompose.py --globalFaceZones='( insideZone outsideZone )' . 4
followed with error:


What is the problem? Help message stats:
--globalFaceZones=GLOBALFACEZONES
Global face zones. A python string. Used for the GGI interface. Ex: '(GGI_Z1 GGI_Z2)'


I tried different expressions. I am using pyFoam 0.5.6 on Debian Squeeze with Python 2.6.6.
Thank you very much in advance!


/Stefan
I think the description is inconsistent with what is actually needed. Try

'["GGI_Z1","GG1_Z2"]'
gschaider is offline   Reply With Quote

Old   March 14, 2012, 04:37
Default
  #6
Member
 
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16
SD@TUB is on a distinguished road
Thanks a bunch! It is working.

/Stefan
SD@TUB is offline   Reply With Quote

Old   March 14, 2012, 06:07
Default
  #7
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 SD@TUB View Post
Thanks a bunch! It is working.

/Stefan
OK. I'll adapt the help-message accordingly (for this time without a bug-report )
gschaider 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
decomposePar error chia87 OpenFOAM Pre-Processing 1 May 28, 2017 16:23
error with smaller timestep ? Thomas MADELEINE FLUENT 0 August 8, 2016 14:02
decomposePar 4-core warning/error? Boloar OpenFOAM Bugs 23 April 8, 2014 09:57
Modifying sonicFoam to run with variable timestep - strange results dalaron OpenFOAM Programming & Development 1 September 2, 2013 08:21
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 06:27


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