Skip to main content

Real Gas

Define real gas properties

Updated today

Overview

The Real Gas feature in Luminary Cloud enables accurate simulation of fluid behavior in extreme conditions where standard gas assumptions break down.

Luminary Cloud offers two approaches for real gas calculations:

Method 1: CoolProp Library

What it is: An industry-standard thermodynamic database containing experimentally validated properties for over 100 pure fluids and mixtures.

Advantages:

  • Validated against extensive experimental data

  • Covers 100+ fluids (air, nitrogen, oxygen, refrigerants, cryogenic liquids)

  • Handles complex physics near saturation and critical points

  • Automatically generates accurate lookup tables

  • Works reliably across wide pressure and temperature ranges

Available Fluids Include:

  • Common industrial gases: Air, Nitrogen, Oxygen, Argon, Carbon Dioxide

  • Hydrocarbons: Methane, Ethane, Propane, Butane

  • Refrigerants: R22, R134a, R404A, R410A, R507A, and many others

  • Cryogenic fluids: Ammonia, Hydrogen, Helium, Water vapor

  • Specialty gases: Sulfur dioxide, Xenon, and more

Method 2: Polynomial Formula (Custom Approach)

What it is: A flexible mathematical formula (NASA 7-coefficient polynomial) that lets you define custom thermodynamic properties tailored to your specific fluid or research data.

Advantages:

  • Fully customizable to your fluid or mixture

  • Lightweight and computationally efficient

  • Perfect for proprietary gas formulations

  • Compatible with published research coefficients

  • Narrow focus on relevant temperature ranges

How it works: You specify how specific heat (cp) varies with temperature using a proven polynomial formula:

cp/R = a₁/T² + a₂/T + a₃ + a₄·T + a₅·T² + a₆·T³ + a₇·T⁴

How to Use Real Gas in Your Simulation

Step-by-step

Step 1: Access material properties

  1. In the simulation tree (left panel), expand Materials.

  2. Select the fluid material you want to configure.

    • If you do not have one yet, create a new fluid material.

  3. Confirm the Material Properties panel is open on the right.

Step 2: Switch the density relationship to Real Gas

  1. Expand Definitions (if it is collapsed).

  2. Find Density Relationship.

  3. Select Real Gas.

    • Ideal Gas

    • Real Gas

    • Constant Density

    • Constant Density with Energy

Step 3: Choose the real gas method

After selecting Real Gas, you will see Real Gas Method.

Option A: CoolProp (recommended)

  1. Set Real Gas Method to CoolProp Library.

  2. Choose a fluid in the Gas dropdown.

    • Default: Air

    • Examples: Nitrogen, Oxygen, R134a, Ammonia

  3. Set the operating range.

    • Pressure range: Min and Max pressure expected in the simulation

    • Temperature range: Min and Max temperature expected in the simulation

    • Use a 10 to 20 percent margin beyond expected conditions to avoid extrapolation.

  4. Optional: adjust table resolution.

    • Pressure points

      • Default: 1000

      • Faster setup: 500 to 700

      • Higher accuracy: 1200 to 1500

    • Temperature points

      • Default: 200

      • Faster setup: 100 to 150

      • Higher accuracy: 250 to 300

Option B: Custom polynomial

  1. Set Real Gas Method to Custom Polynomial.

  2. Enter Molecular Weight.

    • Default for air: 28.96 g/mol

  3. Set the valid Minimum Temperature and Maximum Temperature for the coefficients.

    • Use a narrow, coefficient-specific range for best accuracy.

  4. Enter polynomial coefficients (a1 through a7) and integration constants (b1 and b2).

    • Sources: NASA databases, research publications, thermodynamic software exports

Step 4: Configure the thermal conductivity model

Thermal conductivity affects heat diffusion, temperature profiles, and wall heat flux.

Option A: Prescribed Prandtl number

  1. Select Prescribed Prandtl Number in the Thermal Conductivity Model dropdown.

  2. Enter the Prandtl number for the fluid.

    • Most gases: about 0.7

    • Water: about 5 to 7

  3. Click Save.

    • The system computes thermal conductivity from viscosity and specific heat using the Prandtl number.

Option B: Constant thermal conductivity

  1. Select Constant Thermal Conductivity.

  2. Enter a thermal conductivity value.

  3. Click Save.

Option C: Temperature-dependent table

  1. Select Temperature-Dependent Table.

  2. Upload or import a 2-column table: Temperature to Thermal Conductivity.

  3. Confirm the table covers the full simulation temperature range.

  4. Click Save.

    • Use at least 3 to 5 points.

    • Sort temperatures in ascending order.

    • Extend 10 to 20 percent beyond expected operating temperatures.

Step 5: Configure the dynamic viscosity model

Dynamic viscosity controls friction within the fluid and affects drag, heat transfer, and convergence.

Option A: Sutherland's Law

  1. Select Sutherland's Law in the Dynamic Viscosity Model dropdown.

  2. Enter:

    • Reference Viscosity

    • Reference Temperature

    • Sutherland Constant

    • Reference values are fluid dependent.

Option B: Temperature-dependent table

  1. Select Temperature-Dependent Table.

  2. Provide a viscosity table.

    • Use at least 3 to 5 points.

    • Sort temperatures in ascending order.

    • Extend 10 to 20 percent beyond expected operating temperatures.

Step 6: Save and run

  1. Click Save to apply settings.

  2. Continue normal simulation setup.

  3. Start the simulation.

    • Real gas property tables are generated automatically on first run.

    • Subsequent runs reuse cached tables.

How to Verify Real Gas is Working Correctly

Check 1: Table Ranges

  • Make sure the table ranges cover the minimum static pressure and temperature and the maximum total pressure and temperature

Check 2: Sensitivity of the Results to Table Resolution

  • Run the same simulation with double the number of temperatures and pressures and see if it affects the results

Did this answer your question?