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

Bugs in fvcsurfaceIntegrate

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 5, 2009, 09:01
Default Dear foamers what is t
  #1
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 10
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Dear foamers

what is the difference between fvc::surfaceIntegrate and fvc::surfaceSum?

Isn't it an additional division of volume in fvc::surfaceIntegrate ?

I have just noticed that they are different when suming the surface field

In fvc::surfaceIntegrate, it is
forAll(owner, facei)
{
ivf[owner[facei]] += issf[facei];
ivf[neighbour[facei]] -= issf[facei];
}
while in fvc::surfaceSum, it is

forAll(owner, facei)
{
ivf[owner[facei]] += issf[facei];
ivf[neighbour[facei]] += issf[facei];
}
Why they are different when dealing with neighbour cell for the current face?

Is it a bug for fvc::surfaceIntegrate?

Junwei
su_junwei is offline   Reply With Quote

Old   January 5, 2009, 09:45
Default "surfaceIntegrate" forms the b
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
"surfaceIntegrate" forms the basis of the Gauss integrals for evaluating explicit derivatives, see e.g. fvc::div. The reason there is a change of sign is that the face-areas are outward-pointing from the "owner" and hence inward-pointing to the "neighbour". This is assuming what is being "summed" is some kind of flux, i.e. something multiplied or dotted with the cell face areas.

"surfaceSum" is simply that, a sum of a surface field over the cell-faces which is needed for some forms of averaging.

H
henry is offline   Reply With Quote

Old   July 29, 2010, 11:09
Default fvc :: reconstruc
  #3
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
hi dear friend

what dose "fvc :: reconstruct" do exactly ?

i have a "surfaceScalarField" and i want to change it to a "volumeScalarField", what can i do ?
can i use fvc :: reconstruct ? whats its effect on data?
nimasam is offline   Reply With Quote

Old   June 25, 2013, 13:10
Default
  #4
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 152
Rep Power: 6
Anne Lincke is on a distinguished road
The surfaceIntegrate utility sounds very useful to me.
Is it possible to apply this for a face-based source term inside the UEqn()?

For which objects can we use this method?

When applying this to velocity U I obtain an error message.

Thank you for an answer in advance.

Kind Regards
Anne Lincke
Anne Lincke is offline   Reply With Quote

Old   July 7, 2013, 10:29
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Anne,

It would help if you provided more information about the problem at hand.

I can only guess that the following might help you understand better how OpenFOAM's "reconstruct" and "interpolate" work: https://github.com/wyldckat/reconstr...te-fields/wiki

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugs in FFT luca OpenFOAM Bugs 2 January 27, 2009 16:40
Wiki - Bugs Andy R Main CFD Forum 0 July 25, 2008 13:15
bugs in starcd 4.06 whitemelon CD-adapco 0 July 11, 2008 06:26
Bugs in polySplineEdgeC kbr OpenFOAM Bugs 2 June 6, 2008 13:04
starcd 3.24 has bugs? whitemelon CD-adapco 6 May 16, 2008 10:44


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