I’m trying to solve a problem of a microfluidic flow inside a valve given pressure at the inlet and the outlet.

My governing equation is Re(u*grad(u))+grad( p )-lapl(u) = 0, where Re is Reynolds number, * is the dot product, u is the velocity vector, p is the pressure and grad and lapl are gradient and laplacian.

How can I force the value of pressure at the inlet and at the outlet? I want to simulate a constant force applied on the inlet and atmospheric pressure on the outlet.

In my understanding, using on(INLET, p=1) and on(OUTLET, p=0) doesn’t correctly simulate my scenario, does it?