calculate_collapse_pressure
Calculate casing collapse pressure ratings using API 5C3 standards. Determines failure regime and applies appropriate formulas based on D/t ratio and yield strength for petroleum engineering applications.
Instructions
Calculate collapse pressure rating per API 5C3.
Determines regime (yield, plastic, transition, elastic) from D/t ratio and yield strength, then applies the corresponding API formula.
Args: od_in: Casing outer diameter (inches). wall_thickness_in: Wall thickness (inches). yield_strength_psi: Minimum yield strength (psi). grade: Optional API grade label (e.g. 'N-80') for reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| od_in | Yes | ||
| wall_thickness_in | Yes | ||
| yield_strength_psi | Yes | ||
| grade | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |