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

Negative entropy

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2021, 01:41
Default Negative entropy
  #1
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
I run a transient simulation with air ideal gas as material but forgot to set reference temperature and pressure. Now when I examine entropy at any location most entropy contours have negative values.
Since default ideal gas material assumes reference specific entropy as zero, does this happen because of wrong reference temperature and pressure?
As transient simulations are time consuming, I decided to define a new variable based on two new reference temperature and pressure as:
S - S(ref)=c(p)*log (T/T(ref)) – R*log (P / P(ref))
Expression: Specific Heat Capacity at Constant Pressure*log(Temperature/289 [K])-R*log(Pressure/101325 [Pa])
Then, I defined the reference temperature as the mean value between inlet and outlet of a compressor and the inlet pressure as the reference pressure.
Now, when I use the variable to draw entropy, I get error vertex values for variable do not exist on geometry /turbo surface.
Does anyone know how to fix it?
Julian121 is offline   Reply With Quote

Old   January 19, 2021, 08:13
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Unless you want to compare with previous results using different reference values, the absolute value of entropy is irrelevant in nearly all cases.

The provided value is relative to S_ref, so it can be anything and still be correct. Say S_ref = -10^15.. It may be a nuisance, but it is still correct.

On the message, I would create the initialize the turbo features after I had created the new variable to see if the turbo post-processor missed those variables.

Can you create a contour on an inlet, wall, or another non-turbo locator?
Julian121 and aero_head like this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   January 19, 2021, 11:17
Default
  #3
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Unless you want to compare with previous results using different reference values, the absolute value of entropy is irrelevant in nearly all cases.

The provided value is relative to S_ref, so it can be anything and still be correct. Say S_ref = -10^15.. It may be a nuisance, but it is still correct.

On the message, I would create the initialize the turbo features after I had created the new variable to see if the turbo post-processor missed those variables.

Can you create a contour on an inlet, wall, or another non-turbo locator?
It did not show on a non-turbo location either but I am comparing the results between different cases relative to the same S_ref=0, so I think it does not matter anymore.
Julian121 is offline   Reply With Quote

Old   January 29, 2021, 07:04
Default
  #4
New Member
 
Seulchan Chu
Join Date: Jan 2021
Posts: 3
Rep Power: 5
Carnot is on a distinguished road
In the expression, R has differenct unit with Cp.
From CFD-POST Constants, the unit of R is [ J K^-1 mol^-1 ]
But Cp has [m^2 s^-2 K^-1]
I think it is needed to make the units same.
R should be divided by molecular weight of the gas.
Carnot is offline   Reply With Quote

Old   January 29, 2021, 14:14
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Quote:
Originally Posted by Carnot View Post
In the expression, R has differenct unit with Cp.
From CFD-POST Constants, the unit of R is [ J K^-1 mol^-1 ]
But Cp has [m^2 s^-2 K^-1]
I think it is needed to make the units same.
R should be divided by molecular weight of the gas.
Though the equation may look incorrect (missing the MolarMass), it is nearly impossible for the wrong equation to be evaluated in CFD-Post since it checks for dimensional compatibility between terms. It would have triggered an error indicating the mismatch between the units. Sure, if forced by faking the units with a dummy value then it becomes a user beware.

Over the years I have learned that R in the thermodynamics books means "any consistent R" since the equation is valid per unit mass or per unit mol; therefore, it is only when evaluating the expression that the units must be consistent.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Reply


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 00:42.