Where:
Tc = y1Tc1 + y2Tc2 + y3Tc3 … (yx is the mole fraction and Tcx is the critical temperature of component x)
Pc = y1Pc1 + y2Pc2 + y3Pc3 … (yx is the mole fraction and Pcx is the critical pressure of component x)
In addition, don't forget that the ideal gas law uses absolute pressures (Pa) and temperatures (Ta), so calculations must be done in psia or kPa (abs) and degree Rankine (R = F + 460) or degrees Kelvin (K = C + 273.15). Also, by combining and rearranging Equation 2 at two conditions and neglecting n, which remains constant, it is also possible to estimate the effect of pressure or temperature on volume.

Thus,

Where:
Subscript 1 refers to the inlet condition
Subscript 2 refers to the outlet condition.
Calculate Sample Flow
If you have a certain size and length of line and want to figure out an appropriate sample flow rate (Fs), at standard conditions, rearrange Equation 1 as shown in Equation 3

Once you know the volumetric sample flow rate (Fs in liters/min), you can determine the velocity (v in ft/sec) of a stream using Equation 4.

Where:
Fs = volumetric sample flow rate (liters/min)
0.1079 = a conversion factor to get the final result into ft/sec
D = internal pipe diameter (inches).
As a general rule of thumb, the sample system velocity should be in the range of 1 to 2 m/s (3 to 6 ft/sec) to ensure that any components in the sample are carried along with the sample proper and do not drop out of solution.
System Pressure Drop Depends on Velocity
The pressure drop in the system can be calculated using the sample system velocity calculated in Equation 4. This is not as difficult as it sounds, although it is important. Often the hardest part of the exercise is getting an estimate of the stream properties. The equation for pressure drop per 100 feet of tubing is shown in Equation 5.

Where:
ΔP100 = pressure drop per 100 feet of tubing (psi)
fd = Darcy Friction Factor
ρ= density (lb/ft3)
v = velocity (ft/s)
D = pipe diameter (inches)
To calculate the Darcy friction factor (fd) we need to calculate the Reynold's number, as shown in Equation 6.

Where:
Re = Reynolds number
ρ = density
v = velocity
μ = viscosity
If the Reynolds number is less than 4000, the Darcy friction factor is calculated as shown in Equation 7

However, if the Reynolds number is greater than 4000, then A.K. Jaini's non-iterative equation can be used, as shown in Equation 8.

Where:
f = Darcy friction factor
ε = absolute roughness in inches
D = diameter of the pipe in inches
Re = Reynolds number
Meanwhile, the Moody friction factor, also known as the Fanning friction factor, is one quarter (+) the Darcy friction factor calculated in Equation 7 or Equation 8. Make sure you know which friction factor you're using and, if needed, adjust accordingly.
The last step in the pressure drop calculation is to determine the equivalent length of pipe. The equivalent length (Le) is a parameter used to represent the total length of pipe of a single diameter that would be equivalent to the actual pipe with all its fittings and line size changes. Crane Technical Paper 410-C is the standard that is used to obtain these parameters.
The Crane standard uses the concept of "equivalent length" to assign a factor to each type of fitting or change in pipe diameter to a length of straight pipe that would equate to the same pressure drop as the fitting. Each type of pipe change is assigned a "K" factor as a function of a nominal friction factor (ft). The Crane factor (ft) is a function of nominal pipe size. The equivalent length K factor in the Crane manual is empirically determined from experimental data. After the K factors have been determined for all the fittings, they're summed, and this total equivalent length is then added to the actual pipe run length to calculate a total equivalent length. For example, a pipe system with two 90° elbows and plug valve, the calculation would be as follows:
(ft) = 0.027 (from the Crane Manual)
Plug valve: K = 18 ft (from the Crane Manual)
Elbow: K = 30 ft (from the Crane Manual)
Therefore, Le = (1 x 18 x 0.027) + (2 x 30 x 0.027) = 2.1 feet.
Using this total equivalent length, the system pressure drop can be calculated. Because this exercise is performed so often, two spreadsheets were developed to calculate a simple pressure drop using Equations 6, 7 and 8. Spreadsheet A is for calculating the pressure drop in a vapor line. Spreadsheet B is for calculating the pressure drop in a liquid line. (For links to these spreadsheets, go to the online version of this article at www.controlglobal.com/samplesystems.)