CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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 Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools 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: 74
Rep Power: 4
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: 291
Rep Power: 9
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.
luiscardona likes this.
jherb is offline   Reply With Quote

Old   September 10, 2013, 06:43
Default
  #3
Member
 
Yu CAO
Join Date: May 2013
Posts: 74
Rep Power: 4
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: 291
Rep Power: 9
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: 74
Rep Power: 4
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: 291
Rep Power: 9
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: 74
Rep Power: 4
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
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
high-order difference in OpenFOAM rxgrch OpenFOAM Programming & Development 3 March 26, 2013 22:07
Periodic Boundary Condition for upwind difference yohey44 Main CFD Forum 0 October 27, 2010 13:10
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 15, 2009 00:43
Fininte difference and Finite element Technique Mahendra Singh Mehra FLUENT 3 December 23, 2005 00:49


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