Skip to content

Question Regarding Ideal Gas Assumption in IsentropicNozzle Function #100

@Shawn-W357

Description

@Shawn-W357

Hello,
I’ve been reading the IsentropicNozzle function in your code (/PDSim/flow/flow_models.pyx, line 618).

Image

I noticed that thermodynamics (e.g. Cp) are extracted using CoolProp, which provides real gas data. However, the subsequent calculations (e.g. k and rho) are based on ideal gas assumption.
This makes me wonder:

  1. How does this approach affect the accuracy of the results, particularly when the gas behavior deviates from ideal conditions?
  2. Is the enthalpy also calculated using CoolProp?
  3. Can the error introduced by this method be considered negligible in engineering design issues?
<style> </style>
P (Pa) T (K) rho (kg/m^3)   R
    p/(RT) CoolProp 114.56
1.40E+06 305 4.01E+01 49.58344567  
1.80E+06 320 4.91E+01 61.93591356  

In my case study, I found that the density calculated using rho = p/(R*T) differs nearly 20% from that provided by CoolProp.
I would really appreciate your insights on these points. Thank you for your time.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions