CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Modeling relative Humidity in CFX (http://www.cfd-online.com/Forums/cfx/104998-modeling-relative-humidity-cfx.html)

snpradeep July 20, 2012 07:17

Modeling relative Humidity in CFX
 
Hi..

I am simulating Euler Lagrange flow in a pipe. Air flowing at 4 bar and 200C.
Water is injected at 15C.

Now I want to plot relative humidiy in CFX. How can I calculate it or post process it.

Please help..

regards,
Pradeep

Felggv July 20, 2012 13:53

Hi,

As far as I know, you can't do it directly, it's not a default variable built in CFX that you can plot as function of time or whatever, so, you'll need to get your thermodynamics book and find out a way to plot it after you have informations about humidity given by CFX-Post, like average Water Vapour Mass Fraction distribution.

Hope it helped you a bit, in a few moments more people will come and help you.

EDIT: You can access ScienceDirect.com and view an enormous amount of articles about relative humidity, and maybe find some information on how to plot it after you have the desired information given by any CFD software.

ghorrocks July 20, 2012 18:12

Felipe is correct - it is not in CFX by default, so you will have to calculate it from the mass fraction.

snpradeep July 24, 2012 03:44

Thank you very much Mr. Felipp Gobbi..
I tried as per your instructuions but I could only manage to plot Specific Humidity (Which is ratio of massfrac of vapor to mass frac air). Also I could calculate Vapor pressure (Pv) using Ideal gas laws As I have H2O.Mass concentration (kg/m^3) as one of the variable which is nothing but actual vapor density. ie.( Pv = Rhov / Rv T ) But i am not understanding how can I get saturation pressure of water vapor at a given temp.

If I can get that as a variable...Then I can compute, relative humidity = (Pv/ Psat@T)

I am literally clueless..But it is quite interesteing that Liquid Evaporation model available in CFX computes Saturation Pressure (Antoine Equation). And CFX dosen't has that as a variable for post processing

Felggv July 24, 2012 10:11

Hi there,

I'm afraid you'll have to do it manually by using another software with psychrometric info like EES (as suggested by Yunus' thermodynamics book).

Or you can adjust a curve for Pg - T using a thermodynamic table using Excel.

I'm sorry if it won't work, that's what I can suggest for now (gotta read the book again).

Good luck and if you manage to do it, come back to tell us how you did it!

PS: If you're at an University, maybe you have full access to www.sciencedirect.com, try some articles about relative humidity, you may figure out what people did, but I can tell you that you'll have some manual work. If it's not forbidden I can share some articles by attaching them here.

snpradeep July 25, 2012 03:27

Hello Mr. Felipe Gobbi...

Thank you very much for the reply..If you have some articles with you regarding relative humidity calculation..It will be very useful...Please do post some links..In the mean time I will also search some articles about it.

Regards,
Pradeep

Felggv July 25, 2012 12:20

Hey,

I guess they're big to post here, e-mail me and I e-mail you back with the articles!

And I repeat, the articles won't tell you how to do it directly, you may have to figure it out by yourself!

e-mail: felipeggv@gmail.com

Felggv July 26, 2012 15:00

Mr. Pradeep,

I've managed to do it with the help of a friend of mine that had already done it.

In CFD Post:

1) Insert> Expression - here we define the Saturation Pressure (Pg).

Definition: (0.61078* exp((17.269*(Temperature - 273.15 [K]))/((Temperature - 273.15[K]) + 237.3[K])))*1000

2) Insert> Expression

Definition: (((Water Vapour at 25 C.Mass Fraction/Air at 25 C.Mass Fraction)*Absolute Pressure)/((0.622 + Water Vapour at 25 C.Mass Fraction/Air at 25 C.Mass Fraction)*Pg))*100

3) Insert> Variable - name it "Relative Humidity" and in expression set it like the expression above (in item 2).

Now you can plot it as contours, charts, tables, etc.

snpradeep July 27, 2012 05:12

Hi Thank you very much...

Even I have 1 method to compute sat vapor presure.

Psat = 1[bar]*exp^(Antoine A - Antoine B/(T + Antoine C))

http://en.wikipedia.org/wiki/Antoine_equation

The Antoine coefficients can be found in saturation properties of Homogenious binary mixture of Water vapor and liquid water in ANSYS CFX material library (Interphase Mass Transfer).
If Antoine coefficients are being used from different literatures you may have to care for pressure scale.
For Eg. If antoine coefficents are A = 23.7836 , B = 3782. 89 C = (230.15-273.15 ). Then pressure scale has to be replaced by 1 [ Pa].

Relative Humidity can be calculated as you specified or...

Actual Vapor Pressure = H2O.Molar Mass Fraction * Absolute Pressure

R H = Actual Vapor Pressure / Saturation Vapor Pressure

Also I have found few formulations of Sat vap Pressure which can be useful in future.

http://cires.colorado.edu/~voemel/vp.html

Niru January 7, 2013 00:09

@Felipe Gobbi- I tried this code.

1) Insert> Expression - here we define the Saturation Pressure (Pg).

Definition: (0.61078* exp((17.269*(Temperature - 273.15 [K]))/((Temperature - 273.15[K]) + 237.3[K])))*1000

2) Insert> Expression

Definition: (((Water Vapour at 25 C.Mass Fraction/Air at 25 C.Mass Fraction)*Absolute Pressure)/((0.622 + Water Vapour at 25 C.Mass Fraction/Air at 25 C.Mass Fraction)*Pg))*100

3) Insert> Variable - name it "Relative Humidity" and in expression set it like the expression above (in item 2).

Now you can plot it as contours, charts, tables, etc.
I am getting an error that air at 25C.mass fraction does not existing in default domain.
I have added air at 25C in my default domain, but still I get this error. I tried one with formula for Relative humidity using density, still it throws the same error. Do you have any idea as to why it is not accepting the properties of air at 25 C?

snpradeep January 7, 2013 01:30

Hello Niru,

Look for the naming available in your CFD post..May be you are getting error because of wrong naming..

Regards,
Pradeep

serezhkin February 21, 2013 16:52

Quote:

Originally Posted by Felggv (Post 373772)
Mr. Pradeep,

I've managed to do it with the help of a friend of mine that had already done it.

In CFD Post:

...

Now you can plot it as contours, charts, tables, etc.

Thank you, this is extremely useful!

sunilpatil April 19, 2014 05:30

hi,
I am working on heat transfer in building with envelops. i want to consider effect of humidity, how to model it in CFX. if possible can you send me any tutorial or material on that.
Thank you
Suneel

shahid nadeem March 16, 2015 02:16

Quote:

Originally Posted by Felggv (Post 373772)
Mr. Pradeep,

I've managed to do it with the help of a friend of mine that had already done it.

In CFD Post:

1) Insert> Expression - here we define the Saturation Pressure (Pg).

Definition: (0.61078* exp((17.269*(Temperature - 273.15 [K]))/((Temperature - 273.15[K]) + 237.3[K])))*1000

2) Insert> Expression

Definition: (((Water Vapour at 25 C.Mass Fraction/Air at 25 C.Mass Fraction)*Absolute Pressure)/((0.622 + Water Vapour at 25 C.Mass Fraction/Air at 25 C.Mass Fraction)*Pg))*100

3) Insert> Variable - name it "Relative Humidity" and in expression set it like the expression above (in item 2).

Now you can plot it as contours, charts, tables, etc.

So you mean to say
(0.61078* exp((17.269*(Temperature - 273.15 [K]))/((Temperature - 273.15[K]) + 237.3[K])))*1000[/B] = pg


All times are GMT -4. The time now is 15:21.