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

Calculation of isentropic efficiency

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2024, 22:02
Post Calculation of isentropic efficiency
  #1
New Member
 
Chen Rui
Join Date: Jun 2024
Posts: 14
Rep Power: 2
Fat shady is on a distinguished road
Hello, everyone. I have a question for you.I'm running a simulation of the turbo expander with CFX. Why choose to use a fixed composition mixture as the material, and after setting the isentropic efficiency formula, the solution will report an error?
Fixed composition mixture is as follows:
I used RGP Generator to generate a single substance RGP property file of methane and ethane。 The Fixed Composition Mixture in the CFX Pre sets the ratio of methane and ethane to 0.964 and 0.036, respectively.
The isentropic efficiency formula is as followsEFFICIENCY)
100*(massFlowAve(Total Enthalpy)@S1 Inlet-massFlowAve(Total Enthalpy)@R1 Outlet)/(massFlowAve(Total Enthalpy)@S1 Inlet-massFlowAve(Isentropic Total Enthalpy)@R1 Outlet)
CFX-Solver reports the following error:
Monitor Point: EFFICIENCY
+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| An error: Illegal argument for callback function massFlowAve(Isen- |
| tropic Total Enthalpy)@R1 Outlet |
| |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine GET_CBCK_VALUE

I kind of know that the reason it's wrong is that you can't calculate the total isentropic enthalpy of two or more mixtures. Individual substances such as methane or ethane can be counted, but mixtures cannot. So I want to ask for your help.Thank you!
Fat shady is offline   Reply With Quote

Old   July 3, 2024, 05:37
Default
  #2
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
You're absolutely right! The error you're encountering in CFX is due to the attempt to calculate the isentropic enthalpy of a mixture directly. Here's how to address this issue:

**The Problem:**

* Fixed composition mixtures don't have a single isentropic enthalpy value.
* The `massFlowAve(Isentropic Total Enthalpy)@R1 Outlet` function doesn't work for mixtures like yours.

**The Solution:**

There are two main approaches to calculate the isentropic efficiency for your methane-ethane mixture:

**1. Individual Component Isentropic Enthalpy:**

* Calculate the isentropic enthalpy for each component (methane and ethane) separately using their pure substance properties. You can likely find these properties within the RGP file generated by RGP Generator.
* Use a mass-weighted average of the individual component isentropic enthalpies to represent the mixture's isentropic enthalpy.

Here's a modified efficiency formula based on this approach:

```
EFFICIENCY = 100 * (
(massFlowAve(h_isentropic,methane) * mass_fraction_methane + massFlowAve(h_isentropic,ethane) * mass_fraction_ethane) @ S1 Inlet -
(massFlowAve(Total Enthalpy) @ R1 Outlet)
) / (
(massFlowAve(h_isentropic,methane) * mass_fraction_methane + massFlowAve(h_isentropic,ethane) * mass_fraction_ethane) @ S1 Inlet -
(massFlowAve(h_isentropic,methane) * mass_fraction_methane + massFlowAve(h_isentropic,ethane) * mass_fraction_ethane) @ R1 Outlet
)
```

**2. Use Material Property Function (MPF):**

* Define a User Defined Material Property Function (UDMPF) in CFX-Pre.
* This function should take the mixture composition (mass fractions of methane and ethane) and temperature/pressure as inputs.
* Within the UDMPF, calculate the mixture's isentropic enthalpy based on the individual component properties and their mass fractions.
* Use the UDMPF in your efficiency formula to access the isentropic enthalpy at the desired locations.

This approach requires more upfront work but offers greater flexibility for complex property calculations involving mixtures.

**Additional Tips:**

* Ensure the mass fractions of methane and ethane in your CFX model match the values used during RGP property generation.
* Double-check the syntax of your modified efficiency formula in CFX-Solver.

By implementing one of these solutions, you should be able to calculate the isentropic efficiency for your turbo expander simulation in CFX without encountering the error related to the mixture's isentropic enthalpy.
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz 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
Efficiency Calculation in Fan MNMK CFX 2 November 16, 2020 05:26
Transfer output data as input for second calculation mannobot Main CFD Forum 3 December 7, 2018 09:37
Efficiency calculation in a francis turbine (CFX) cfturb CFX 15 February 6, 2017 19:57
Defining output as input for second calculation mannobot FLUENT 1 June 2, 2010 04:20
Droplet Collision Efficiency Calculation using DPM Virk FLUENT 0 January 22, 2010 09:37


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