magSf() on boundaries
Hi FOAMers,
how do I get magSf() on bounday faces? I noticed that mesh.magSf()[faceI] gives correct results on internal faces, but when faceI is on a face, it gives ~1e-320... Code:
label startFace = mesh.boundaryMesh()[ib].start(); |
I've solved this problem, simply taking
mag(mesh.Sf()[faceI]); However, I really can't understand why there isn't a mesh.magSf() method for boundary faces when there is a mesh.Sf() method defined on them... |
Hi
You should be able to access the data in any of the following manners: Code:
const scalarField magnitude0 = Foam::mag( mesh.Sf().boundaryField()[patchi] ); Best regards, Niels |
All times are GMT -4. The time now is 14:43. |