This UDF is simple and has only 2 functions. one of them will be 1 line.ndeclare a global variable as the pressure of interestnYou need to use define adjust ... get_domain --- thread --- nuse equation to find x,y,z for the point of interest.nstart by defining large distance nloop over the thread and calculate the centroid distance to the point of interest ... if it is less than the previous value, pressure = C_P for this cell. and update the distancenat the end of the loop, you will get the pressure at the cell that has centroid close to the point of interestnnsecond function is define_report_definition_fn ... just one line here returning the global variable, pressure.nn