CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Huge difference between air ideal gas and air at 25C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2024, 08:16
Smile Huge difference between air ideal gas and air at 25C
  #1
New Member
 
Emre Olmez
Join Date: Jul 2024
Location: Ankara, Turkey
Posts: 4
Rep Power: 2
lapac1 is on a distinguished road
Hello everyone,

I am performing a CFX analysis for a 3-stage fan section of a turbofan engine. In the Expressions section, I am calculating the pressure difference between the inlet and outlet. When I perform the analysis with "air at 25C," the pressure difference is 150 kPa. However, when I perform the analysis with "ideal air gas," the pressure difference goes up to 10^18 and seems to go to infinity. How can I fix this issue? I want to perform my analysis with "ideal air gas."
lapac1 is offline   Reply With Quote

Old   July 15, 2024, 08:45
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,885
Rep Power: 27
Gert-Jan will become famous soon enough
When using "Air at 25C", density will be constant.
When using "Air Ideal Gas", density will be the outcome of local Pressure and Temperature.
So, possibly the values on your Boundaries are unrealistic? Or maybe you have set both the Reference Pressure and a Pressure boundary equal to 0 [Pa]? Or check the units of temperature? Maybe you gave 0 [K] where you mentioned 0 [C]?
If this low hanging fruit does not help, you need to share the output file so we can take a closer look to your settings.
Gert-Jan is offline   Reply With Quote

Old   July 15, 2024, 09:45
Default
  #3
New Member
 
Emre Olmez
Join Date: Jul 2024
Location: Ankara, Turkey
Posts: 4
Rep Power: 2
lapac1 is on a distinguished road
Thank you for your reply. You can see the related files below.


idealgassettings.png

idealgas.txt

pdiffidealgas.png
Attached Images
File Type: jpg airat25Csettings.jpg (63.9 KB, 22 views)
lapac1 is offline   Reply With Quote

Old   July 15, 2024, 11:09
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,885
Rep Power: 27
Gert-Jan will become famous soon enough
That is a quite complicated system. There could be many things wrong.
Your 1e18 pressure shows something is completely wrong. Make sure you know what you are doing.
However, I would start with 1 [atm] as reference pressure instead of 0 [Pa]. Then at least you have a basis for a realistic density.
Also, did you use the first calculation as a start for the second?
Gert-Jan is offline   Reply With Quote

Old   July 15, 2024, 11:51
Default
  #5
New Member
 
Emre Olmez
Join Date: Jul 2024
Location: Ankara, Turkey
Posts: 4
Rep Power: 2
lapac1 is on a distinguished road
Solutions were carried out using air as an ideal gas and air at 25°C in different files. I am getting the desired results using air at 25°C. For ideal air gas, I started the reference pressure with 1 atm and inlet pressure with 0 kPa. It still gives the same results. My boundary conditions and other things are looking quite true. I have watched many videos on this, but they are doing the same things I am and getting good results. I couldnt find any solution for this problem for quite long time. If anyone can help me I would be very grateful for that.
lapac1 is offline   Reply With Quote

Old   July 15, 2024, 12:59
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,850
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by lapac1 View Post
Solutions were carried out using air as an ideal gas and air at 25°C in different files. I am getting the desired results using air at 25°C. For ideal air gas, I started the reference pressure with 1 atm and inlet pressure with 0 kPa. It still gives the same results. My boundary conditions and other things are looking quite true. I have watched many videos on this, but they are doing the same things I am and getting good results. I couldnt find any solution for this problem for quite long time. If anyone can help me I would be very grateful for that.
Since you have already done both simulations, take both output files and compare them using a "difference text file" tool, and compare what is different between both setups.

The only acceptable difference is the content for Air at 25C and Air Ideal Gas, and wherever they are referenced. Any other difference, and you are not comparing the same models.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   July 15, 2024, 14:03
Default
  #7
New Member
 
Emre Olmez
Join Date: Jul 2024
Location: Ankara, Turkey
Posts: 4
Rep Power: 2
lapac1 is on a distinguished road
I used the "difference text file" tool, but I couldn't see any specific difference between the models. Can you also check it, if it is possible?
https://www.diffchecker.com/LTrVkpvm/
lapac1 is offline   Reply With Quote

Old   July 15, 2024, 16:18
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,850
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by lapac1 View Post
I used the "difference text file" tool, but I couldn't see any specific difference between the models. Can you also check it, if it is possible?
https://www.diffchecker.com/LTrVkpvm/
The cases seem to be the same, but you are not running it the same way. When debugging model issues, you must compare identical runs including the number of cores/partitions being used.

On the model itself, you have not set initialization values for the simulation; therefore, you are relying on the Automatic behavior which may be different between incompressible and compressible flows.

Also, from the initial scales, your flow is becoming transonic from inlet to outlet in the compressible model --> more difficult to converge than a plain incompressible flow.

Time to reconsider your timescale selection, and allow the "initial guess" to settle into something meaningful.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Reply

Tags
air ideal gas, cfx


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
Problem with Air 25C and Air ideal Gas phamngocdung1992 CFX 2 March 7, 2022 13:55
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 05:37
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
error message cuteapathy CFX 14 March 20, 2012 06:45


All times are GMT -4. The time now is 20:06.