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

Location of maximum residual

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2019, 03:22
Default Location of maximum residual
  #1
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
Anouk is on a distinguished road
Dear OpenFOAM Users,


for a long time I'm searching for a way to visualise the residuals as a field. Does anyone know a quick way to extract the residuals at all grid points (as a field)? Or at least how to extract the location at which the residuals attain their maximum values?

Background: I want to see where the maximum residuals occur in case of convergence problems. If I could get the residuals as field or the location of the maximum residual this would be of great help.


Best wishes,


Anouk
Anouk is offline   Reply With Quote

Old   October 24, 2019, 04:01
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 7
yambanshee is on a distinguished road
Writing residuals is a feature introduced in OF1806 and is demonstrated here: https://www.openfoam.com/releases/op...esidual-fields

You can see it's usage by following one of these two tutorials:
$FOAM_TUTORIALS/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/system/residuals
$FOAM_TUTORIALS/incompressible/pisoFoam/LES/motorBike/motorBike/system/stabilizationSchemes
yambanshee is offline   Reply With Quote

Old   October 28, 2019, 08:28
Default
  #3
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
Anouk is on a distinguished road
Thank you for your reply yambanshee.


I've tried the solution you proposed. If I use the residuals utility (i.e. using #includeFunc residuals in the controlDict), a residuals.dat file is generated (in the postProcessing folder). This file only contains the maximum(?) of the initial residual of a certain field at a certain time. However, what I need is the (initial) residual as a field or at least not only the maximum (initial) residual, but also its location.



The website you suggested shows that it's possible to obtain the initial residual as a field. However, the examples shown do not explain how. Could you please explain?


Btw, the second tutorial does not even exist in my OpenFOAM version (5/6/7 from openfoam.org)...
Anouk is offline   Reply With Quote

Old   October 29, 2019, 03:09
Default
  #4
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Quote:
Originally Posted by Anouk View Post
Btw, the second tutorial does not even exist in my OpenFOAM version (5/6/7 from openfoam.org)...
That's because the OpenFOAM releases from the OpenFOAM Foundation and from ESI/OpenCFD are two separate, distinct releases. Thus, there will be certain cases/solvers/models which are present in one release, that are missing in the other one.

However, since the split between the releases from the OpenFOAM Foundation and ESI/OpenCFD is quite recent, it is possible to port models and solvers from one release to the other. Sometimes, it's even quite straight forward.
GerhardHolzinger is offline   Reply With Quote

Reply

Tags
maximum residual, post-processing tool, residual field

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
Foam::error::printStack after large bounding epsilon events StoneCFD727 OpenFOAM Running, Solving & CFD 1 January 1, 2018 17:04
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 14:05
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 03:27.