new openFOAM forces library which supports calculation of Cp (or pressure) profile of airfoil in openFOAM extend-4.1
How to use:
1.Use wmake libso to compile the library under following path: $(FOAM_USER_LIBBIN) with the name "libforcesNew".
2.Add function in ControlDict in your own case and run the case as normal.
3.You will find the results in forces folder which are separately stored in each time step as you defined.
4.Use i.e. gnuplot to plot the pressure profile arond the airfoil.
P.s. an example is shown in the repository.
result from NASA (https://turbmodels.larc.nasa.gov/naca0012_val.html):
simulation results: