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

plot residuals

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2014, 17:55
Default plot residuals
  #1
New Member
 
Join Date: Dec 2014
Posts: 5
Rep Power: 8
pigna is on a distinguished road
Hi, I'm a new user of openfam. I'm running a laminar stady-state case with simpleFoam. I have found on this forum a usefull way to plot the residuals using gnuplot during the simulation and it works. My question is maybe quite stupid.I run a simulation for a certain number of iteration (for instance 400):

simpleFoam >log

monitoring the residuals. Now if i have to run again for other iterations ( with the latestTime entry in controlDict ) because my residuals aren't already converged or i have changed something in fvShemes directory if i write again

simpleFoam >log

my file log at the end of the iterations will contain only informations about iterations from 400 to the final one and also the residuals i plot are referred to those iteration.

I wanna know if there is a way to write the new residuals in the same log file i have already in my directory leaving unalterated in it the previuos informations abuot the residuals of the previous run. In this way my gnuplot will show the residuals from the first step. I know i could use a different name (>log1) and then copy it in the previous one but I suspect that a smartest way may exist.

thanks
pigna is offline   Reply With Quote

Old   December 18, 2014, 19:57
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 202
Rep Power: 15
wouter is on a distinguished road
hello pigna,

use >> instead of > so :
simpleFoam >>log

then the output will be appended.

Hope this helps
Wouter
wouter is offline   Reply With Quote

Old   December 19, 2014, 02:32
Default
  #3
New Member
 
Join Date: Dec 2014
Posts: 5
Rep Power: 8
pigna is on a distinguished road
Thank you, it is exactly the tip i needed .
pigna is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorials] Tutorial of how to plot residuals ! wolle1982 OpenFOAM Community Contributions 163 January 21, 2021 15:47
plot residuals in multiregion solver val46 OpenFOAM 4 December 12, 2016 06:06
[swak4Foam] Foam warnings - related to swak4Foam Salam-H OpenFOAM Community Contributions 20 August 2, 2015 15:40
How to plot residuals of all iterations in Fluent FJSJ FLUENT 4 September 20, 2013 09:47
Residuals Plot kamalipour FLUENT 2 December 15, 2011 03:44


All times are GMT -4. The time now is 20:30.