CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Modeling relative Humidity in CFX (https://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 6, 2013 23: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 00: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 15: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 01: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

dharav12 August 9, 2017 23:25

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.

Hi Everyone, I create two expressions in CFX-Pre (Setup) as stated in item 1 and 2. However, I do not understand what do you mean by item 3. I created a variable but how do I set it like the expression as given in item 2?

Thank you for your help.

Regards,
Dharav Brahmbhatt

mahesh1819 April 15, 2020 01:04

Hi Pradeep,
 
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.


We are simulating relative humidity in a room having a fan with hot air velocity inlet (low water vapor + air). We could not figure out how to define inner air conditions which is having (high water vapour+Air). We are using species transport, energy and viscous equations. We have defined mass inlet for the fan and considered convection from the side walls.
Please guide us how to define inner air conditions.

ghorrocks April 15, 2020 02:01

You model the air as a variable composition mixture of air and water. Set the water (or the air) as a constraint. Then you set your initial and boundary conditions for the mass fractions. Works for me. Can you explain what your problem is?

mahesh1819 April 15, 2020 02:29

Hi, Thanks for quick reply.
My exact problem is how to define inside air with higher humidity.
we define veocity inlet with mass fractions of water vapour and air.
Our model do not have any outlet condition.
Our ultimate aim is to simulate and plot relative humidity inside the room in steady state condition. Please help

ghorrocks April 15, 2020 02:33

Please post an image of what you are modelling and your output file. Please post them directly on the forum, do not use third party download sites. FAQ on how to do this: https://www.cfd-online.com/Wiki/Ansy...n_the_forum.3F

mahesh1819 April 15, 2020 05:13

5 Attachment(s)
Dear ghorrocks,
As suggested, please find the attached images.
1. We have a space having hot air fan duct (refer fig. MassFlowInlet-Marked) which we have defined as mass flow inlet (refer fig. MassFlowInlet-Momentum, MassFlowInlet-Species, MassFlowInlet-Thermal)
2. Side walls are defined as per SideWall-Boundary Condition
3. We are stuck how to define inner air which is at 30 deg and higher relative humidity (Refer fig.CellZone Input)
4. And not getting any results in H20 mass fraction. (Fig.H2O-MassFractionResults)
Please review and help where we are wrong.


All times are GMT -4. The time now is 08:02.