|
[Sponsors] |
September 18, 2019, 04:22 |
Location of maximum residual
|
#1 |
New Member
Join Date: Jan 2018
Posts: 12
Rep Power: 8 |
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 |
|
October 24, 2019, 05:01 |
|
#2 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
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 |
|
October 28, 2019, 09:28 |
|
#3 |
New Member
Join Date: Jan 2018
Posts: 12
Rep Power: 8 |
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)... |
|
October 29, 2019, 04:09 |
|
#4 | |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
Quote:
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. |
||
Tags |
maximum residual, post-processing tool, residual field |
|
|
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 18:04 |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 15:05 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 13:50 |