Dear all, 
I am looking for an open source library to solve a set of PDEs as follow:

I would like to use an 1D-mesh, specifying the mass flow (m) at inlet and fixing the pressure value (p) at the outlet. 
Do you think that FireDrake library could help me solve this problem? If so, any particular example to suggest to me?
Thank you in advance.
Best regards,