# Gas PVT Properties Calculator AI Agent Connect

> Calculate real gas properties like Z-factor, density, and viscosity.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_mxQyXRchWiJ97hdi0XcDomH7HJbN7CbFSQIioWpx/ai-agent-connect
- **Tags:** thermodynamics, natural-gas, pvt, reservoir-engineering, petroleum

## Description

This MCP server provides high-precision thermodynamic calculations for natural gas. It allows AI agents to determine critical reservoir parameters including the Z-factor, gas density, viscosity, and the gas formation volume factor. By accounting for specific gas compositions and impurities like CO2 and H2S, the tools provide accurate physical modeling for fluid flow and reservoir engineering.

## Tools

### get_gas_compressibility
Determines the isothermal compressibility of the gas

### get_gas_density
Determines the mass per unit volume of the gas at specific reservoir conditions

### get_gas_formation_volume_factor
Calculates the ratio of gas volume at standard conditions to volume at reservoir conditions

### get_gas_viscosity
Calculates the dynamic viscosity of the gas

### get_z_factor
Calculates the compressibility factor (Z) to determine how much the gas deviates from ideal behavior

## Prompt Examples

**Prompt:** 
```
What is the Z-factor for a gas with specific gravity 0.65 at 3000 psi and 150 F?
```

**Response:** 
```
The calculated Z-factor for the gas at 3000 psi and 150 F is 0.842.
```

**Prompt:** 
```
Calculate the gas density for a methane-rich gas (CH4: 0.9, CO2: 0.1) at 2000 psi and 100 F.
```

**Response:** 
```
The gas density at 2000 psi and 100 F is 0.062 lb/ft³.
```

**Prompt:** 
```
Find the gas formation volume factor (BoG) at 4000 psi and 200 F, given standard conditions are 14.7 psi and 60 F.
```

**Response:** 
```
The gas formation volume factor (BoG) is 0.00155 res bbl/scf.
```

## Frequently Asked Questions

**How do I calculate the Z-factor?**
You can use the `get_z_factor` tool by providing the gas pressure, temperature, and either the specific gravity or a JSON string of the gas composition.

**Does this tool account for impurities?**
Yes, by providing a composition mapping that includes components like CO2 or H2S, the `get_gas_density` and `get_gas_viscosity` tools will factor these impurities into the results.

**What units should I use for pressure?**
The tools support both psi and bar for pressure inputs.
