Skip to main content
Tie Wang Tie Wang Tie Wang Tie Wang
Search
Tie Wang · 22 Menu Pages
Sitemap
00 · Tie Wang

How does a national programme hold up under the lender, the auditor and time?

Technology · Layer: edge

Metrology

How are custody-transfer meters, provers, samplers and flow computers engineered and bounded by an RSS uncertainty budget held against legal limits?

05 · Applications & officer portals
04 · Reconciliation & rules engines
03 · Append-only evidence ledger
02 · Sovereign transport & exchange
01 · Field metrology & edge capture Active layer

01 · Layer 01 · Field metrology & edge capture · Heat 2 · Auditor test

Engineering conclusion and public-record context

Custody-transfer metrology converts raw physical flow into legally defensible volume or mass at standard reference conditions, proved by an explicit root-sum-of-squares uncertainty budget continuously checked against statutory limits.

Class 0.3 system MPE Sourced
Sourced met-1 · 2019 Maximum permissible error of an accuracy class 0.3 dynamic liquid measuring system (custody transfer of crude oil and products) OIML R 117-1:2019, Dynamic measuring systems for liquids other than water Open public record ↗

Maximum permissible error of a complete dynamic liquid custody-transfer system under OIML R 117-1.

Class 0.3 meter MPE Sourced
Sourced met-2 · 2019 Maximum permissible error of the meter alone in the same accuracy class OIML R 117-1:2019, Dynamic measuring systems for liquids other than water Open public record ↗

Maximum permissible error of the primary meter alone in the same OIML R 117-1 class.

Petroleum reference state Sourced
Sourced met-3 · 1999 Standard reference conditions for petroleum and liquid petroleum products ISO 5024:1999, Petroleum liquids and liquefied petroleum gases, measurement, standard reference conditions Open public record ↗

ISO 5024:1999 standard reference temperature and pressure for petroleum liquid custody transfer.

Uncertainty combination method Sourced
Sourced ref-met-1 · 2008 Under the international Guide to the Expression of Uncertainty in Measurement (JCGM 100:2008), combined standard uncertainty is obtained by combining component variances (root sum of squares for uncorrelated inputs), according to the BIPM. Bureau International des Poids et Mesures (BIPM / JCGM), Evaluation of measurement data: Guide to the expression of uncertainty in measurement (JCGM 100:2008) (2008-09) Open public record ↗

BIPM JCGM 100:2008 combines uncorrelated Type A and Type B variances by root sum of squares.

Why this layer exists and how it holds

A national hydrocarbon, water or bulk-commodity programme is only as trustworthy as the primary physical sensor at the flange. When crude oil, refined fuel or natural gas crosses a fiscal boundary without calibrated temperature, pressure and density compensation, thermal expansion alone can shift apparent volumes by several percent, dwarfing legitimate trading margins and creating persistent disputes between operators and the Treasury.

Tie Wang engineers Layer 01 metrology around international legal-metrology standards rather than proprietary vendor claims. For dynamic liquid petroleum custody transfer, OIML R 117-1 Accuracy Class 0.3 caps the complete measuring system maximum permissible error at 0.3% and the meter element alone at 0.2%, with volumes corrected to ISO 5024 standard reference conditions of 15 degrees Celsius and 101.325 kPa. For gas corridors, ultrasonic flow measurement is designed against ISO 17089-1 and API MPMS practices.

Rather than rushing to rip out working operator skids on day one, Tie Wang follows the software-first, connect-before-procuring discipline. Existing fiscal flow computers, tank gauging systems and depot weighbridges are tapped read-only through hardware data diodes first. Independent provers, automated flow-proportional samplers and replacement meters are then funded in targeted tranches strictly where uncertainty budgets or reconciliation variances prove an unclosed physical gap.

Every measurement entering the evidence ledger carries its calibration certificate identifier, last proving date, meter factor K and computed expanded uncertainty. If a calibration certificate expires or a prover run shifts the meter factor beyond tolerance, the system flags every subsequent ticket automatically rather than silently accepting drifted readings.

OIML Class 0.3 Sourced

0.3%

Highest dynamic liquid class for pipeline, refinery and marine terminal custody transfer (0.2% meter alone, 0.3% complete system).

Source: OIML R 117-1:2019 Open record ↗

OIML Class 0.5 Sourced

0.5%

Standard road-tanker gantry and depot loading class (0.3% meter alone, 0.5% complete measuring system).

Source: OIML R 117-1:2019 Open record ↗

BIPM JCGM 100 coverage Sourced

k = 2 to 3

Expanded uncertainty multiplies combined RSS standard uncertainty by coverage factor k (typically k=2 for ~95% confidence).

Source: BIPM JCGM 100:2008 Open record ↗

Standards designed against

Published standards shaping Metrology within Field metrology & edge capture (design basis only, never a certification claim):

  • Sourced std-r117 · 2019 Dynamic measuring systems for liquids other than water OIML R 117-1:2019 Open public record ↗
  • Sourced std-5024 · 1999 Petroleum measurement: standard reference conditions ISO 5024:1999 Open public record ↗
  • Sourced std-gum · 2008 Guide to the expression of uncertainty in measurement (Type A and Type B evaluation, root-sum-of-squares propagation and coverage factor k) BIPM / JCGM, JCGM 100:2008 (GUM) Open public record ↗
  • Sourced std-17089 · 2019 Measurement of fluid flow in closed conduits: ultrasonic meters for gas ISO 17089-1:2019 Open public record ↗
  • Sourced std-mpms · 2023 American Petroleum Institute Manual of Petroleum Measurement Standards API MPMS Open public record ↗
  • Sourced std-17025 · 2017 General requirements for the competence of testing and calibration laboratories ISO/IEC 17025:2017 Open public record ↗

02 · Architecture & data model

Security zones, custody boundaries and schema

Inspect the 4 security nodes for Metrology or toggle the tabular register, then review canonical custody rules starting with MeterAssetRegister.

Fiscal metering skid, proving loop, flow computer and unidirectional telemetry path Illustrative

Fiscal metering skid, proving loop, flow computer and unidirectional telemetry path. Four security zones in sequence: Process pipe · Custody (Coriolis / ultrasonic meter, Dual-pulse + HART / Modbus); Field cabinet · Sealed (Fiscal flow computer, API MPMS Ch. 11 / ISO 5024); Calibration · Traceable (Compact prover / master meter, ISO/IEC 17025 traceable cert); Layer 02 · Boundary (Read-only diode collector, Optical diode → Ledger API).

SOVEREIGN CUSTODY BOUNDARY · APPEND-ONLY AUDIT LOGGING ACTIVE ACROSS ALL ZONES PROCESS PIPE · CUSTODY Coriolis / ultrasonic meter INTERFACE Dual-pulse + HART / Modbus CUSTODIAN Operator / joint skid FIELD CABINET · SEALED Fiscal flow computer INTERFACE API MPMS Ch. 11 / ISO 5024 CUSTODIAN Metrological authority seal CALIBRATION · TRACEABLE Compact prover / master meter INTERFACE ISO/IEC 17025 traceable cert CUSTODIAN Accredited verifier LAYER 02 · BOUNDARY Read-only diode collector INTERFACE Optical diode → Ledger API CUSTODIAN Sovereign evidence chain
Process pipe · Custody · Operator / joint skid

Control gate: Temperature, pressure, density and automatic flow-proportional sampler (Dual-pulse + HART / Modbus)

Field cabinet · Sealed · Metrological authority seal

Control gate: Physical metrology seal, audit log of K-factor edits, gross-to-net calc (API MPMS Ch. 11 / ISO 5024)

Calibration · Traceable · Accredited verifier

Control gate: Periodic in-situ proving verifies meter factor drift against legal MPE (ISO/IEC 17025 traceable cert)

Layer 02 · Boundary · Sovereign evidence chain

Control gate: Streams signed batch tickets and diagnostic health without write path (Optical diode → Ledger API)

Fiscal metering skid, proving loop, flow computer and unidirectional telemetry path Illustrative
Security zoneComponentProtocol / standardControl gateCustody owner
Process pipe · CustodyCoriolis / ultrasonic meterDual-pulse + HART / ModbusTemperature, pressure, density and automatic flow-proportional samplerOperator / joint skid
Field cabinet · SealedFiscal flow computerAPI MPMS Ch. 11 / ISO 5024Physical metrology seal, audit log of K-factor edits, gross-to-net calcMetrological authority seal
Calibration · TraceableCompact prover / master meterISO/IEC 17025 traceable certPeriodic in-situ proving verifies meter factor drift against legal MPEAccredited verifier
Layer 02 · BoundaryRead-only diode collectorOptical diode → Ledger APIStreams signed batch tickets and diagnostic health without write pathSovereign evidence chain

Illustrative Source: Tie Wang Layer 01 metrology architecture (designed against OIML R 117-1, ISO 5024, API MPMS and JCGM 100)

Canonical data model and custody rules

A custody-transfer batch ticket is never a lone volume number. The Layer 01 metrology schema binds five coupled artefacts to one batch event identifier: raw uncorrected pulse totals, flow-weighted average temperature/pressure/density, the exact API MPMS correction algorithm version applied, the active calibration certificate and meter-factor K from the last witnessed proving run, and the computed RSS uncertainty envelope.

Storing raw sensor signals alongside corrected standard volumes ensures that if a temperature transmitter later fails calibration verification, the authority and operator can recompute historical batches deterministically from raw pulses and agree an audited adjustment without guesswork.

Metrology: core data entities, join keys and custody Illustrative
Data entityJoin / primary keyImmutability controlRetention windowCustodian
MeterAssetRegistermeter_id + serial_noCommissioning spec + seal tagAsset life plus 10 years (illustrative)National metrology bureau
ProvingCertificatemeter_id + proving_dateSigned by ISO/IEC 17025 verifierPermanent calibration chainIndependent verifier
BatchCustodyTicketevent_uuid + batch_seqRaw pulses + ISO 5024 net volumePermanent statutory archiveEvidence ledger
FlowComputerAuditLogmeter_id + param_change_seqCaptures every K-factor or zero editPermanent audit trailFlow computer + ledger copy
UncertaintyBudgetRecordmeter_id + evaluation_hashJCGM 100 RSS breakdown (k=2)Linked to every proving cycleMetrology engineering desk

Illustrative Source: Tie Wang Layer 01 canonical schema specification

03 · Operable instrument & performance budget

Test the mechanism directly

Run Live JCGM 100 RSS custody-transfer uncertainty budget below to stress-test metrology controls live, paired with illustrative variance share across a class 0.3 petroleum metering uncertainty budget.

Operable engineering instrument

Computed

Live JCGM 100 RSS custody-transfer uncertainty budget

Adjust component standard uncertainties below to compute combined standard uncertainty (u_c), expanded uncertainty (U at k=2) and compliance against the OIML R 117-1 Class 0.3 limit (0.30%).

Combined standard u_c 0.109 %
Expanded uncertainty U 0.217 %
Statutory limit 0.30 %
Headroom / breach +0.083 %
GUM RSS VERDICT Within statutory accuracy limit · Custody-transfer certificate valid Dominant variance contributor: Meter repeatability (Type A)
Meter repeatability (Type A)
30.5%
Master prover traceability
21.2%
Temperature & CTL correction
13.6%
Pressure, density & BS&W sampling
21.2%
Inter-proving calibration drift
13.6%

Source: Live BIPM JCGM 100:2008 root-sum-of-squares formula held against OIML R 117-1 Class 0.3 (0.30% MPE)

Illustrative variance share across a Class 0.3 petroleum metering uncertainty budget (Because uncertainties combine in quadrature, the single largest uncalibrated component dominates total fiscal error) Illustrative

Illustrative variance share across a Class 0.3 petroleum metering uncertainty budget. Illustrative variance share across a Class 0.3 petroleum metering uncertainty budget from Meter repeatability (Type A) to Inter-proving drift: starts at 30 %, ends at 14 %, range 14 % to 30 %.

0 % 20 % 40 % 60 % 80 % 100 % Meter repeatability (Type A) 30 % Master prover traceability 21 % Density & BS&W sampling 21 % Temperature & CTL calc 14 % Inter-proving drift 14 %

Because uncertainties combine in quadrature, the single largest uncalibrated component dominates total fiscal error

Illustrative variance share across a Class 0.3 petroleum metering uncertainty budget (Because uncertainties combine in quadrature, the single largest uncalibrated component dominates total fiscal error) Illustrative
Stage or tierValue (%)Engineering rationale
Meter repeatability (Type A)30Squared share of total system variance
Master prover traceability21Reference standard & calibration lab chain
Density & BS&W sampling21Water-cut and composite sampler error
Temperature & CTL calc14Pt100 probe + thermal expansion table
Inter-proving drift14Mechanical wear between proving runs

Illustrative Source: Tie Wang metrology design case (JCGM 100 variance-share decomposition, illustrative baseline)

04 · Operational sequence

Four stages from intake to audited closure

Step through Metrology from read existing fiscal flow computers first to detect entrained gas, wax or bypass early; the schematic plate updates on every beat.

READ-ONLY SKID AUDIT BEAT 01 / 03
STAGE 01 STAGE 02 STAGE 03 STAGE 04 Survey existing meters & proving records Tap serial/Modbus output via data diode Bind raw tickets to declarations in ledger Rank unproved or missing-meter chokepoints
TRACEABLE PROVING CHAIN BEAT 02 / 03
STAGE 01 STAGE 02 STAGE 03 STAGE 04 Witnessed proving run computes K-factor JCGM 100 RSS budget verified <= MPE Physical wire seal & flow-computer lock Proving expiry date tracked automatically
DIAGNOSTIC HEALTH WATCH BEAT 03 / 03
STAGE 01 STAGE 02 STAGE 03 STAGE 04 Track Coriolis drive gain & zero stability Watch ultrasonic speed-of-sound deviation Alert on any flow-computer parameter edit Trigger preventive proving before MPE breach
Step 01 · Connect existing skids

Read existing fiscal flow computers first

Before ordering steel skids or civil foundations, Tie Wang inspects existing depot and terminal flow computers, documents their calibration status and streams signed batch tickets read-only through an optical data diode into the evidence ledger.

Step 02 · Prove and bound uncertainty

Maintain traceable calibration chains

Every fiscal meter undergoes witnessed proving against an ISO/IEC 17025 traceable prover or master meter. Its component uncertainties combine via RSS to prove expanded uncertainty remains safely inside OIML R 117-1 or ISO 17089 limits.

Step 03 · Monitor diagnostics continuously

Detect entrained gas, wax or bypass early

Modern ultrasonic and Coriolis meters emit diagnostic health parameters (speed of sound, drive gain, signal-to-noise ratio, dual-pulse mismatch). Streaming those diagnostics beside volumes reveals fouling, air entrainment or bypass valves before monthly reconciliation closes.

05 · Interfaces, failure modes & honest limits

What connects, what breaks and what remains unknown

5 published interface contracts and 4 failure modes for Metrology, stating degraded fallbacks and where statutory or field duties begin.

Metrology: published interface contracts and degraded modes Illustrative
InterfaceDirectionProtocol / schemaControl gateDegraded / offline mode
Fiscal Flow Computer TapInbound (read-only)Modbus TCP/RTU via optical data diodeZero write registers exposed; cryptographic framing on receiving proxyFlow computer internal non-volatile memory buffers 30 days of batches (illustrative)
Automatic Tank Gauging (ATG)Inbound (read-only)OPC-UA / serial read adapterCross-checks dynamic meter totals against static shore-tank strapping tablesManual witnessed dip readings entered with dual officer signatures
Proving & Calibration PortalInbound (signed cert)OpenAPI 3.1 + ISO/IEC 17025 PDF hashRequires verifier hardware WebAuthn sign-off before updating active K-factorExpired certificate flags all tickets as "proving overdue" automatically
Electricity & Water Smart MetersInbound (read-only)IEC 62056 DLMS/COSEM & ISO 4064 / OIML R 49Authenticated meter push with tamper-event bitmaskStore-and-forward load profile recovered on next poll
Reconciliation Engine StreamOutbound (canonical)Immutable event ledger feedDelivers net standard volume + expanded uncertainty + cert validity flagUnverified tickets route to exceptions rather than auto-invoicing

Illustrative Source: Tie Wang Layer 01 interface control document

Metrology: failure modes, containment and limits Illustrative
Failure modeOperational symptomEngineering containmentHonest limit
Two-phase flow or air entrainmentGas breakout or air slugs inflate turbine or positive-displacement readings and spike Coriolis drive gain.Air eliminators upstream, back-pressure control valves and automated drive-gain alarms flag compromised batches immediately.No software algorithm can accurately measure unconditioned two-phase flow; proper mechanical conditioning is mandatory.
Unlogged K-factor or density overrideA technician edits the flow computer calibration factor locally to bias reported output.Physical metrological wire seals plus continuous mirroring of the flow-computer configuration audit log alert the command desk within minutes.Existing legacy mechanical registers without electronic audit trails require physical seal inspections until upgraded.
Missing flow-proportional sampling (BS&W)Water and sediment content varies across a tanker discharge while grab samples capture only clean mid-flow.Automatic flow-proportional in-line samplers and water-cut analysers tie directly to batch totals under API MPMS Chapter 8.Manual grab sampling remains vulnerable to stratification and operator selection bias.
Bypass manifold diversionProduct routes around the fiscal metering skid through an unmetered maintenance bypass line.Double-block-and-bleed valves with sealed position switches and upstream-to-downstream tank mass balance expose unmeasured drawdowns.A single point meter cannot detect a physical bypass upstream of the skid; system-level mass balance is always required.

Illustrative Source: Tie Wang engineering hazard and failure-mode register

Engineering limits

Metrology cannot manufacture precision beyond the physical condition of the fluid, pipework and calibration chain. If a depot operates unproved mechanical meters with unknown tank strapping tables, Tie Wang reports the real uncertainty band openly or marks the flow as uncalibrated rather than presenting four decimal places of false accuracy.

Custody-transfer standards such as OIML R 117-1, ISO 17089-1, ISO 4064 and IEC 62056 define the engineering target designed against; legal verification and metrological stamping remain the statutory preserve of the national weights and measures authority.

06 · Action by audience

Next steps and connected disciplines

Follow how Metrology inside Field metrology & edge capture connects to adjacent stack layers, illustrative structures and working instruments.

Ministry of energy, petroleum or water

Replace self-declared liftings with OIML-traceable fiscal tickets and transparent uncertainty bounds.

Inspect Oil and gas sector →

Project-finance lender

Avoid buying duplicate hardware skids before live data identify which terminals hold real volumetric variance.

Model phased rollout →

Terminal or utility operator

Connect existing fiscal flow computers safely via simplex data diodes without touching plant control loops.

See OT diode isolation →

National metrology institute

Digitise proving schedules, seal tracking and ISO/IEC 17025 calibration certificates across every site.

See Water utilities →