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

gaussGrad

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2011, 23:44
Default gaussGrad
  #1
New Member
 
CK
Join Date: Apr 2011
Posts: 1
Rep Power: 0
pino@JAEA is on a distinguished road
I have a question for gaussGrad.

00106 forAll(mesh.boundary()[patchi], facei)
00107 {
00108 igGrad[pFaceCells[facei]] += pSf[facei]*pssf[facei];
00109 }
00110 }
00111
00112 igGrad /= mesh.V();

In the 112 line, why igGrad is divided by mesh.V().

In the case of FVM, I understand that volume integration of grad(p) is sum of surface value of p. So, I can not understand the meaning of 112 line.

Please comment or advice for me.

Thanks in advance.
pino@JAEA is offline   Reply With Quote

Old   August 24, 2011, 23:02
Default
  #2
New Member
 
zhiwei liu
Join Date: Mar 2009
Posts: 22
Rep Power: 17
lzw2003 is on a distinguished road
Hi,

according to the Gauss' divergence theorem,
,
the gradient at node p is calculated by integrate phi at the closed surface around the node.
Attached Images
File Type: jpg pic.jpg (2.8 KB, 61 views)
lzw2003 is offline   Reply With Quote

Reply

Tags
gaussgrad


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



All times are GMT -4. The time now is 04:31.