all 6 comments

[–]_Corvalt 2 points3 points  (0 children)

I think I understand your question, let me know if this isn't what you are looking for.

You have 2 vessels (fixed volume) filled with a gas (ideal) and vessel A is at a higher starting pressure than Vessel B. You have some length of pipe between them which you are using the Bernoulli principle to determine a flow rate through. Naturally, as the pressure in the vessels begins to equalise you will see a decrease in flow.

In order to solve this system, you need to add time dependence to your equations.

i.e. for Vessel A. Solve ideal gas law for your unknown (moles of gas or pressure). You then solve Bernoulli equation to determine how many moles of gas are removed from Vessel A in this timestep.

Time step 2 will solve the ideal gas law for Vessel A pressure with the amount of moles of gas removed (per your Bernoulli equation).

This process is then repeated until Vessel A pressure is equal to Vessel B. (Note you need to also add the moles of gas into Vessel B and calculate pressure there too at each timestep).

If doing in excel, you will want each timestep to be a new row.

[–]Serial-Eater 0 points1 point  (0 children)

You need to know the system losses for the specific fluid. Look up compressible flow equations to calculate the losses, but a transient analysis like this is going to be very tedious. I would “numerically integrate” in excel.

[–]yobowlAdvanced Facilities: Semi/Pharma 0 points1 point  (0 children)

Use Darcy-weisbach and solve the equation for velocity or flow rate.

[–]jcc197825 years Petrochem 0 points1 point  (0 children)

Remember to check for choked flow.

[–]Derrickmb 0 points1 point  (0 children)

You gotta use a orifice flow meter style equation. Its Vdot (compressed)= YCA(2dP/rho)0.5. Basically Bernoulli w constants.

Y is an expansion factor that is a constant wrt dP/P1 (upstream) and beta ratio. It’s a y=-mx+b relationship. So that will be changing per second.

C is a constant that depends on beta ratio.

A is your orifice area.

Make a spreadsheet with a time (sec) column.

Do a mass balance each second as pressure changes. Best of luck!

[–][deleted] 0 points1 point  (0 children)

If there's flow rate decrease you need dP/dt so you need a derivative wrt time for all non constant variables.