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

Give U().boundaryField()[PatchID()].patchInternalField value of cell centroid?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2019, 09:57
Default Give U().boundaryField()[PatchID()].patchInternalField value of cell centroid?
  #1
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
yummigummi is on a distinguished road
Hallo everyone,


As the title says, does U().boundaryField()[PatchID()].patchInternalField give the velocity value of the cell centroid of all boundary cells? Or does it give the value of the corresponding face?



patchInternalField sounds so centoidish


Thanks,


Paul
yummigummi is offline   Reply With Quote

Old   July 17, 2019, 15:30
Default
  #2
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 12
RobinZ is on a distinguished road
Hello Paul,


in the source guide the class is described as:


Variation of sampledPatch that samples the internalField (at a given normal distance from the patch) instead of the patchField.


So your speculation seems right.


Kind regards


Robin
RobinZ is offline   Reply With Quote

Old   July 18, 2019, 06:15
Default
  #3
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
yummigummi is on a distinguished road
Hey Robin,
Thank you!


Bye
Paul
yummigummi is offline   Reply With Quote

Old   July 23, 2019, 07:14
Default
  #4
New Member
 
Join Date: Apr 2019
Posts: 12
Rep Power: 7
yummigummi is on a distinguished road
Hey, me again.

I was wondering what's the difference between returning


tau()().boundaryField()[PatchID()]


and


tau()().boundaryField()[PatchID()].patchInternalField()


both give you a symmTensorField, right?


Thanks guys,


Paul
yummigummi is offline   Reply With Quote

Reply


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
find a cell from its centroid coordinates annan Fluent UDF and Scheme Programming 2 March 5, 2018 07:36
calculate distance from wall to neighbourig cell centroid rr123 Fluent UDF and Scheme Programming 39 March 14, 2017 02:41
How to give the coordinates of the centroid of a parabolic profil in UDF djing Fluent UDF and Scheme Programming 1 December 5, 2016 04:11
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
radius of each cell centroid Bikash FLUENT 0 March 3, 2005 17:33


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