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

interphasechangeFoam: How to add U to Residual plotting with gnuplot?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2014, 01:01
Default interphasechangeFoam: How to add U to Residual plotting with gnuplot?
  #1
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Hi to All,

I am trying to plot the residual by using gnuplot. One of the iteration saved in my log file is as follows:

HTML Code:
DILUPBiCG: Solving for alpha1, Initial residual = 4.38942e-05, Final residual = 1.79432e-11, No Iterations 1
Liquid phase volume fraction = 0.999624 Min(alpha1) = 0.0663787 Max(alpha1) = 1
PIMPLE: iteration 1
GAMG: Solving for p_rgh, Initial residual = 0.0390795, Final residual = 0.00328955, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 0.00474834, Final residual = 0.000251044, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 0.00695737, Final residual = 0.000493905, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 0.00151405, Final residual = 7.09018e-05, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 0.00310708, Final residual = 0.000183107, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 0.000543072, Final residual = 1.95473e-05, No Iterations 2
PIMPLE: iteration 2
GAMG: Solving for p_rgh, Initial residual = 0.00142025, Final residual = 6.74854e-05, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 0.000205943, Final residual = 7.01413e-06, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 0.000606703, Final residual = 2.57123e-05, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 8.15515e-05, Final residual = 3.07118e-06, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 0.000268793, Final residual = 1.01818e-05, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 3.37112e-05, Final residual = 1.29354e-06, No Iterations 2
PIMPLE: iteration 3
GAMG: Solving for p_rgh, Initial residual = 0.000123156, Final residual = 4.13567e-06, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 1.46604e-05, Final residual = 5.41923e-07, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 5.54985e-05, Final residual = 1.6922e-06, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 6.40674e-06, Final residual = 2.2905e-07, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 2.58142e-05, Final residual = 7.05381e-07, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 2.96623e-06, Final residual = 1.05465e-07, No Iterations 2
PIMPLE: iteration 4
GAMG: Solving for p_rgh, Initial residual = 1.23282e-05, Final residual = 3.02816e-07, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 1.46768e-06, Final residual = 5.97165e-08, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 5.82797e-06, Final residual = 1.35998e-07, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 7.50777e-07, Final residual = 3.27265e-08, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 2.83949e-06, Final residual = 6.4069e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 4.13769e-07, Final residual = 1.63602e-08, No Iterations 2
PIMPLE: iteration 5
GAMG: Solving for p_rgh, Initial residual = 1.43059e-06, Final residual = 3.14307e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 2.44785e-07, Final residual = 8.03719e-09, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 7.19056e-07, Final residual = 1.59301e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 1.48655e-07, Final residual = 1.32698e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 3.65799e-07, Final residual = 1.3061e-08, No Iterations 1
GAMGPCG: Solving for p_rgh, Initial residual = 9.6084e-08, Final residual = 9.6084e-08, No Iterations 0
DILUPBiCG: Solving for omega, Initial residual = 1.05021e-07, Final residual = 2.1834e-12, No Iterations 1
DILUPBiCG: Solving for k, Initial residual = 4.41147e-06, Final residual = 6.37142e-12, No Iterations 1
ExecutionTime = 59.58 s ClockTime = 60 s
And i set the my Residual file as follows:

HTML Code:
plot "< cat log | grep 'Solving for alpha1' | cut -d' ' -f9 | tr -d ','" title 'alpha1' with lines,\
     "< cat log | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\
     "< cat log | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\
 "< cat log | grep 'Solving for Uk' | cut -d' ' -f9 | tr -d ','" title 'U' with lines,\
     "< cat log | grep 'Solving for p_rgh' | cut -d' ' -f9 | tr -d ','" title 'p_rgh' with lines
pause 1
reread
But the problem is in the log file i cant see solving of the U. I am using interphasechangeFoam. Could someone tell me that how can i see the solving of the U in my .log file.

Thanks in advance.
shipman is offline   Reply With Quote

Old   June 9, 2014, 11:11
Default
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15
ahmmedshakil is on a distinguished road
Hi,
In my cases, I prefer to use pyFoamPlotWatcher.py (which comes with pyFoam: http://openfoamwiki.net/index.php/Contrib/PyFoam). It's easy to use, and no need of any extra programming.

cheers,
#shakil
ahmmedshakil is offline   Reply With Quote

Old   June 10, 2014, 05:45
Default
  #3
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Hi Shakil,

Thank you for your email.

Actually, I already used pyFoamPlotWatcher.py. But as you can see in my one iteration,

HTML Code:
GAMG: Solving for p_rgh, Initial residual = 1.43059e-06, Final residual = 3.14307e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 2.44785e-07, Final residual = 8.03719e-09, No Iterations 2
GAMG: Solving for p_rgh, Initial residual = 7.19056e-07, Final residual = 1.59301e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 1.48655e-07, Final residual = 1.32698e-08, No Iterations 1
GAMG: Solving for p_rgh, Initial residual = 3.65799e-07, Final residual = 1.3061e-08, No Iterations 1
GAMGPCG: Solving for p_rgh, Initial residual = 9.6084e-08, Final residual = 9.6084e-08, No Iterations 0
DILUPBiCG: Solving for omega, Initial residual = 1.05021e-07, Final residual = 2.1834e-12, No Iterations 1
DILUPBiCG: Solving for k, Initial residual = 4.41147e-06, Final residual = 6.37142e-12, No Iterations 1
ExecutionTime = 59.58 s ClockTime = 60 s
I cant see the solving of the U like this:

HTML Code:
smoothSolver: [B]Solving for Ux[/B], Initial residual = 0.001088847, Final residual = 8.176141e-05, No Iterations 6 
smoothSolver: [B]Solving for Uy[/B], Initial residual = 0.003432152, Final residual = 0.0002506418, No Iterations 6 
smoothSolver: [B]Solving for Uz[/B], Initial residual = 0.004479452, Final residual = 0.0003201872, No Iterations 6 
GAMG: Solving for p, Initial residual = 0.02337899, Final residual = 0.0008043688, No Iterations 2 
GAMG: Solving for p, Initial residual = 0.007815368, Final residual = 0.0005850772, No Iterations 1 
GAMG: Solving for p, Initial residual = 0.001613976, Final residual = 0.0001103631, No Iterations 2 
GAMG: Solving for p, Initial residual = 0.001157861, Final residual = 8.520689e-05, No Iterations 1 
GAMG: Solving for p, Initial residual = 0.0002718626, Final residual = 2.288669e-05, No Iterations 2 
time step continuity errors : sum local = 1.079882e-05, global = 3.552218e-08, cumulative = 0.002264786 
smoothSolver: Solving for epsilon, Initial residual = 0.0006579817, Final residual = 5.450659e-05, No
So, my equation is that how can i see the velocity solving inside my iteration?

Thank you
shipman is offline   Reply With Quote

Old   June 14, 2014, 10:04
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Baris: The first problem here is that your initial description is seriously misleading The problem isn't a plotting issue, the problem is that the residuals for the velocity simply don't exist in the log file.

The first approach on this is to search (instead of asking ) on the forum if someone else has seen this issue in the past. Let's see... I searched for:
Code:
interPhaseChangeFoam velocity residuals
and the very first post that appeared on Google for me was this: http://www.cfd-online.com/Forums/ope...hangefoam.html
And the answer is right there on the second post:
Quote:
Originally Posted by abe View Post
The main reason could be that the velocity equation UEqn is not solved.
You may change the momentumPredictor condition in System/fvSolution file--PIMPLE entity from 'no' to 'yes'. So, the velocity equations will be solved and you can see their results.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 15, 2014, 23:30
Default
  #5
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Dear Bruno,

Thank you so much for your answer. Yeah you are right. sorry for my misleading.I should be more careful before asking.

B.
shipman 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
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 03:20
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24


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