|
[Sponsors] |
December 18, 2005, 16:17 |
Hi,
The resulting algebraic
|
#1 |
Member
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17 |
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 |
|
December 18, 2005, 16:26 |
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 |
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 |
|
December 18, 2005, 19:52 |
HI Jasak,
I have some confu
|
#3 |
Member
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17 |
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 |
|
|
|
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 |