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

get value of surfaceScalarField by polyMesh face-index on boundaries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2017, 06:20
Default get value of surfaceScalarField by polyMesh face-index on boundaries
  #1
Member
 
Join Date: Mar 2015
Posts: 36
Rep Power: 11
K.C. is on a distinguished road
Dear Foamers,

at the moment I am in trouble with the split of surfaceScalarFields into internalField and BoundaryField.

For writing an own pointInterpolation I need to get access to the value of this field on the surrounding faces.
To do this I can use the pointFaces-List, where to each mesh point all faces are listed, that are using this point.

Code:
forAll (pointFaces[actualPoint], faceI)
{
    InterpolatedField[actualPoint] += weight[pointFaces[actualPoint][faceI]]*faceValue[pointFaces[actualPoint][faceI]]
}
As an example I have a mesh with 30 intenralFaces. pointFaces[actualPoint] give me the information that face number 35 is using this point. Now I need to get the value of my surfaceScalarField on face 35, which obviously is a boundary face (only 30 intenralFaces).
How can I get this value?

My ideas:
-Can I look up for a specific face-Index, which boundary contains this face? Then go to this BoundaryField with BoundaryField[faceI - patch.start()]
-Is there a "complete" field that list all values of my surfaceScalarField without splitting into internalField and BoundaryField?

Thanks for any reply.

Regards,
K.C.
K.C. 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
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 14:50
[snappyHexMesh] snappyHexMesh and cyclic boundaries Ruli OpenFOAM Meshing & Mesh Conversion 2 December 9, 2013 07:51
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 06:48
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 02:53.