CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

pyFoam DecomposePar arbitrary Timestep

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

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2012, 05:02
Default pyFoam DecomposePar arbitrary Timestep
  #1
New Member
 
Benjamin
Join Date: Sep 2011
Posts: 10
Rep Power: 5
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: 3,912
Rep Power: 40
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: 10
Rep Power: 5
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: 72
Rep Power: 7
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: 3,912
Rep Power: 40
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: 72
Rep Power: 7
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: 3,912
Rep Power: 40
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

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
Restart 2-way FSI with different timestep? Lance CFX 11 April 17, 2013 00:37
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 05:27
pyFoam, pyFlu, extend: How does they relate? Horus OpenFOAM 9 May 21, 2011 12:49
How to interrupt unsteady calculation and carry on without timestep increase? aleisia FLUENT 1 March 19, 2011 00:02
pyFoam batch set up for OF 1.7 eelcovv OpenFOAM Running, Solving & CFD 3 January 19, 2011 09:38


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