# Natural Gas Compressibility Factor Engine AI Agent Connect

> High-precision Z-factor calculations using industry-standard correlations.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_udfEl7tNog83HM3ZYJoPB9h6F2oPQtQTBMa42VCE/ai-agent-connect
- **Tags:** gas, compressibility, z-factor, thermodynamics, petroleum

## Description

This MCP server provides high-precision engineering tools for determining the gas compressibility factor (Z-factor). It connects AI agents to advanced thermodynamic correlations like Dranchuk-Abou-Kassem and Standing-Katz. Users can calculate Z-factors using detailed molar compositions or specific gravity, evaluate the impact of sour gases, and validate operating conditions for gas phase stability. It is designed for natural gas engineers and researchers needing accurate pseudo-reduced property derivations.

## Tools

### validate_gas_conditions
Checks if the provided pressure and temperature are within the valid range for standard compressibility correlations

### calculate_z_factor_by_composition
g., '{"methane": 0.9, "ethane": 0.1}').

Calculates the Z-factor using a detailed molar composition of the gas

### calculate_z_factor_by_gravity
Calculates the Z-factor when only the specific gravity of the gas is known

### get_sour_gas_impact
Evaluates how much the acid gas content is shifting the pseudo-critical properties

## Prompt Examples

**Prompt:** 
```
Calculate the Z-factor for a gas with 90% methane and 10% ethane at 2000 psia and 150 F.
```

**Response:** 
```
The calculated Z-factor is 0.842, with a pseudo-reduced pressure of 1.45 and pseudo-reduced temperature of 1.62.
```

**Prompt:** 
```
What is the impact of 5% H2S on the gas properties?
```

**Response:** 
```
The acid gas fraction is 0.05, resulting in a critical property shift factor of 1.032.
```

**Prompt:** 
```
Calculate Z-factor for a gas with specific gravity 0.65 at 3000 psia and 100 F.
```

**Response:** 
```
The Z-factor is 0.785 based on the Standing-Katz correlation.
```

## Frequently Asked Questions

**What correlations are used for Z-factor calculation?**
The engine utilizes the Dranchuk-Abou-Kassem correlation for high-precision composition-based calculations and the Standing-Katz correlation for specific gravity-based calculations.

**How does the engine handle sour gas?**
You can use `get_sour_gas_impact` to evaluate how acid gases like H2S or CO2 shift pseudo-critical properties, ensuring accurate Z-factor results.

**Can I validate if my gas is in a supercritical state?**
Yes, the `validate_gas_conditions` tool checks if the provided pressure and temperature are within valid ranges for standard correlations and identifies supercritical or liquid states.
