# The coefficient value for neighbouring cells

 Register Blogs Members List Search Today's Posts Mark Forums Read

 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: 9 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,783 Rep Power: 22 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: 9 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post olwi OpenFOAM Running, Solving & CFD 2 December 13, 2007 09:03 Carlos V. FLUENT 4 February 1, 2007 09:45 PAD FLUENT 0 July 4, 2006 03:09 kaokanya CD-adapco 1 October 13, 2003 05:21 Hiranya Nath FLUENT 5 March 23, 2002 00:29

All times are GMT -4. The time now is 08:33.