PO.WI.Barrier.Status
Description
The status of one well barrier, the primary or the secondary, from the statuses of the well barrier elements (WBEs) that make it up. NORSOK D-010 defines a well barrier as an "envelope of one or several well barrier elements preventing fluids from flowing unintentionally from the formation into another formation or to surface". The envelope is closed only if every element is, so it is only as good as its worst element. Each element's status is a code: 0 for intact (tested and verified), 1 for degraded or not verified, 2 for failed. The envelope takes the highest code among its elements. Blank cells are ignored, so a table can list more element slots than a given well uses, and an envelope with no element at all is failed: there is nothing to stop the flow. A code above 2 counts as failed. Feed the two envelopes' statuses to `PO.WI.Barrier.Rating` for the well's integrity category.
Formula
=LAMBDA(Elements, IF(COUNT(Elements) = 0, 2, MAX(0, MIN(2, MAX(Elements)))))Parameters
| Parameter | Unit | Description |
|---|---|---|
Elements |
- | Status codes of the envelope's elements: 0 intact, 1 degraded or not verified, 2 failed (a column; blanks ignored) |
Examples
| Invocation | Expected |
|---|---|
=PO.WI.Barrier.Status({0;0;0;0}) |
0 |
=PO.WI.Barrier.Status({0;1;0;0}) |
1 |
=PO.WI.Barrier.Status({0;1;2;0}) |
2 |
=PO.WI.Barrier.Status({2;0;0}) |
2 |
=PO.WI.Barrier.Status({1;1}) |
1 |
=PO.WI.Barrier.Status({"";""}) |
2 |