ISO 3171 Crude Oil Sampling: What Buyers and Engineers Need to Know

Automatic crude oil pipeline sampling installation for ISO 3171 applications

ISO 3171 automatic sampling is fundamentally about obtaining a sample that represents the total petroleum stream as accurately as possible. This practical guide explains the main engineering questions buyers and project teams should evaluate before selecting an automatic crude oil sampling system.

What Is ISO 3171?

ISO 3171 is an international standard for the automatic pipeline sampling of petroleum liquids.

It provides guidance for crude oil and liquid petroleum products transported through pipelines and addresses the specification, testing, operation, maintenance, and monitoring of automatic sampling systems. The standard does not apply to liquefied petroleum gas or liquefied natural gas.

For crude oil custody transfer, terminal operations, pipeline transportation, and tanker unloading applications, the objective is not simply to take a small quantity of liquid from the pipeline.

The objective is to obtain a representative sample that accurately reflects the properties of the total transferred oil stream.

This distinction is critical.

A sample may be collected automatically and still fail to represent the actual pipeline contents if the oil and entrained water are not sufficiently mixed, the sampling probe is incorrectly positioned, or the sampling frequency does not properly follow the transfer conditions.

Why Representative Sampling Matters

Crude oil flowing through a pipeline is not always completely homogeneous.

Water, sediment, and other components may not be distributed uniformly across the pipe cross-section. Flow velocity, viscosity, density, pipeline diameter, and operating conditions can all affect the distribution of the fluid.

For this reason, an automatic sampling system must do more than periodically remove liquid from the pipeline.

It must be designed so that the sample entering the sampling probe is as representative as possible of the total flow.

In the ZHYQ-II automatic crude oil sampling system, the main sampling arrangement can include:

  • A main pipeline mixing system
  • A sampling probe
  • An automatic sampling unit
  • A sample receiver
  • A weighing system
  • Flow detection
  • An optional online water-content transmitter
  • An optional sample mixing and splitting system

The ZHYQ-II-MJ product manual states that the system is designed in reference to ISO 3171, API 8.2, and GB/T 27867 for crude oil custody-transfer sampling applications.

Automatic crude oil sampling system at a petroleum terminal
A representative sampling system must be engineered around the actual pipeline and transfer conditions.

1. Pipeline Mixing Comes Before Sampling

One of the most important considerations in representative crude oil sampling is the condition of the fluid before it reaches the sampling probe.

If water and oil phases are not adequately dispersed, a sample taken from one point in the pipeline may contain more or less water than the true average of the transferred batch.

This is why pipeline mixing is such an important part of automatic sampling-system design.

The ZHYQ-II system can use either:

  • Jet mixing
  • Static mixing

depending on the project requirements.

Its technical documentation specifically refers to meeting the C1/C2 mixing requirements associated with ISO 3171 through engineering calculation.

Jet Mixing

A jet mixing system uses part of the process fluid and returns it into the main pipeline at high velocity upstream of the sampling probe.

The purpose is to provide additional mixing energy and improve the dispersion of different phases across the pipeline cross-section.

In the ZHYQ-II design, the number and diameter of the jet nozzles, nozzle position, pump displacement, and pump head are determined according to the actual operating conditions.

This approach can be especially useful where natural pipeline turbulence is insufficient.

Static Mixing

A static mixer uses fixed internal elements to promote mixing as the fluid passes through the pipeline.

Its use must be evaluated together with pressure-loss and mixing-performance requirements.

For tanker unloading applications with very wide operating flow ranges, ZNYB's ZHYQ-II-XM documentation notes that static mixing may be unsuitable because mixing performance can become insufficient at low flow while pressure loss can increase at high flow.

This illustrates an important point for buyers:

The mixing method should be selected based on the actual project operating range, not simply by equipment preference.

Engineer inspecting a ZNYB pipeline sampling installation
Probe location, insertion position and upstream flow conditions directly affect sample quality.

2. Sampling Probe Design and Installation Matter

Even with adequate pipeline mixing, the sampling probe must be correctly designed and positioned.

The probe is the point where the sample is physically extracted from the flowing stream.

ZNYB offers both:

  • Fixed sampling probes
  • Retractable sampling probes

When a retractable probe is selected, sufficient installation and withdrawal space must be available. The installation position must also meet the applicable pipeline-sampling requirements.

For project engineers, probe selection should therefore consider:

  • Pipeline diameter
  • Installation orientation
  • Available maintenance space
  • Pressure
  • Temperature
  • Process medium
  • Required insertion position
  • Shut-off and isolation arrangement

A sampling probe should not be treated as a simple connection fitting.

Its location and interaction with the upstream flow condition directly affect the quality of the sample.

3. Flow-Proportional Sampling

Another important concept is flow-proportional sampling.

When the oil transfer rate changes significantly during a batch, taking samples at a fixed rate may not provide the same representation as sampling in proportion to the transferred volume.

The ZHYQ-II system documentation states that flow-proportional sample collection can be used so that the sampling rate follows the oil-transfer rate.

For example, when the pipeline flow increases, the sampling system can collect more increments. When flow decreases, the sampling frequency can be reduced accordingly.

This helps the accumulated sample better represent the overall transferred volume.

The separator used in the ZHYQ-II system has an adjustable sub-sample volume from approximately 1.0 ml to 10 ml, with a maximum sampling frequency of up to 30 times per minute according to the product manual.

ZHYQ-II automatic crude oil sampling system
ZHYQ-II can integrate sample collection, monitoring and control in one project-configured system.

4. Sample Collection Does Not End at the Probe

Representative sampling does not stop when the sample leaves the pipeline.

The sample must remain suitable for subsequent laboratory testing.

The ZHYQ-II system uses pressure-resistant portable sample containers designed with:

  • Stainless steel construction
  • Smooth internal surfaces
  • Large quick-opening access
  • Pressure relief
  • Quick-connect fittings
  • Internal jet-homogenizing components

The available container volumes described in the product documentation are 5 L, 10 L, and 20 L, with a rated pressure of 0.3 MPa.

For laboratory preparation, an optional mixing and splitting system can circulate the stored sample before the required laboratory sub-samples are taken.

This is important because a representative sample can lose its value if the stored liquid separates before analysis.

5. What Is the Minimum Flow Rate for an Automatic Crude Oil Sampler?

This is one of the most common questions buyers ask.

There is no single minimum flow value that can be applied to every project.

The minimum acceptable operating condition depends on factors such as:

  • Pipeline diameter
  • Minimum and maximum flow rate
  • Crude oil viscosity
  • Density
  • Water content
  • Flow regime
  • Mixing method
  • Available mixing energy
  • Sampling-probe arrangement

ZNYB's documentation explains that at lower oil-flow conditions, the jet mixing system can provide additional continuous mixing energy, while it can automatically stop when the natural pipeline turbulence becomes sufficient.

Therefore, when evaluating an automatic sampling system, buyers should provide both the minimum and maximum operating flow rates rather than asking only for a generic minimum-flow specification.

Offshore petroleum transfer application
Marine and tanker-unloading applications require evaluation across the complete operating range.

6. Can an ISO 3171-Type Sampling System Be Used for Tanker Unloading?

Yes, automatic sampling can be designed specifically for tanker unloading applications.

ZNYB's ZHYQ-II-XM automatic crude oil sampler is intended for tanker oil-unloading measurement applications and addresses several operating challenges, including:

  • A very wide unloading flow range
  • Large single unloading volumes
  • Marine environmental corrosion
  • Intermittent offshore oil-transfer applications

The product documentation identifies a typical unloading-flow range of approximately 30:1 as one of the conditions considered in this application.

Because tanker-unloading flow can vary substantially during different stages of the unloading process, the mixing system and sampling strategy need to be selected for the full operating envelope.

7. What Explosion-Proof Rating Is Available?

Hazardous-area requirements are another common engineering question.

The ZHYQ-II technical documentation lists an electrical explosion-proof identification of:

Ex d IIB T4

with an electrical protection level of:

IP65

for the referenced configuration.

However, the final hazardous-area requirements should always be confirmed during project design.

Buyers should provide information such as:

  • Hazardous-area classification
  • Required explosion-protection standard
  • Installation location
  • Ambient conditions
  • Local certification requirements

This is especially important for international projects where regional certification requirements may differ.

8. Can the Sampling System Communicate with a DCS?

Yes.

The ZHYQ-II controller is based on a Siemens PLC and can be equipped with a 7-inch explosion-proof color touchscreen.

The documented communication configuration includes:

  • RS485 interface
  • MODBUS RTU protocol

The sampling cabinet can transmit information to a DCS, including:

  • Equipment operating status
  • Fault information
  • Sampling parameter settings
  • Real-time water-content values
  • Real-time sub-sample count
  • Real-time sample weight

The system can also receive process information such as flow rate, temperature, density, and sampling-operation parameters from the DCS.

For new projects, the required communication points should be confirmed during the engineering stage.

9. ISO 3171 and API MPMS Chapter 8.2

ISO 3171 is not the only reference commonly encountered in automatic petroleum sampling projects.

API MPMS Chapter 8.2 is another important industry document related to automatic sampling of petroleum and petroleum products. API currently lists Chapter 8.2 as the standard practice for automatic sampling of petroleum and petroleum products.

In many international projects, buyers may refer to one or both standards in their technical specifications.

For this reason, equipment suppliers should review the exact project specification instead of assuming that every project uses identical acceptance requirements.

ZNYB's current automatic crude oil sampler documentation references both ISO 3171 and API 8.2, together with GB/T 27867.

10. What Information Should Buyers Provide Before Ordering?

Automatic crude oil sampling systems are highly dependent on the actual pipeline and operating conditions.

Before final equipment selection, the engineering team should understand the project parameters.

Typical information includes:

Process Conditions

  • Medium
  • Crude oil type
  • Pipeline size
  • Minimum flow rate
  • Maximum flow rate
  • Operating pressure
  • Design pressure
  • Operating temperature
  • Density
  • Viscosity
  • Expected water content

Sampling Requirements

  • Required sample volume
  • Sampling frequency
  • Batch size
  • Sample container volume
  • Mixing requirements
  • Online water-content measurement requirements

Electrical and Control Requirements

  • Power supply
  • Hazardous-area requirements
  • DCS interface
  • Communication protocol
  • Required signals

Installation Conditions

  • Indoor or outdoor
  • Onshore or offshore
  • Ambient temperature
  • Available installation space
  • Pipeline orientation
  • Maintenance access

The final design should be based on these project conditions rather than selecting an automatic sampler only by model number.

Frequently Asked Questions

Is ISO 3171 only for crude oil?

No. ISO describes the standard as applying to crude oil and liquid petroleum products transported through pipelines. It does not cover LPG or LNG.

Does an automatic sampler always require a mixing system?

Not necessarily in every installation. The required mixing arrangement depends on whether the flow at the sampling location is sufficiently representative across the pipeline cross-section. Where natural mixing is insufficient, additional mixing may be required.

What is the minimum flow rate?

There is no universal minimum value for every system. It depends on pipeline diameter, fluid properties, flow range, and available mixing energy.

Can ZNYB systems be used for tanker unloading?

Yes. The ZHYQ-II-XM is specifically intended for automatic sampling during tanker unloading and can also be applied to intermittent offshore oil-transfer applications.

Does the sampler support DCS communication?

The documented ZHYQ-II controller supports RS485 and MODBUS RTU communication and can exchange operating and process data with a DCS.

What explosion-proof rating is available?

The referenced ZHYQ-II configuration specifies Ex d IIB T4 explosion protection and IP65 electrical protection. Final requirements should be confirmed according to the project location and applicable specification.

Selecting an Automatic Crude Oil Sampling System

ISO 3171 automatic pipeline sampling is fundamentally about obtaining a sample that represents the total petroleum stream as accurately as possible.

For buyers and engineers, the key questions should therefore go beyond:

“What sampler model do I need?”

A better engineering evaluation asks:

  • Is the fluid sufficiently mixed?
  • Where should the sampling probe be installed?
  • What is the full flow-rate range?
  • How will the sub-samples be collected?
  • How will the accumulated sample remain homogeneous?
  • What hazardous-area requirements apply?
  • What information needs to communicate with the DCS?
  • What are the actual pipeline and process conditions?

Answering these questions early helps determine the appropriate automatic sampling-system configuration.

Need Help Evaluating Your Crude Oil Sampling Project?

ZNYB provides automatic crude oil sampling solutions for pipeline custody transfer, terminal operations, tanker unloading, and other petroleum-transfer applications.

For project evaluation, provide your pipeline and operating conditions to our engineering team.

Download the Project & Ordering Data Sheet

Contact ZNYB for Technical Evaluation