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

PyFoam: what is the unused output?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 2, 2014, 13:28
Default PyFoam: what is the unused output?
  #1
Member
 
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 6
leroyv is on a distinguished road
Dear PyFoam users,

Some of my solvers generate big amounts of logs. When using a BasicRunner object, the script prints, on job termination, things like
Code:
Unused output: UTildeStarAverage = 3.72048262e-09
Unused output:
Unused output: Time = 82.48
Unused output:
Unused output: DILUPBiCG:  Solving for UTildeStary, Initial residual = 5.624271647e-09, Final residual = 5.624271647e-09, No Iterations 0 Unused output: DICPCG:  Solving for pTildeStar, Initial residual = 4.043827184e-07, Final residual = 4.043827184e-07, No Iterations 0
and so on. However, this data seems to be properly output to the log file. So I'm guessing it's not too serious, this is only a problem when the output vitally needs to be processed while running; am I mistaken?
leroyv is offline   Reply With Quote

Old   July 2, 2014, 18:39
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,972
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by leroyv View Post
Dear PyFoam users,

Some of my solvers generate big amounts of logs. When using a BasicRunner object, the script prints, on job termination, things like
Code:
Unused output: UTildeStarAverage = 3.72048262e-09
Unused output:
Unused output: Time = 82.48
Unused output:
Unused output: DILUPBiCG:  Solving for UTildeStary, Initial residual = 5.624271647e-09, Final residual = 5.624271647e-09, No Iterations 0 Unused output: DICPCG:  Solving for pTildeStar, Initial residual = 4.043827184e-07, Final residual = 4.043827184e-07, No Iterations 0
and so on. However, this data seems to be properly output to the log file. So I'm guessing it's not too serious, this is only a problem when the output vitally needs to be processed while running; am I mistaken?
Yep. This means "I've seen the output but I no longer analyze it for residuals etc ... Just passing it along"
__________________
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 3, 2014, 05:40
Default
  #3
Member
 
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 6
leroyv is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Yep. This means "I've seen the output but I no longer analyze it for residuals etc ... Just passing it along"
Thank you for your answer. Would it make any sense to hide this unused output? (I saw that there is no switch to enable or disable this in the FoamThread class)
leroyv is offline   Reply With Quote

Old   July 3, 2014, 15:48
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,972
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by leroyv View Post
Thank you for your answer. Would it make any sense to hide this unused output? (I saw that there is no switch to enable or disable this in the FoamThread class)
This output is usually generated if there is a problem (program aborted etc). I put it there to help diagnosing problems and am VERY reluctant to do any attempts to hide it. Do you get it during "regular" operations or just when aborting the program?
__________________
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, 04:55
Default
  #5
Member
 
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 6
leroyv is on a distinguished road
Quote:
Originally Posted by gschaider View Post
This output is usually generated if there is a problem (program aborted etc). I put it there to help diagnosing problems and am VERY reluctant to do any attempts to hide it. Do you get it during "regular" operations or just when aborting the program?
I agree with you, my problem is very specific and suppressing this output would probably not be a good idea.

I get it during regular use, when processing a small case which requires lots of time steps. The solver generates tons of output and my guess would be that the solver is "too quick" for the output to be processed on-time. I finally wrote a very basic runner class, which doesn't monitor the running thread with another one and silently launches the binary using the subprocess.call() function and redirects the output to a log file. This is okay for the case I am running.
leroyv 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
outputTime in Swak function immortality OpenFOAM Post-Processing 16 February 14, 2016 17:02
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16
RNG diverged during the analysis the flow over a multi element airfoil, why? s.m OpenFOAM Running, Solving & CFD 0 August 5, 2013 08:39
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
pyFoam gives unexpected output Flor OpenFOAM Post-Processing 5 November 28, 2012 07:54


All times are GMT -4. The time now is 12:02.