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.