Partial pressure of a species

 Register Blogs Members List Search Today's Posts Mark Forums Read

 June 11, 2020, 06:47 Partial pressure of a species #1 New Member   Anne-Sophie Join Date: Feb 2020 Location: Belgium Posts: 17 Rep Power: 4 Hi all, I wonder how I can get the partial pressure of a species to use it in a UDF? Is there a macro available to do this? Thanks for the advice! Kind regards, Anne-Sophue

 June 11, 2020, 09:20 #2 New Member   Khan Join Date: Sep 2019 Location: India Posts: 23 Rep Power: 5 for ideal gas, density = (PM/RT). M is molecular weight. P = (density*RT)/M I guess the right hand side in above equation when multiplied by mass fraction of a species would give partial pressure of that species. species mass fraction is accessible in Fluent. Check Fluent manual on the particular macro available for the purpose.

 June 15, 2020, 05:01 Partial Pressure #3 Senior Member     Vinerm Join Date: Jun 2009 Location: Nederland Posts: 2,946 Blog Entries: 1 Rep Power: 34 Partial pressure of a species is determined using pressure in the domain and mole fractions. Do note that partial pressure is affected by moles and not by mass. So, you have to convert mass fractions to mole fractions. __________________ Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.

 June 15, 2020, 09:37 #4 New Member   Khan Join Date: Sep 2019 Location: India Posts: 23 Rep Power: 5 mass divided by molecular weight gives molar quantities.

 June 15, 2020, 09:53 Solution? #5 New Member   Anne-Sophie Join Date: Feb 2020 Location: Belgium Posts: 17 Rep Power: 4 Dear Khan and Vinerm, Thank you so much for your help! This is what I conclude: molar mass of the mixture based on ideal gas law (with R=universal gass constant): real mm_mix=(C_R(c,t)*R*C_T(c,t))/C_P(c,t); mole fraction of water (with mm_h2o= molar mass of h2o): real molfr_h2o=C_YI(c,t,0)*(mm_mix/mm_h2o); partial pressure of h2o: real pw=molfr_h2o*C_P(c,t); Does that seem ok?

 June 15, 2020, 10:30 #6 New Member   Khan Join Date: Sep 2019 Location: India Posts: 23 Rep Power: 5 I request you to verify this before using it, through simple example hand calculations: Partial pressure of species 'i' in an ideal gas mixture = (density_mixture*R*Temp_mixture*mass fraction_species_i)/(Molecular weight of species_i)

 June 15, 2020, 11:01 Partial pressure #7 Senior Member     Vinerm Join Date: Jun 2009 Location: Nederland Posts: 2,946 Blog Entries: 1 Rep Power: 34 If you have a binary mixture, then you can calculate it as where is mass fraction of species named 2 and P is absolute pressure. This will return partial pressure for the species 2. M denotes molecular weight. __________________ Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.

June 15, 2020, 11:26
#8
New Member

Anne-Sophie
Join Date: Feb 2020
Location: Belgium
Posts: 17
Rep Power: 4
Quote:
 Originally Posted by Khan_CFD I request you to verify this before using it, through simple example hand calculations: Partial pressure of species 'i' in an ideal gas mixture = (density_mixture*R*Temp_mixture*mass fraction_species_i)/(Molecular weight of species_i)

Hi Khan,

Thanks, but I don't really understand where this equation comes from. Could you explain this? And also, do you mean my conclusion was incorrect?

June 15, 2020, 11:29
#9
New Member

Anne-Sophie
Join Date: Feb 2020
Location: Belgium
Posts: 17
Rep Power: 4
Quote:
 Originally Posted by vinerm If you have a binary mixture, then you can calculate it as where is mass fraction of species named 2 and P is absolute pressure. This will return partial pressure for the species 2. M denotes molecular weight.

Hi Vinerm,

Thanks for this usefull equation. Unfortunately, my mixture contains CO2, h2o and air, so I have more than 2 components. In which way could I adapt the equation? And also, do you think my conclusion from the previous reply was incorrect?

 June 15, 2020, 11:49 Partial Pressure #10 Senior Member     Vinerm Join Date: Jun 2009 Location: Nederland Posts: 2,946 Blog Entries: 1 Rep Power: 34 Then it won't work. Yes, your calculation is correct. It would work. You can use your calculation for binary and you will find that it fits the equation I mentioned. __________________ Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.

 June 15, 2020, 11:50 #11 New Member   Anne-Sophie Join Date: Feb 2020 Location: Belgium Posts: 17 Rep Power: 4 Ok, thank you very much for all the help, Vinerm!

June 15, 2020, 21:17
#12
New Member

Khan
Join Date: Sep 2019
Location: India
Posts: 23
Rep Power: 5
Quote:
 Originally Posted by Anne-Sophie Hi Khan, Thanks, but I don't really understand where this equation comes from. Could you explain this? And also, do you mean my conclusion was incorrect? Thanks for your time!
Now I see that your 3 equations and my one equation are the same.

If you plug in values of first and second equations of yours into third one, what you get is my equation.

So your conclusion is correct...! (caution: For the sake of confidence in your simulation, I urge you to verify this equation by simple examples)

(mixture density * mass fraction of i) = mass of i / mixture volume; divide right hand side by molecular mass of i and you get (moles of i / mixture volume). multiply by RT (R is J/mol.K of mixture = Pa*m3/mol.K of mixture) and you get (moles of i / moles of mixture)* mixture pressure which is nothing but partial pressure of i.

Regards.

June 16, 2020, 03:42
#13
New Member

Anne-Sophie
Join Date: Feb 2020
Location: Belgium
Posts: 17
Rep Power: 4
Quote:
 Originally Posted by Khan_CFD Now I see that your 3 equations and my one equation are the same. If you plug in values of first and second equations of yours into third one, what you get is my equation. So your conclusion is correct...! (caution: For the sake of confidence in your simulation, I urge you to verify this equation by simple examples) (mixture density * mass fraction of i) = mass of i / mixture volume; divide right hand side by molecular mass of i and you get (moles of i / mixture volume). multiply by RT (R is J/mol.K of mixture = Pa*m3/mol.K of mixture) and you get (moles of i / moles of mixture)* mixture pressure which is nothing but partial pressure of i. Regards.

Yes, now I can see it too. Thank you so much for the help, Khan!

 Tags macro, partial pressure, porous media, transient 2d