weighted_average_gas_sg
Calculate weighted average gas specific gravity from separator stages using separator and stock tank gas properties weighted by gas-oil ratios for surface facility design and material balance.
Instructions
Calculate weighted average gas specific gravity from separator stages.
SURFACE FACILITIES CALCULATION - Combines gas gravities from separator and stock tank weighted by GORs.
Use Cases:
Multi-stage separation optimization
Surface facility design
Gas sales allocation
Material balance
Formula: sg_avg = (sg_sp * rsp + sg_st * rst) / (rsp + rst)
Returns weighted average gas SG (dimensionless, air=1).
Args: request: Separator and stock tank gas properties
Returns: Dictionary with weighted average SG and breakdown
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |