CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Functions available in boundaryMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 2, 2007, 05:19
Default Hello, I have been trying t
  #1
New Member
 
David Mulholland
Join Date: Mar 2009
Posts: 11
Rep Power: 8
irishdave is on a distinguished road
Hello,

I have been trying to look through the source to see what I can find in relation to how to navigate the geometry of a patch. I want to be able to perform an operation on the inlet which requires knowledge of the face owner neighbour relations for cells on the inlet. I need the relations for those that are in the cross section of cells at the inlet.

I saw in a source code that someone else had written the ability to do the following:

const fvPatchVectorField& centre = mesh.C().boundaryField()[inletPatchID];

I have so far been unable to find where in the source documentation this comes from and I have also been unable to do similar. Does anyone know where this is documented or if there is a similar idea for mesh.owners(), mesh.neighbours(), mesh.Sf() and mesh.V()? Those are the values I need for the cells in the cross section at the inlet in order to achieve my aim.

Thanks
David
irishdave is offline   Reply With Quote

Old   August 2, 2007, 05:31
Default I have just been looking throu
  #2
New Member
 
David Mulholland
Join Date: Mar 2009
Posts: 11
Rep Power: 8
irishdave is on a distinguished road
I have just been looking through the source code, looking at the fvPatch class and it seems to have what I am looking for. Either by using the patchSlice method on a list from the mesh or by using it's inbuilt functions assuming faceCells() returns something to do with the face - cell relations from which I could figure out owner and neighbour relations.

Sadly I can't see how to generate a reference for fvPatch of the inlet.

Thanks
David
irishdave is offline   Reply With Quote

Old   August 3, 2007, 11:49
Default Problem solved.
  #3
New Member
 
David Mulholland
Join Date: Mar 2009
Posts: 11
Rep Power: 8
irishdave is on a distinguished road
Problem solved.
irishdave 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
functions in UDF Lucy FLUENT 4 April 14, 2011 16:41
Functions evgenii OpenFOAM Pre-Processing 1 December 5, 2005 14:43
Wall functions? Pr Main CFD Forum 7 April 8, 2004 06:15
damping functions(wall functions) Pr Main CFD Forum 0 March 22, 2004 03:17
control functions mzi Main CFD Forum 0 March 27, 2003 00:50


All times are GMT -4. The time now is 03:07.