CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[stressAnalysis] Residual plot for OpenFOAM-ext problem.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2014, 15:52
Default
  #21
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 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: UK
Posts: 61
Blog Entries: 1
Rep Power: 14
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: 4,225
Rep Power: 51
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: UK
Posts: 61
Blog Entries: 1
Rep Power: 14
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: 4,225
Rep Power: 51
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: UK
Posts: 61
Blog Entries: 1
Rep Power: 14
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: 4,225
Rep Power: 51
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


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
Foam::error::printStack after large bounding epsilon events StoneCFD727 OpenFOAM Running, Solving & CFD 1 January 1, 2018 17:04
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
settlingFoam unstable? bendel_boy OpenFOAM Running, Solving & CFD 38 July 8, 2016 05:07
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 01:09.