CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Plotting residuals and force coefficients on-the-fly using an Allrun script

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2022, 09:15
Default Plotting residuals and force coefficients on-the-fly using an Allrun script
New Member
Join Date: May 2022
Posts: 15
Rep Power: 4
levoCFD is on a distinguished road

I would like to plot the residuals and the force coefficients of my simulations on-the-fly. Therefore, I have created two files for gnuplot as explained in Wolfgang Heydlauff's tutorial:
Tutorial of how to plot residuals !

However, I am running my case not from the command line but with an Allrun script like the following:

cd ${0%/*} || exit 1

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# copy 0.orig to 0
cp -r 0.orig 0

# Create mesh
runApplication blockMesh

# Initialise with potentialFoam solution
runApplication potentialFoam

rm -f 0/phi

# Run the solver
runApplication $(getApplication)

After the simulation is terminated I am able to call the scripts with

gnuplot Residuals -
gnuplot forceCoeffs -

to see the iteration results but I would like to see the graphs during the simulation already.

How can I modify my Allrun script to enable the on-the-fly plotting of residuals and force coefficients?

Best reg
levoCFD is offline   Reply With Quote


force coefficients, gnuplot, on-the-fly, residuals

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
oscillation in residuals and force coefficients plots shovaliye2 FLUENT 3 May 30, 2020 13:28
Local spikes in force coefficients sjsivabharathy OpenFOAM Running, Solving & CFD 0 May 1, 2019 14:14
Setup/monitor points of pressure and force coefficients siw CFX 3 October 22, 2010 06:07

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