I am trying to work a problem to find flowrate, and a time to reach equilibrium. It sets up like this: I have a tank with a volume of 400 cubic feet full of compressed air at 50psi. The tank has an 8" schedule 40 carbon steel pipe coming off of it with a valve at the tank. The pipe rises 100' from the tank and 100' laterally before discharging to atmosphere. When the valve is opened at the tank, what is the flowrate at the end of the 8" pipe, and how long does it take for the system to reach an equilibrium point?

To find the flow rate and the time to reach equilibrium in this scenario, we can use principles of fluid dynamics and Bernoulli's equation.

First, let's calculate the pressure at the discharge point of the pipe. Since the tank is initially at 50 psi, and the pipe rises 100' and then goes laterally for another 100', there will be a change in pressure due to the height difference and pipe friction.

To calculate the pressure at the discharge point, we need to consider the pressure losses due to friction as the air flows through the pipe. One commonly used method is the Darcy-Weisbach equation:

ΔP = f * (L / D) * (ρ * v^2 / 2)

where:
ΔP is the pressure loss due to pipe friction,
f is the Darcy friction factor, which depends on Reynolds number and pipe roughness,
L is the length of the pipe (200' in this case),
D is the diameter of the pipe (8" or 2/3 ft in this case),
ρ is the density of the air, and
v is the velocity of the air in the pipe.

The Reynolds number can be calculated as:
Re = (ρ * v * D) / μ

where:
μ is the dynamic viscosity of air.

Assuming dry air at room temperature and atmospheric pressure, the density of air (ρ) is approximately 0.075 lb/ft^3 and the dynamic viscosity (μ) is approximately 3.737e-7 lb/(ft*s).

To find the velocity (v) at the discharge point, we can use the continuity equation:

A1 * v1 = A2 * v2

where:
A1 is the cross-sectional area of the tank outlet (which is the same as the pipe inlet),
A2 is the cross-sectional area at the discharge point (which is the area of an 8" diameter pipe), and
v1 and v2 are the velocities at the tank outlet and discharge point, respectively.

The cross-sectional area of a pipe can be calculated as:
A = π * (D/2)^2

Once we have the velocity (v2), we can calculate the pressure drop (ΔP) using the Darcy-Weisbach equation mentioned above.

To find the flow rate (Q) at the end of the pipe, we can use the following equation, known as the orifice equation:

Q = Cd * A2 * √(2 * ΔP / ρ)

where:
Q is the flow rate,
Cd is the discharge coefficient (which depends on the shape of the opening),
A2 is the cross-sectional area at the discharge point, and
ΔP and ρ are the pressure drop and density, respectively.

To determine the time it takes for the system to reach equilibrium, we need to consider the time it takes for the pressure to stabilize. This can be influenced by factors such as pipe volume, valve characteristics, and the compressibility of the air.

You might need additional information such as the valve characteristics (opening time, valve type) and pipe volume to estimate a time for the system to reach equilibrium accurately.

Note: These calculations assume steady-state flow conditions and neglect any potential changes caused by dynamic effects or other factors that may impact the process.