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

difference between U().boundaryField()[patchI] and U().boundaryField()[patchI].patchI

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

Like Tree5Likes
  • 5 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2013, 07:02
Default difference between U().boundaryField()[patchI] and U().boundaryField()[patchI].patchI
  #1
Member
 
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13
cctv is on a distinguished road
Hi:
I am wondering if any one know the difference between U().boundaryField()[patchI] and U().boundaryField()[patchI].patchInternalField()? and the difference between aMesh().faceAreaNormals() and aMesh().faceAreaNormals().internalField() in openfoam-1.6-ext.Thanks
cctv is offline   Reply With Quote

Old   September 9, 2013, 07:27
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
your first version gives you the values on the patch surface whereas the second version returns the values in the cells next to the surface.
jherb is offline   Reply With Quote

Old   September 10, 2013, 06:43
Default
  #3
Member
 
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13
cctv is on a distinguished road
Quote:
Originally Posted by jherb View Post
your first version gives you the values on the patch surface whereas the second version returns the values in the cells next to the surface.
Thank you for your reply. I have made a comparison with the internalfield and cell centre field. and I found though these two value are very close, they are not the same. So I think there must be something differences between them. In addition, for famesh, do they have cells next to them?
cctv is offline   Reply With Quote

Old   September 10, 2013, 15:06
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
What values/fields have you compared? What happens if you compare the cell center coordinates (.C(), http://www.cfd-online.com/Forums/ope...l-centers.html )?

Quote:
Originally Posted by cctv View Post
Thank you for your reply. I have made a comparison with the internalfield and cell centre field. and I found though these two value are very close, they are not the same. So I think there must be something differences between them. In addition, for famesh, do they have cells next to them?
jherb is offline   Reply With Quote

Old   September 10, 2013, 15:16
Default
  #5
Member
 
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13
cctv is on a distinguished road
Quote:
Originally Posted by jherb View Post
What values/fields have you compared? What happens if you compare the cell center coordinates (.C(), http://www.cfd-online.com/Forums/ope...l-centers.html )?
I compared the U().boundaryField()[patchI].patchInternalField and U file in corresponding time output folder, and find they are not exactly the same.
cctv is offline   Reply With Quote

Old   September 10, 2013, 16:44
Default
  #6
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
When do you print out the values of the patchInternalField. Are you sure there is no call to the solver or some boundary.correct()? Otherwise the internal values would be modified before stored in the output files.
jherb is offline   Reply With Quote

Old   September 10, 2013, 18:22
Default
  #7
Member
 
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13
cctv is on a distinguished road
Quote:
Originally Posted by jherb View Post
When do you print out the values of the patchInternalField. Are you sure there is no call to the solver or some boundary.correct()? Otherwise the internal values would be modified before stored in the output files.
Yes, I think you are right. Thank you very much.
cctv is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
high-order difference in OpenFOAM rxgrch OpenFOAM Programming & Development 6 August 28, 2017 14:11
Periodic Boundary Condition for upwind difference yohey44 Main CFD Forum 0 October 27, 2010 13:10
[General] paraview - plotting difference to reference data joewe ParaView 0 August 30, 2010 18:01
the effect of upwind difference hades Main CFD Forum 8 March 14, 2009 23:43
Fininte difference and Finite element Technique Mahendra Singh Mehra FLUENT 3 December 22, 2005 23:49


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