Thank you @SRP sir.
I have chosen the bottom point of the inlet as the origin and flow are happening from left (inlet) to the right (outlet), as shown in the figure. Then, in this case, the value of g will be 9.81 in the x direction. Please correct me if I am wrong.
Regards
Prakash Singh