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

How can H() return values if itself contains unknowns?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Taozi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2015, 01:55
Question How can H() return values if itself contains unknowns?
  #1
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 14
Taozi is on a distinguished road
Hi there, I suddenly get quite confused by the H() function . The meaning of H() is explained here:
https://openfoamwiki.net/index.php/O...ide/H_operator
and in this excellent post:
http://www.cfd-online.com/Forums/ope...ning-ueqn.html
From where I quote:
"""
Therefore, the linear system becomes (A + H')U = R, which is the same as AU = R - H'U. The right hand side is simply called H, so H = R - H'U. Therefore, we know have AU = H.
"""

In the above explanation we are trying to solve for U, if we define H = R-H'U, then H itself contains the unknown, this doesn't make sense. On the other hand, if the above operation is understood to be Jacobi iteration (http://en.wikipedia.org/wiki/Jacobi_method). Then this does not make sense either: we don't use Jacobi iteration for anything, and solvers have no error control of it.

In icoFoam, the H() is called after "solve(UEqn == -fvc::grad(p));". There is no return value or assignment for this solve(), then what's the effect of solve() anyway? Does it modify the UEqn itself, then how? If it does modify the matrix, then which U (U at time n-1, U* newly obtained, or a mix of the two) contribute to results of H()?

I would appreciate any explanation from gurus, and people who have the same puzzle are welcomed to post so we can discuss.
Houthuys likes this.
Taozi is offline   Reply With Quote

Old   February 14, 2017, 21:35
Default
  #2
New Member
 
rik houthuys
Join Date: Jan 2017
Posts: 27
Rep Power: 9
Houthuys is on a distinguished road
Quote:
Originally Posted by Taozi View Post
Hi there, I suddenly get quite confused by the H() function . The meaning of H() is explained here:
https://openfoamwiki.net/index.php/O...ide/H_operator
and in this excellent post:
http://www.cfd-online.com/Forums/ope...ning-ueqn.html
From where I quote:
"""
Therefore, the linear system becomes (A + H')U = R, which is the same as AU = R - H'U. The right hand side is simply called H, so H = R - H'U. Therefore, we know have AU = H.
"""

In the above explanation we are trying to solve for U, if we define H = R-H'U, then H itself contains the unknown, this doesn't make sense. On the other hand, if the above operation is understood to be Jacobi iteration (http://en.wikipedia.org/wiki/Jacobi_method). Then this does not make sense either: we don't use Jacobi iteration for anything, and solvers have no error control of it.
.
I have the same question. Anyone can explain?

Last edited by Houthuys; February 16, 2017 at 05:55.
Houthuys is offline   Reply With Quote

Reply

Tags
openfoam


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
Loading Cell Values in Tecplot P1361 OpenFOAM Post-Processing 3 September 16, 2014 05:02
return values from udf garvitgoel FLUENT 4 June 16, 2014 14:14
cell values vs node values reversemermaid FLUENT 0 March 13, 2014 19:06
strange node values @ solid/fluid interface - help JB FLUENT 2 November 1, 2008 13:04
Plotting raw data values Wilesco Siemens 0 January 5, 2006 06:34


All times are GMT -4. The time now is 18:55.