|
[Sponsors] |
Exporting Face Normal of a patch and some other values |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 25, 2012, 13:32 |
Exporting Face Normal of a patch and some other values
|
#1 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16 |
Dear all,
I want to do a post processing process of a patch (wall) where I need: - Face center coordinate - Normal to Face vector - Face area - Other data like density 1) I have tried first with a sampling but I cannot find a field "name" to get the face properties. Is it possible to get such a thing ? Here I put a "mesh.Sf()" as example of what I want. Code:
interpolationScheme cellPointFace; surfaceFormat raw; setFormat raw; surfaces ( wallTest { type patch; patches (wall); interpolate true; triangulate false; } ); fields ( rho U mesh.Sf() ); Code:
label wallPatch = mesh.boundaryMesh().findPatchID("wall"); rho.boundaryField()[wallPatch] // Density U.boundaryField()[wallPatch] // Velocity mesh.Sf().boundaryField()[wallPatch] // Face normal vector mesh.Cf().boundaryField()[wallPatch] // Face Center mesh.magSf().boundaryField()[wallPatch] // Face magnitude // "Export" data in the consol Info<< U.boundaryField()[wallPatch] << endl; |
|
|
|