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

Residual Calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2019, 05:05
Default Residual Calculation
  #1
Member
 
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7
Phigo90 is on a distinguished road
In this link, the residual calculation is explained. However, can anyone demonstrate (maybe with a figure or a small example) the calculation of the scalar value n? What does "n" vividely mean?

Link --> https://openfoam.com/documentation/g...residuals.html
Phigo90 is offline   Reply With Quote

Old   February 27, 2019, 11:17
Default
  #2
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 261
Rep Power: 22
klausb will become famous soon enough
n is the normFactor, r is the initialResidual (see PCG.C source code). These are used to bring all the residuals e.g. for p, U, k, Omega etc., depending on your turbulence model onto the same normalized scale.

When you plot your residuals using pyFoam you can see that all residuals are on a scale ranging from 0 to 1 (left, y-axis) even so the absolute values differ a lot.
klausb is offline   Reply With Quote

Old   February 27, 2019, 13:15
Default
  #3
Member
 
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7
Phigo90 is on a distinguished road
Quote:
Originally Posted by klausb View Post
n is the normFactor, r is the initialResidual (see PCG.C source code). These are used to bring all the residuals e.g. for p, U, k, Omega etc., depending on your turbulence model onto the same normalized scale.

When you plot your residuals using pyFoam you can see that all residuals are on a scale ranging from 0 to 1 (left, y-axis) even so the absolute values differ a lot.

Thanks that you are trying to solve my problem. I understand why it is necessary to use a normalization, but I do not understand why it is performed like this. In addition, I do not understand why this kind of normalization leads to values in the range of "0" to "1". Do you know any literature reference for this kind of normalization?
Phigo90 is offline   Reply With Quote

Reply


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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
Suppress twoPhaseEulerFoam energy AlmostSurelyRob OpenFOAM Running, Solving & CFD 33 September 25, 2018 17:45
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 14:05
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


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