extracting data from boundary parts

hi all,
I try to solve flow problems in complex domains,
I want to calculate the pressure values on specific parts of the boundary.
does anyone know how I can compute the
pressure on the boundary but in an increasing order
with respect to the coordinate x?
the data are going to be further used for making plots.

best regards