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

The coefficient value for neighbouring cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2005, 16:17
Default Hi, The resulting algebraic
  #1
Member
 
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17
olivier is on a distinguished road
Hi,
The resulting algebraic equation for a general variable (phi) linking its value at the center of a control volume P with the values of neighbouring cells (n) are:

A_p *Phi_p=Sum_n(A_n * Phi_n ) + S_(phi)
with :
A_p=Sum_n(A_n)+ S_p

My question is:
How can I get the coefficient A_n ?
thanks for your help.
best regards
olivier
olivier is offline   Reply With Quote

Old   December 18, 2005, 16:26
Default Have a look at lduMatrix.H - t
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Have a look at lduMatrix.H - the member function you want is called diag()

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   December 18, 2005, 19:52
Default HI Jasak, I have some confu
  #3
Member
 
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17
olivier is on a distinguished road
HI Jasak,
I have some confusion:
I think that Ap is calculated in O.FOAM as:
Ap=diag()/mesh.V();
and you said that A_n=diag()
but in the theory Ap=Sum_n(A_n)+ S_p;
how come ?
thanks for your help.

olivier
olivier 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
Finding neighbouring cells when looping over faces in faceSet olwi OpenFOAM Running, Solving & CFD 2 December 13, 2007 09:03
Neighbouring Cells Carlos V. FLUENT 4 February 1, 2007 09:45
Accessing scalars in neighbouring nodes PAD FLUENT 0 July 4, 2006 04:09
neighbouring cells kaokanya Siemens 1 October 13, 2003 06:21
Accessing neighbouring cells in UDF Hiranya Nath FLUENT 5 March 23, 2002 00:29


All times are GMT -4. The time now is 17:38.