Reverse velocity from min()/max() inlet BC expression and using an interpolated field as inlet BC

Dear Nektar++ forum,

I encountered a strange issue with one of my inlet boundary conditions.

I was defining an inlet velocity profile using a piecewise expression containing min()/max() terms. With this definition I observed a small region of reversed velocity at the inlet. When I replaced the same target profile with a smooth polynomial fit, the reversed-flow behaviour disappeared.

I was therefore wondering whether there are any known issues associated with using min()/max() expressions in boundary-condition definitions.

I was also wondering whether there is a recommended way to prescribe an inlet velocity profile directly from external data, for example using a CSV/PTS file or potentially an interpolated .fld field.

Thank you very much for your help!