|
[Sponsors] |
[Tutorials] Tutorial of how to plot residuals ! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 10, 2015, 09:21 |
|
#121 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings BlnPhoenix,
Quote:
Code:
cygwin install cat Quote:
Best regards, Bruno
__________________
|
|||
August 12, 2015, 10:19 |
it's really useful!
|
#122 | |
New Member
Eric Liu
Join Date: Jan 2015
Posts: 6
Rep Power: 11 |
Quote:
|
||
August 24, 2015, 22:44 |
|
#123 |
New Member
Tadeu Tonheiro Rodrigues
Join Date: Feb 2014
Location: Brazil
Posts: 1
Rep Power: 0 |
Hello everyone!
I have been trying to use to provided script, however I got the following problems: 1 - warning: Skipping data file with no valid points. 2 - x range is invalid. I tried everything from the previous post (including set different cut positions), set x range and etc, without success. Has anyone solved this problem? I appreciate any help! |
|
August 25, 2015, 04:15 |
|
#124 |
New Member
Eric Liu
Join Date: Jan 2015
Posts: 6
Rep Power: 11 |
What if I want to end the plot cycle when the computation is finished. It seems that I should add an if condition before reread command, but how can I express the condition that it read "END" in log file?
Any reply is welcomed! |
|
October 26, 2015, 06:38 |
|
#125 |
Member
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 11 |
I know it is a very old post. But does someone know how to edit the Residual script for multi-Region Domain?
I am using two fluids and a solid ...and all the residuals are getting mixed up. Thanks Vineet |
|
October 27, 2015, 07:06 |
|
#126 |
Member
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 11 |
Let me explain my Situation a Little better. Here is my log file. What I want is it first searches only for abgas Region and get me all Residuals for abgas. But what I am getting is Ux for both abgas and wasser Region.
has anyone worked on a similar issue before? I tried man pages for grep, cut and tr. My assumption is if somehow I can ask grep to rather add the next line too for Ux, that might help. But I am not till now successful. Vineet Code:
Time = 1 Solving for fluid region abgas DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.02348612, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.01860567, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.008489814, No Iterations 1 DILUPBiCG: Solving for h, Initial residual = 1, Final residual = 0.01319835, No Iterations 1 Min/max T:800.0236 1247.3 GAMG: Solving for p_rgh, Initial residual = 0.9999939, Final residual = 0.006830426, No Iterations 11 time step continuity errors : sum local = 7.336919, global = -0.1074577, cumulative = -0.1074577 Min/max rho:0.7 0.7 DILUPBiCG: Solving for epsilon, Initial residual = 0.1393761, Final residual = 0.002278375, No Iterations 2 DILUPBiCG: Solving for k, Initial residual = 1, Final residual = 0.02064519, No Iterations 2 Solving for fluid region wasser DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.02964463, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.02533394, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.03579749, No Iterations 1 DILUPBiCG: Solving for h, Initial residual = 1, Final residual = 0.02474972, No Iterations 1 Min/max T:363.15 799.7066 GAMG: Solving for p_rgh, Initial residual = 0.9872267, Final residual = 0.007051082, No Iterations 3 time step continuity errors : sum local = 8885.723, global = -5147.09, cumulative = -5147.197 Min/max rho:1030.98 1030.98 DILUPBiCG: Solving for epsilon, Initial residual = 0.9995245, Final residual = 0.02359116, No Iterations 2 DILUPBiCG: Solving for k, Initial residual = 1, Final residual = 0.001944546, No Iterations 1 Solving for solid region kopf DICPCG: Solving for T, Initial residual = 1, Final residual = 0.0363293, No Iterations 2 Min/max T:767.9964 801.6727 ExecutionTime = 28.16 s ClockTime = 29 s Code:
|
|
November 6, 2015, 09:44 |
|
#127 |
Member
Ananda Kannan
Join Date: Feb 2014
Location: Göteborg, Sweden
Posts: 55
Rep Power: 12 |
Hi Vineet!!
Have you tried any of these methods?? They would work in my opinion as the output string is rather uniform in instance.. http://stackoverflow.com/questions/9...in-a-text-file Let me know if that helped regards ansubru |
|
December 1, 2015, 19:45 |
|
#128 |
New Member
Mohammad
Join Date: May 2015
Posts: 1
Rep Power: 0 |
Thanks a lot it was very beneficial
|
|
May 9, 2016, 12:10 |
|
#129 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi,
I tried to use the text file but I got this error : mohen@mohen-Lenovo-G580:~/Desktop/new-snappy$ gnuplot Residuals - Cannot open load file 'Residuals' "Residuals", line 0: util.c: No such file or directory what's wrong whit this?? |
|
May 19, 2016, 07:01 |
|
#130 |
Member
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 12 |
Hi,
do you have any experiences with foamMonitor? Why do you prefer the alternatives discussed here instead of the foamMonitor one? Thanks in advance! |
|
May 19, 2016, 07:16 |
|
#131 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi,
unfortunately I have not worked with foamMonitor yet . |
|
May 19, 2016, 08:32 |
|
#132 |
Member
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 12 |
ok, thanks anyway
|
|
May 20, 2016, 10:28 |
|
#133 |
Member
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 12 |
Hello all,
I am trying to adjust the script to my case. I am exporting a patchAverage of the velocity field with a function object. While trying to plot the three separate U components I am getting an error for the Ux. The file where the data is looks like this: Code:
# Time outlet 1 (0.076778439 -2.6155751e-06 1.5359649e-05) Code:
set autoscale set key bottom right set xlabel "Simulation time [s]" set ylabel "Primary average velocities [m/s]" set title "Plot of average velocity components over simulation time" set grid plot "./postProcessing/patchAverage_U/0/U" using ($1):($2) with lines title "Ux" pause 1 reread Code:
"U_prim.txt", line 8: warning: Skipping data file with no valid points plot "./postProcessing/patchAverage_U/0/U" using ($1):($2) with lines title "Ux" ^ "U_prim.txt", line 8: x range is invalid Thanks in advance! |
|
November 15, 2016, 03:30 |
Plotting against time not iterations
|
#134 | |
Member
|
Quote:
How can I plot the same thing with x-axis as time and not iteration, as it will even simply the observations (at least I believe this). |
||
November 16, 2016, 10:58 |
Post link
|
#135 | |
Member
|
Quote:
|
||
November 16, 2016, 10:59 |
Plotting against time not iterations
|
#136 |
Member
|
How can I plot the same thing with x-axis as time and not iteration, as it will even simply the observations (at least I believe this).
|
|
November 16, 2016, 11:13 |
[Solved]
|
#137 |
Member
|
Ok solved the problem by getting idea from http://www.cfdsupport.com/OpenFOAM-T...rt/node80.html
You need to do following to achieve the goal.
Last edited by rahulksoni; November 17, 2016 at 10:01. |
|
November 16, 2016, 11:14 |
|
#138 | |
Member
|
Quote:
Ok solved the problem by getting idea from http://www.cfdsupport.com/OpenFOAM-T...rt/node80.html You need to do following to achieve the goal.
Last edited by rahulksoni; November 17, 2016 at 00:51. |
||
December 19, 2016, 23:53 |
Forces
|
#139 |
Member
Fredi Cenci
Join Date: Dec 2016
Posts: 38
Rep Power: 9 |
Hello Everyone,
Could someone help me out? The plots for the residuals worked =). However, for the forces I've got this error: --> FOAM FATAL ERROR: Could not find rho From function void Foam::functionObjects::forces::initialise() in file forces/forces.C at line 196. FOAM exiting I am a beginner in openFoam and I would really appreciate the help. Thank you guys!! |
|
December 21, 2016, 15:49 |
Solved
|
#140 | |
Member
Fredi Cenci
Join Date: Dec 2016
Posts: 38
Rep Power: 9 |
Quote:
Solved. Just change rhoName for rho! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
plot residuals in multiregion solver | val46 | OpenFOAM | 4 | December 12, 2016 07:06 |
To Plot Residuals on the fly. | neeraj | OpenFOAM Running, Solving & CFD | 5 | October 2, 2013 07:23 |
[PyFoam] why pyFoamPlotRunner doesn't plot continuity residuals? | immortality | OpenFOAM Community Contributions | 10 | May 5, 2013 07:13 |
plot of residuals | hawkeye321 | OpenFOAM | 5 | December 7, 2012 10:05 |
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread | wyldckat | OpenFOAM Installation | 2 | July 11, 2012 17:01 |