CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Programming custom sample utility (https://www.cfd-online.com/Forums/openfoam-programming-development/220182-programming-custom-sample-utility.html)

RaulCA August 28, 2019 05:24

Programming custom sample utility
 
Hello all,

I was trying to create a postprocessing utility to calculate boundary layer parameters. What I want to do is:

- iterate over each faces of a patch,
- create a line normal to each face,
- sample velocities over the line,
- Do some calculations to compute the parameters (just some integrals along the line)
- Save the values on the boundary face as a new field.

My problem is that I can't find a valid function to do the sampling of the velocity over the line.
Could it be possible to use the sample utility of OpenFOAM from inside another utility?
Does anyone has an idea on how to do this? :confused:

Thank You!
Raul


All times are GMT -4. The time now is 22:13.