|
[Sponsors] |
August 2, 2007, 06:19 |
Hello,
I have been trying t
|
#1 |
New Member
David Mulholland
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
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 |
|
August 2, 2007, 06:31 |
I have just been looking throu
|
#2 |
New Member
David Mulholland
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
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 |
|
August 3, 2007, 12:49 |
Problem solved.
|
#3 |
New Member
David Mulholland
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
Problem solved.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
functions in UDF | Lucy | FLUENT | 4 | April 14, 2011 17:41 |
Functions | evgenii | OpenFOAM Pre-Processing | 1 | December 5, 2005 14:43 |
Wall functions? | Pr | Main CFD Forum | 7 | April 8, 2004 07: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 |