CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Residual plot for OpenFOAM-ext problem.

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2014, 15:52
Default
  #21
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Jibran View Post
Hmm, that is quite strange because it takes me directly to my post (#238 on last page of the thread)
Took mit to #111.

PyFoam should parse the stuff there

Which version of PyFoam do you use?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 4, 2014, 09:03
Default
  #22
Member
 
Jibran
Join Date: Oct 2012
Location: Swansea, UK
Posts: 34
Rep Power: 6
Jibran is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Took mit to #111.

PyFoam should parse the stuff there

Which version of PyFoam do you use?
I am using pyFoam-Version: 0.6.2
Jibran is offline   Reply With Quote

Old   July 9, 2014, 16:35
Default
  #23
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Jibran View Post
I am using pyFoam-Version: 0.6.2
I had a look. Some of the solid-solvers in foam-extend-3.x (I assume you're using one of those from the link you posted. Yourself you didn't say what you're using) have residual-output that is slightly different from the normal form and therefor the regular expression that looks for residuals is confused. You'll have to say which solver you're using (preferably also a tutorial case to reproduce). Then I can say whether it is possible to fix it (for the solvers that add information to the residual line I recommend a customRegexp)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 11, 2014, 10:48
Default
  #24
Member
 
Jibran
Join Date: Oct 2012
Location: Swansea, UK
Posts: 34
Rep Power: 6
Jibran is on a distinguished road
Quote:
Originally Posted by gschaider View Post
I had a look. Some of the solid-solvers in foam-extend-3.x (I assume you're using one of those from the link you posted. Yourself you didn't say what you're using) have residual-output that is slightly different from the normal form and therefor the regular expression that looks for residuals is confused. You'll have to say which solver you're using (preferably also a tutorial case to reproduce). Then I can say whether it is possible to fix it (for the solvers that add information to the residual line I recommend a customRegexp)
Thanks for having a look Bernhard. Yes, I am using the one from the post (elasticSoldFoam) and the tutorial is 'plateHole'.
Jibran is offline   Reply With Quote

Old   July 12, 2014, 14:42
Default
  #25
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Jibran View Post
Thanks for having a look Bernhard. Yes, I am using the one from the post (elasticSoldFoam) and the tutorial is 'plateHole'.
OK. At first: when I run that tutorial it finishes after one time-step. So there will be on plot of the residuals anyway (you need at least 2 time-steps for that)

The other problem is that this solver has a non-standard format for the time ("Time: 1") and PyFoam therefor can not tell when one time-step starts. The good news is that this is configurable. Check with pyFoamDumpConfiguration.py:

Code:
[SolverOutput]
timeregexp: ^(Time =|Iteration:) (.+)$
You can override this by setting in one of the possible locations for configuration files (pyFoamVersion.py tells you about those. Look for "Configuration search path") to (this is untested)
Code:
[SolverOutput]
timeregexp: ^(Time =|Iteration:|Time:) (.+)$
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 14, 2014, 07:38
Default
  #26
Member
 
Jibran
Join Date: Oct 2012
Location: Swansea, UK
Posts: 34
Rep Power: 6
Jibran is on a distinguished road
Quote:
Originally Posted by gschaider View Post
The other problem is that this solver has a non-standard format for the time ("Time: 1") and PyFoam therefor can not tell when one time-step starts. The good news is that this is configurable. Check with pyFoamDumpConfiguration.py:

Code:
[SolverOutput]
timeregexp: ^(Time =|Iteration:) (.+)$
You can override this by setting in one of the possible locations for configuration files (pyFoamVersion.py tells you about those. Look for "Configuration search path") to (this is untested)
Code:
[SolverOutput]
timeregexp: ^(Time =|Iteration:|Time:) (.+)$
Many thanks Bernhard, I will have a look into it!
Jibran is offline   Reply With Quote

Old   July 14, 2014, 08:36
Default
  #27
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Jibran View Post
Many thanks Bernhard, I will have a look into it!
You're welcome. By "untested" I meant: the feature works. The regular expression I wrote is untested
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
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
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 9 January 3, 2012 09:06
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55
Negative value of k causing simulation to stop velan OpenFOAM Running, Solving & CFD 1 October 17, 2008 05:36


All times are GMT -4. The time now is 13:40.