# Determining gas properties in a steam and air gas mixture

I have a gas mixture (steam and air) contained in a tank. I know the tank pressure ($P$), temperature ($T$) and the massic air fraction ($x_a$).

I would like to determine the density of both gases to perform some calculations afterwards.

Intuitively, I would have done the following :

$$\rho_{steam} = IAPWS97('rho\_PT', P,T)$$

i.e. asking IAPWS tables to provide me the density of steam at the tank conditions.

However, it seems based on available ressources that this is wrong. The correct way do do it would rather be

$$\rho_{steam} = IAPWS97('rho\_PT', P_{steam},T)$$

Therefore taking into account the partial steam pressure to compute its density within the tank rather than the total tank pressure

Why is that ? Intuitively, I would use total tank pressure because it seems to me that both steam and air experiences the total tank pressure and not only their partial pressure and therefore I would use total tank pressure to compute their properties.

Considering that air and steam behave as ideal gases, you can write the following equations: $$P V = nRT$$ $$P_A V = n_A RT$$ $$P_W V = n_W RT$$ where I use subscripts $_A$ and $_W$ for air and steam respectively. Taking $M_A$ and $M_W$ as the molar masses of air and water, the density of each of the gases would be $$P_A V = (m_A/M_A) RT \rightarrow \underbrace{(m_A/V)}_{\rho_A} =\frac{P_A M_A}{RT}$$
$$P_W V = (m_W/M_W) RT \rightarrow \underbrace{(m_W/V)}_{\rho_W} =\frac{P_W M_W}{RT}$$