|
[Sponsors] |
wondering about patch.nf() and mesh.Sf().boundaryField()[patchID] |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 24, 2014, 14:08 |
wondering about patch.nf() and mesh.Sf().boundaryField()[patchID]
|
#1 |
Member
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 13 |
Ultra confused by simple question...
Is the vectorField result of the following two expressions always identical ? Within a patch I can access an ordered field of face normals: Code:
patch.nf() Code:
mesh.Sf().boundaryField()[patchID] / mesh.magSf().boundaryField()[patchID] I would like it very much if they are !! Thank you |
|
October 31, 2014, 05:08 |
|
#2 |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 14 |
Dear Eric,
I also have the same doubt, did you find out the answer ? One more thing, can you tell me, how to access the normal vectors of a patch using patch.nf() ?
__________________
Thanks and Regards Vignesh |
|
October 31, 2014, 08:14 |
|
#3 |
Senior Member
Join Date: Oct 2013
Posts: 397
Rep Power: 19 |
They should have the same order as far as I know (but differences between single core and decomposed mesh may exist). Incase you want to access the cells next to the boundary, you will need a different index which can be found with the faceCells() function.
|
|
October 31, 2014, 14:12 |
yes it's true!
|
#4 |
Member
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 13 |
Sorry for not updating to this thread earlier. I'm not 100% sure (I didn't track down the C++) but having assumed them same for awhile I've never gone wrong.
So yes they share the same ordering. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] How to create patch after snappyHexMesh | hsieh | OpenFOAM Meshing & Mesh Conversion | 33 | July 17, 2017 09:15 |
IcoLagrangianFoam and particle forces | davidpalko | OpenFOAM Running, Solving & CFD | 33 | December 2, 2013 03:39 |
Relative Fluxes in icoDyMFoam | deepsterblue | OpenFOAM Running, Solving & CFD | 7 | July 20, 2012 03:39 |
IcoTopo mixerMeshslide Foam Code | pilot | OpenFOAM Running, Solving & CFD | 6 | September 19, 2006 14:31 |
just wondering. | puck | FLUENT | 3 | August 20, 2002 00:08 |