Introduction
Asphaltenes are the heaviest and most polar fraction of crude oil, defined operationally as the fraction soluble in aromatic solvents (toluene) but insoluble in paraffinic solvents (n-heptane or n-pentane). Asphaltene precipitation during production can cause:
- Wellbore plugging - Reduced production rates or complete blockage
- Reservoir damage - Near-wellbore permeability reduction
- Pipeline deposition - Flow restriction and increased pressure drop
- Equipment fouling - Reduced heat transfer and separation efficiency
NeqSim provides multiple approaches to assess asphaltene stability, ranging from simple empirical correlations to rigorous thermodynamic modeling.
Asphaltene Structure and Properties
Molecular Characteristics
| Property | Typical Range | Notes |
|---|---|---|
| Molecular Weight | 500 - 10,000 g/mol | Polydisperse distribution |
| H/C Ratio | 0.9 - 1.2 | Lower than other oil fractions |
| Heteroatom Content | 0.5 - 10 wt% | N, S, O, metals (V, Ni) |
| Aromaticity | 40 - 60% | Polyaromatic core structures |
Colloidal Model
Asphaltenes exist in crude oil as colloidal particles stabilized by resins (maltenes). The Colloidal Instability Index (CII) quantifies this balance:
\[\text{CII} = \frac{\text{Saturates} + \text{Asphaltenes}}{\text{Aromatics} + \text{Resins}}\]Where:
- CII < 0.7: Stable oil (asphaltenes well-dispersed)
- CII 0.7 - 0.9: Metastable (precipitation possible under stress)
- CII > 0.9: Unstable oil (high precipitation risk)
Resin-to-Asphaltene Ratio
Another stability indicator:
\[\text{R/A} = \frac{\text{Resins wt\%}}{\text{Asphaltenes wt\%}}\]- R/A > 3: Generally stable
- R/A 1.5 - 3: Moderate risk
- R/A < 1.5: High precipitation risk
SARA Analysis
SARA fractionation separates crude oil into four pseudo-component groups:
| Fraction | Description | Typical Range |
|---|---|---|
| Saturates | Alkanes and cycloalkanes | 40-80% |
| Aromatics | Mono/poly-aromatic hydrocarbons | 10-35% |
| Resins | Polar, heteroatom-containing | 5-25% |
| Asphaltenes | Heaviest polar fraction | 0-15% |
Using SARA in NeqSim
import neqsim.thermo.characterization.AsphalteneCharacterization;
// Create characterization from SARA analysis
AsphalteneCharacterization sara = new AsphalteneCharacterization(
0.45, // Saturates weight fraction
0.30, // Aromatics weight fraction
0.20, // Resins weight fraction
0.05 // Asphaltenes weight fraction
);
// Get stability indicators
double cii = sara.getColloidalInstabilityIndex();
double ra = sara.getResinToAsphalteneRatio();
String stability = sara.evaluateStability();
System.out.println("CII: " + cii);
System.out.println("R/A Ratio: " + ra);
System.out.println("Stability: " + stability);
Precipitation Triggers
Asphaltene precipitation occurs when the solubility parameter of the oil phase changes sufficiently to destabilize the asphaltene colloids:
Pressure Depletion
As pressure drops below the bubble point:
- Light components evolve into vapor phase
- Remaining liquid becomes denser and more aliphatic
- Asphaltene solubility decreases
- Maximum instability typically occurs near bubble point
Temperature Changes
- Cooling: Can increase or decrease stability (system-dependent)
- Heating: Generally increases asphaltene solubility
Composition Changes
- Gas injection (CO₂, hydrocarbon gas): Reduces solubility
- Blending with light crudes: Dilution destabilizes asphaltenes
- Acid stimulation: pH changes affect polar interactions
Modeling Approaches in NeqSim
1. Empirical Screening (De Boer)
Fast, conservative screening based on field correlations. See De Boer Screening.
Advantages:
- Quick calculation (milliseconds)
- No fluid characterization needed
- Conservative for screening purposes
Limitations:
- No onset pressure prediction
- No compositional effects
- Cannot model remediation strategies
2. Thermodynamic Modeling (CPA EOS)
Rigorous equation of state approach. See CPA Calculations.
Advantages:
- Predicts onset pressure/temperature
- Captures compositional effects
- Can model inhibitor effectiveness
- Uses
PhaseType.ASPHALTENEfor accurate phase identification
Limitations:
- Requires fluid characterization
- More computationally intensive
- Needs tuning to experimental data
PhaseType.ASPHALTENE
NeqSim uses a dedicated PhaseType.ASPHALTENE enum value to distinguish precipitated asphaltenes from other solid phases (wax, hydrate). This enables:
- Accurate phase identification in multi-phase flash calculations
- Correct physical property calculations using asphaltene-specific correlations
- Proper phase ordering (asphaltene as heaviest phase)
- Easy API access via
fluid.hasPhaseType("asphaltene")
import neqsim.thermo.phase.PhaseType;
// Check for asphaltene precipitation
if (fluid.hasPhaseType(PhaseType.ASPHALTENE)) {
PhaseInterface asphaltene = fluid.getPhaseOfType("asphaltene");
// Access asphaltene phase properties
double density = asphaltene.getDensity("kg/m3"); // ~1150 kg/m³
double Cp = asphaltene.getCp("kJ/kgK"); // ~0.9 kJ/kgK
double viscosity = asphaltene.getViscosity("Pa*s"); // ~10,000 Pa·s
double thermalCond = asphaltene.getThermalConductivity("W/mK"); // ~0.20 W/mK
double soundSpeed = asphaltene.getSoundSpeed("m/s"); // ~1745 m/s
}
3. Pedersen Classical Cubic EOS Approach
A simpler approach using classical cubic equations of state (SRK/PR) without association terms, developed by K.S. Pedersen and presented at GOTECH Dubai 2025.
Reference: Pedersen, K.S. (2025). “The Mechanisms Behind Asphaltene Precipitation – Successfully Handled by a Classical Cubic Equation of State.” SPE-224534-MS, GOTECH, Dubai.
Theoretical Background
The key insight from Pedersen’s work is that asphaltene precipitation can be successfully modeled as a liquid-liquid phase split using classical cubic equations of state. The approach treats asphaltene as a heavy pseudo-component characterized using the same correlations as C7+ fractions.
Critical Property Correlations:
\[T_c = a_0 + a_1 \ln(M) + a_2 M + \frac{a_3}{M}\] \[\ln(P_c) = b_0 + b_1 \rho^{0.25} + \frac{b_2}{M} + \frac{b_3}{M^2}\] \[\omega = c_0 + c_1 \ln(M) + c_2 \rho + c_3 M\]Where:
- $M$ = molecular weight (g/mol)
- $\rho$ = density (g/cm³)
- $T_c$ = critical temperature (K)
- $P_c$ = critical pressure (bar)
- $\omega$ = acentric factor
Basic Usage
import neqsim.thermo.characterization.PedersenAsphalteneCharacterization;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
// Create SRK system (classical cubic EOS)
SystemSrkEos fluid = new SystemSrkEos(373.15, 200.0);
fluid.addComponent("methane", 0.40);
fluid.addComponent("n-heptane", 0.45);
fluid.addComponent("nC20", 0.10);
// Create Pedersen asphaltene characterization
PedersenAsphalteneCharacterization asphChar = new PedersenAsphalteneCharacterization();
asphChar.setAsphalteneMW(750.0); // Molecular weight (g/mol)
asphChar.setAsphalteneDensity(1.10); // Density (g/cm³)
asphChar.addAsphalteneToSystem(fluid, 0.05); // Add 0.05 mol
// IMPORTANT: Set mixing rule AFTER adding all components
fluid.setMixingRule("classic");
fluid.init(0);
// Print characterization results
System.out.println(asphChar.toString());
Complete Oil Characterization with TBP Fractions
For realistic oil systems, combine asphaltene characterization with TBP (True Boiling Point) fraction characterization:
import neqsim.thermo.characterization.PedersenAsphalteneCharacterization;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
// Create system and set Pedersen TBP model
SystemInterface oil = new SystemSrkEos(373.15, 200.0);
oil.getCharacterization().setTBPModel("PedersenSRK");
// Add light components (defined compounds)
oil.addComponent("nitrogen", 0.005);
oil.addComponent("CO2", 0.02);
oil.addComponent("methane", 0.35);
oil.addComponent("ethane", 0.08);
oil.addComponent("propane", 0.05);
oil.addComponent("i-butane", 0.01);
oil.addComponent("n-butane", 0.02);
oil.addComponent("i-pentane", 0.015);
oil.addComponent("n-pentane", 0.015);
oil.addComponent("n-hexane", 0.02);
// Add C7+ fractions as TBP pseudo-components
// Parameters: name, moles, MW (kg/mol), density (g/cm³)
oil.addTBPfraction("C7", 0.10, 96.0 / 1000.0, 0.738);
oil.addTBPfraction("C8", 0.08, 107.0 / 1000.0, 0.765);
oil.addTBPfraction("C9", 0.06, 121.0 / 1000.0, 0.781);
oil.addTBPfraction("C10", 0.04, 134.0 / 1000.0, 0.792);
oil.addTBPfraction("C11-C15", 0.06, 180.0 / 1000.0, 0.825);
oil.addTBPfraction("C16-C20", 0.03, 260.0 / 1000.0, 0.865);
oil.addTBPfraction("C21+", 0.02, 450.0 / 1000.0, 0.920);
// Add asphaltene using Pedersen characterization
PedersenAsphalteneCharacterization asphChar = new PedersenAsphalteneCharacterization();
asphChar.setAsphalteneMW(850.0);
asphChar.setAsphalteneDensity(1.12);
asphChar.addAsphalteneToSystem(oil, 0.015);
// Set mixing rule and initialize
oil.setMixingRule("classic");
oil.init(0);
// Perform flash calculation
ThermodynamicOperations ops = new ThermodynamicOperations(oil);
ops.TPflash();
oil.prettyPrint();
Tuning to Experimental Data
The class provides tuning multipliers for fitting to experimental onset pressure data:
// Create characterization
PedersenAsphalteneCharacterization asphChar = new PedersenAsphalteneCharacterization();
asphChar.setAsphalteneMW(750.0);
asphChar.setAsphalteneDensity(1.10);
// Apply tuning multipliers to match experimental onset pressure
asphChar.setTcMultiplier(1.03); // Increase Tc by 3%
asphChar.setPcMultiplier(0.97); // Decrease Pc by 3%
asphChar.setOmegaMultiplier(1.05); // Increase ω by 5%
// Or use convenience method for all at once
asphChar.setTuningParameters(1.03, 0.97, 1.05);
// Characterize and add to system
asphChar.characterize();
asphChar.addAsphalteneToSystem(fluid, 0.05);
// Reset to defaults if needed
asphChar.resetTuningParameters();
Tuning Guidelines:
| Parameter | Effect on Onset Pressure | Typical Range |
|---|---|---|
tcMultiplier |
Higher Tc → lower onset pressure | 0.95 - 1.10 |
pcMultiplier |
Higher Pc → higher onset pressure | 0.85 - 1.15 |
omegaMultiplier |
Higher ω → complex effects | 0.90 - 1.20 |
Distributed Asphaltene Pseudo-Components
For heavy oils, represent asphaltene as multiple pseudo-components with distributed MW:
// Add distributed asphaltene (3 pseudo-components)
asphChar.setAsphalteneMW(1000.0); // Average MW
asphChar.setAsphalteneDensity(1.15);
asphChar.addDistributedAsphaltene(heavyOil, 0.08, 3);
// This creates 3 components: Asphaltene_1_PC, Asphaltene_2_PC, Asphaltene_3_PC
// from a gamma MW distribution (mean = 1000, minimum = 500, shape 2.5) in equal-mole slices
The split conserves both the asphaltene moles and its mean molecular weight (mass). Change the
distribution width with setDistributionShape(alpha) (1 = exponential, larger = narrower);
PedersenAsphalteneCharacterization.gammaSplit(mean, min, alpha, n) returns the slice molecular
weights and mole fractions. Before 2026-11-22 the split used a fixed 0.5x-2x range with exponential
weights, which did not keep the mean molecular weight, and named the components Asph_1_PC…; the
shared asphaltene detection (AsphalteneComponents.isAsphaltene) still recognises the old names.
Tuning multipliers set on the parent characterization are now passed to every slice.
Typical Property Ranges
Based on the Pedersen correlations, asphaltene components show these typical properties:
| Property (density 1.10 g/cm3) | Light Asphaltene (MW=500) | Medium (MW=750) | MW=1000 | Heavy (MW=1500) |
|---|---|---|---|---|
| Tc | 1063 K | 1087 K | 1106 K | 1138 K |
| Pc | 18.1 bar | 16.5 bar | 15.7 bar | 14.9 bar |
| ω | 0.80 | 0.93 | 1.18 | 1.95 |
| Tb | 759 K | 839 K | 897 K | 973 K |
Values from PedersenAsphalteneCharacterization.characterize() (2026-11-22). Three correlation
errors were fixed then: the critical-temperature term $a_0\rho$ had lost its density factor (Tc was
about 90 K too low at 1.10 g/cm3 and did not respond to density), the critical-pressure correlation
(which gives atm) was not converted to bar, and the Edmister acentric factor used the natural instead
of the base-10 logarithm, so above about 900 g/mol omega hit the 2.5 cap. Onsets computed with
Pedersen asphaltene components before that date are not comparable with current results.
Advantages:
- Uses standard cubic EOS (simpler than CPA)
- Consistent with Pedersen C7+ characterization already in NeqSim
- Models precipitation as liquid-liquid split
- Tunable to experimental data
- Suitable for routine engineering calculations
Limitations:
- Does not capture association effects explicitly
- May require different tuning than CPA models
- L-L split detection depends on flash algorithm convergence
4. Flory-Huggins Regular Solution Model
The Flory-Huggins model treats the oil as a solvent and asphaltenes as a dissolved polymer, predicting precipitation from the mismatch in solubility parameters. This is one of the most widely used approaches in the petroleum industry (Hirschberg et al., 1984).
Key equation:
\[\ln(\phi_a) + \left(1 - \frac{V_a}{V_L}\right)(1 - \phi_a) + \chi (1 - \phi_a)^2 = 0\]Where the Flory-Huggins interaction parameter is:
\[\chi = \frac{V_a}{RT}(\delta_a - \delta_L)^2\]Advantages:
- Predicts onset pressure from first principles
- Can be configured from API gravity or SARA fractions
- Produces precipitation curves (wt% vs pressure)
- Moderate computational cost
Limitations:
- Regular solution approximation (no association)
- Default Lian et al. (1994) solubility parameter coefficients fail for live oils — calibrate to a measured onset with
calibrateToOnsetPressure(), or use the heuristic priorcalibrateCorrelation()(see below) - Requires tuning for specific oil types
- Without measured onset data, the result is a screening estimate; the asphaltene solubility parameter is uncertain enough to move the predicted onset by hundreds of bar.
- Regress to measured onset pressures when they exist (see “Calibration to measured onset pressures” below).
Basic Usage
import neqsim.pvtsimulation.flowassurance.FloryHugginsAsphalteneModel;
import neqsim.thermo.system.SystemSrkEos;
// Create a fluid system
SystemSrkEos fluid = new SystemSrkEos(373.15, 350.0);
fluid.addComponent("methane", 0.40);
fluid.addComponent("n-heptane", 0.50);
fluid.addComponent("nC20", 0.10);
fluid.setMixingRule("classic");
// Create FH model
FloryHugginsAsphalteneModel fh =
new FloryHugginsAsphalteneModel(fluid, 373.15);
// Configure from API gravity (sets MW, solubility parameter, density, molar volume)
fh.configureFromAPIGravity(30.0);
// No onset data: stability-margin heuristic (screening only)
fh.calibrateCorrelation(373.15);
// With a measured onset: fit delta_a so precipitation starts exactly there
// fh.calibrateToOnsetPressure(373.15, 280.0);
// Upper onset pressure in a requested window
double onsetP = fh.calculateOnsetPressure(373.15, 500.0, 50.0);
// Lower onset pressure, where the asphaltene redissolves below the bubble point (NaN if none)
double lowerOnsetP = fh.calculateLowerOnsetPressure(373.15, 500.0, 1.0);
The onset is the pressure where the precipitated amount exceeds the onset detection threshold,
0.1 wt% by default (setOnsetDetectionThreshold). If the oil is already unstable at the start
pressure, the start pressure is returned.
API Gravity Configuration
The configureFromAPIGravity() method uses continuous correlations to set
asphaltene MW, solubility parameter, and molar volume:
| API Gravity | Asphaltene MW (g/mol) | Solubility Parameter (MPa$^{0.5}$) |
|---|---|---|
| 20 (heavy) | ~2000 | ~20.2 |
| 30 (medium) | ~1000 | ~20.8 |
| 35 (light) | ~750 | ~21.1 |
| 40 (light) | ~550 | ~21.4 |
SARA Configuration
// Refine FH model with SARA data (after API configuration)
fh.configureFromSARA(0.45, 0.30, 0.15, 0.10);
// R/A ratio > 1.5 indicates good peptization
// Very high saturate fraction (>75% of sat+aro) worsens solvency
Solving the solubility limit
The model compares the asphaltene in the oil with its solubility limit against a pure asphaltene phase, the non-trivial root of
\[\ln\phi + (1 - r)(1 - \phi) + \chi (1 - \phi)^2 = 0, \qquad r = V_a/V_L\]calculateMaxDissolvedFraction solves it in $u = \ln\phi$ with a bracketed search and excludes the
trivial root $\phi = 1$; when no other root exists the asphaltene is fully miscible and 1 is
returned. Before 2026-11-22 a Newton iteration started at $\phi = 0.01$ was used. For typical live
oils ($\chi \approx 7$, $r \approx 7$, where no non-trivial root exists) it stopped at
$\phi \approx 10^{-19}$ with a residual of about -45 and reported nearly all asphaltene as
precipitated, so onsets from earlier versions are not reliable. The onset is now the highest pressure
where any asphaltene exceeds its limit (earlier: more than 0.1 wt %).
Calibration
To a measured onset (calibrateToOnsetPressure). Finds the asphaltene solubility parameter
$\delta_A$ for which precipitation starts exactly at the measured pressure (bisection on
$[\delta_L, \delta_L + 15]$ MPa$^{0.5}$). Use this whenever an onset measurement exists.
The density-correlation defaults for $\delta_L = A\rho + B$ follow Wang and Buckley (2001) with
the one-third rule. configureFromSARA(...) applies its correction idempotently; repeated calls
replace rather than compound the correction.
This is an assumption about the stability margin, not a fit to data: the 0.35 MPa$^{0.5}$ buffer fixes how far below reservoir pressure the onset falls. Use it for screening only, and do not combine it with the data calibration below (the data calibration should use the default $A$ and $B$).
Calibration to measured onset pressures
When asphaltene onset pressures (AOP) have been measured, regress the asphaltene solubility parameter instead of guessing it. For each measurement the fluid is flashed at the measured $(T, P_{onset})$, which gives $\delta_L$ and $V_L$; a bracketed solve finds the $\delta_a$ that places the precipitated fraction at the configured onset-detection threshold. A pressure scan is not needed for one-point calibration.
FloryHugginsAsphalteneModel fh = new FloryHugginsAsphalteneModel(fluid, 373.15);
fh.setAsphalteneWeightFraction(0.03); // n-C7 asphaltene content of the oil
fh.setAsphalteneMW(750.0);
fh.setAsphalteneDensity(1100.0);
// One measured onset: reproduced exactly
double deltaA = fh.calibrateToOnsetPressure(373.15, 300.0);
double onset = fh.calculateOnsetPressure(373.15, 500.0, 1.0); // 300 bara
double lowerOnset = fh.calculateLowerOnsetPressure(373.15, 500.0, 1.0);
// Onsets at several temperatures: fits delta_a(T) = delta_a(Tref) + c (T - Tref)
double[] temperatures = {333.15, 353.15, 373.15};
double[] measuredOnsets = {340.0, 318.0, 300.0};
FloryHugginsAsphalteneModel.OnsetFitResult fit = fh.fitToOnsetData(temperatures, measuredOnsets);
double deltaRef = fit.getSolubilityParameter(); // MPa^0.5 at fit.getReferenceTemperature()
double slope = fit.getTemperatureCoefficient(); // MPa^0.5/K
double aad = fit.getAverageAbsoluteDeviation(); // bar, predicted vs measured onset
| Data available | Call | Fitted |
|---|---|---|
| None | configureFromAPIGravity, configureFromSARA, calibrateCorrelation |
Nothing (screening) |
| One AOP | calibrateToOnsetPressure(T, P) |
$\delta_a$ at $T$ |
| AOP at one temperature, several samples | fitToOnsetData |
$\delta_a$ (mean) |
| AOP at two or more temperatures | fitToOnsetData |
$\delta_a(T_{ref})$ and $d\delta_a/dT$ |
The calibrated model is then used predictively at other pressures and temperatures, and for
changed compositions (gas injection, commingling) by constructing the model on the new fluid and
copying $\delta_a$ and its temperature coefficient with setAsphalteneSolubilityParameter and
setSolubilityParameterTemperatureDependence. Without multi-temperature data the coefficient is
zero by default; Hirschberg et al. (1984) used a relative decrease of $1.07\times10^{-3}$ per kelvin
(about $-0.021$ MPa$^{0.5}$/K).
The fitted $\delta_a$ absorbs errors in the asphaltene molar volume, the asphaltene content and the
oil density from the equation of state, so it is specific to that fluid model: recalibrate after
retuning the EOS. The calibration and regression are covered by
FloryHugginsAsphalteneCalibrationTest, which recovers known parameters from synthetic onsets; no
comparison against measured multi-temperature AOP data has been made with this method yet.
Heuristic prior (calibrateCorrelation). Uses no measured data. It flashes the fluid at its own
pressure, finds the solubility-parameter gap at which the configured asphaltene content just reaches
its limit in that oil, and sets the density-correlation coefficient $A$ so the actual gap is
0.35 MPa$^{0.5}$ smaller. The predicted onset is where depressurisation lowers $\delta_L$ by
0.35 MPa$^{0.5}$; the margin, not the physics, sets the result. The heuristic is intended for
screening and has no effect with the EOS solubility-parameter method.
Options
| Option | Method | Default | Effect |
|---|---|---|---|
| Liquid solubility parameter | setSolubilityParameterMethod(...) |
DENSITY_CORRELATION |
EOS uses $\delta_L = \sqrt{-U^{res}/V}$ from the equation of state (cohesive energy density), which responds to composition and temperature, not only density. n-heptane at 25 C gives about 15 MPa$^{0.5}$ with SRK (literature 15.3). |
| Live-oil basis | setLiveOilBasis(boolean) |
true |
The asphaltene weight fraction is of the whole fluid; below the bubble point it is scaled by total mass / oil mass, so the remaining oil is more concentrated. false keeps the fraction constant, as before 2026-11-22. |
| Polydisperse asphaltene | setNumberOfAsphalteneFractions(n), setDistributionShape(alpha) |
1, 2.5 | Gamma molecular-weight split (mean = asphaltene MW, minimum half of it); each fraction is compared with its own solubility limit (fractions do not interact, a simplification). |
configureFromSARA(...) now scales the solubility parameter that was in place before the first SARA
call, so repeated calls give the same value (earlier each call multiplied again).
Precipitation Curves
// Generate precipitation curve (wt% precipitated vs pressure)
double[][] curve = fh.generatePrecipitationCurve(373.15, 500.0, 50.0, 50);
// curve[0] = pressures (bar), curve[1] = precipitated fraction
5. Refractive Index Screening
The refractive index (RI) method assesses asphaltene stability based on the difference between the crude oil RI and RI at the flocculation onset (Buckley et al., 1998).
import neqsim.pvtsimulation.flowassurance.RefractiveIndexAsphalteneScreening;
// From measured RI values
RefractiveIndexAsphalteneScreening riScreen =
new RefractiveIndexAsphalteneScreening(1.505, 1.490);
RefractiveIndexAsphalteneScreening.RIStability stability =
riScreen.evaluateStability();
double margin = riScreen.getRIStabilityMargin();
// Or estimate RI from density
riScreen.estimateRIFromDensity(750.0); // kg/m3
Stability classification:
| RI Margin (RI_oil - RI_onset) | Stability |
|---|---|
| > 0.03 | Very Stable |
| 0.02 - 0.03 | Stable |
| 0.01 - 0.02 | Marginal |
| 0 - 0.01 | Unstable |
| < 0 | Highly Unstable |
6. Multi-Method Benchmark Framework
The AsphalteneMultiMethodBenchmark class provides a unified framework for
comparing all five prediction methods side-by-side:
import neqsim.pvtsimulation.flowassurance.AsphalteneMultiMethodBenchmark;
import neqsim.thermo.system.SystemSrkCPAstatoil;
import neqsim.thermo.system.SystemSrkEos;
// Create systems
SystemSrkCPAstatoil cpaFluid = new SystemSrkCPAstatoil(373.15, 350.0);
cpaFluid.addComponent("methane", 0.40);
cpaFluid.addComponent("n-heptane", 0.50);
cpaFluid.addComponent("asphaltene", 0.10);
cpaFluid.setMixingRule("classic");
SystemSrkEos cubicFluid = new SystemSrkEos(373.15, 350.0);
cubicFluid.addComponent("methane", 0.40);
cubicFluid.addComponent("n-heptane", 0.50);
cubicFluid.addComponent("nC20", 0.10);
cubicFluid.setMixingRule("classic");
// Create benchmark
AsphalteneMultiMethodBenchmark benchmark =
new AsphalteneMultiMethodBenchmark(cpaFluid, cubicFluid, 350.0, 373.15);
benchmark.setSARAFractions(0.45, 0.30, 0.15, 0.10);
benchmark.setAPIGravity(30.0);
benchmark.setInSituDensity(750.0);
// Run all methods
benchmark.runAllMethods();
// Access individual results
AsphalteneMultiMethodBenchmark.MethodResult fhResult =
benchmark.getMethodResult("FloryHuggins");
double fhOnset = fhResult.onsetPressure;
String fhRisk = fhResult.riskLevel;
// Get complete JSON report
String json = benchmark.toJSON();
Built-in Literature Cases
The benchmark includes 7 literature validation cases:
List<AsphalteneMultiMethodBenchmark.LiteratureCase> cases =
benchmark.getLiteratureCases();
for (AsphalteneMultiMethodBenchmark.LiteratureCase lc : cases) {
System.out.println(lc.label + ": P_onset=" + lc.measuredOnsetPressure + " bar");
}
Error Statistics
// Get error statistics for a method across all literature cases
Map<String, Double> stats = benchmark.getErrorStatistics();
// Returns: AAD, AARD_pct, RMSD, maxError, bias
7. Improved Pedersen Method (kij Tuning)
The Pedersen cubic EOS approach has been improved with:
- Kesler-Lee/Edmister acentric factor correlation (replacing the original linear)
- MW-scaled binary interaction parameters (kij) between asphaltene and oil components
- Proper component addition via
addAsphalteneToSystem()
import neqsim.thermo.characterization.PedersenAsphalteneCharacterization;
PedersenAsphalteneCharacterization pedersen =
new PedersenAsphalteneCharacterization();
pedersen.setAsphalteneMW(1200.0);
pedersen.setAsphalteneDensity(1.15);
// Add asphaltene to system
pedersen.addAsphalteneToSystem(cubicFluid, 0.01);
cubicFluid.setMixingRule("classic");
cubicFluid.init(0);
// Apply MW-scaled kij: base * (0.5 + exp(-(M - 16)/165)), i.e. 1.5x for methane,
// about 1.2x for C3, about 1.0x around C10, towards 0.5x for heavy components (smooth, no steps)
pedersen.applyAsphalteneKij(cubicFluid, 0.08);
// Find onset pressure via pressure sweep
double onset = pedersen.calculateOnsetPressure(cubicFluid, 500.0, 50.0);
calculateOnsetPressure reports an onset only when an asphaltene-rich liquid (more than 50 wt %
asphaltene; it was 50 mol % before 2026-11-22, which missed most asphaltene-rich liquids because
asphaltene molecules are 5-20 times heavier than the oil average) appears, with the multiphase check enabled during the search. If the fluid is already split at
the start pressure it raises IllegalStateException; a failed flash also raises. Before 2026-11-22 it
counted any second liquid (including water) and returned the start pressure for an already-split fluid.
The liquid-liquid route is very sensitive: in a test oil (MW 1200, density 1.15) the asphaltene was either
split at every pressure or never split as kijAdjustment and omegaMultiplier were varied. For a
calibrated onset envelope, use the solid model in section 9.
8. Combined Approach
Use De Boer for initial screening, then CPA, Flory-Huggins, or Pedersen for
detailed analysis of flagged cases. The AsphalteneMultiMethodBenchmark provides
all methods in a single API. See Method Comparison.
9. Calibrated Solid Model (AsphalteneSolidModel)
AsphalteneSolidModel (package neqsim.pvtsimulation.flowassurance) is the Nghiem and Coombe (1997)
solid model on a cubic equation of state. Precipitated asphaltene is a pure solid whose fugacity depends
only on temperature and pressure. It is anchored at a measured onset of the reference oil:
$f_L$ is the asphaltene fugacity in the equilibrated fluid (gas and liquid, no solid). Asphaltene precipitates where $f_L > f_s$. Because $f_s$ does not depend on the fluid, one calibration on the host oil predicts:
- the onset of the same oil at other pressures (upper onset and, below the bubble point, lower onset);
- the onset of the same asphaltene in blends (condensate commingling, gas injection, lift gas);
- the fraction of the asphaltene that precipitates.
The interaction parameters between the asphaltene and the other components follow a size-asymmetry correlation of Chueh-Prausnitz form on the co-volume ($b \propto T_c/P_c$):
\[k_{ij} = 1 - \left[\frac{2 (b_i b_j)^{1/6}}{b_i^{1/3} + b_j^{1/3}}\right]^e\]For an asphaltene with $T_c$ = 1015 K and $P_c$ = 15.7 bar and $e$ = 1 this gives 0.096 for methane, 0.025 for n-hexane and about 0 for a C40 fraction.
import neqsim.pvtsimulation.flowassurance.AsphalteneSolidModel;
// Host oil with an asphaltene pseudo-component (any component whose name contains "asphalten")
SystemInterface host = new SystemSrkEos(363.15, 300.0);
host.addComponent("methane", 30.0);
host.addComponent("ethane", 7.0);
host.addComponent("propane", 5.0);
host.addComponent("n-butane", 3.0);
host.addComponent("n-hexane", 3.0);
host.addTBPfraction("C10", 15.0, 0.14, 0.79);
host.addTBPfraction("C20", 15.0, 0.28, 0.86);
host.addTBPfraction("C40", 12.0, 0.56, 0.93);
host.addTBPfraction("Asphaltene", 0.3, 1.0, 1.15, 1015.0, 15.7, 1.5); // M kg/mol, g/cm3, Tc K, Pc bar, omega
host.setMixingRule("classic");
AsphalteneSolidModel model = new AsphalteneSolidModel(host);
model.calibrate(363.15, 250.0); // measured onset: 250 bara at 90 C
model.calibrateLowerOnset(80.0); // optional: measured lower onset, fits the solid volume
AsphalteneSolidModel.OnsetResult envelope = model.onsetPressures(363.15, 500.0, 20.0, 5.0);
double upper = envelope.getUpperOnsetPressure(); // 250 bara
double lower = envelope.getLowerOnsetPressure(); // 80 bara
// Same asphaltene in a blend: build the blend fluid with the same asphaltene component name
double blendOnset = model.onsetPressures(blend, 363.15, 600.0, 20.0, 5.0).getUpperOnsetPressure();
double precipitated = model.precipitatedFraction(host, 363.15, 200.0); // fraction of the asphaltene
Further calibration:
| Data | Method | Fits |
|---|---|---|
| One onset (T, P) | calibrate(T, P) |
solid reference fugacity; $v_s$ = M / density |
| Lower onset at T* | calibrateLowerOnset(P) |
solid molar volume $v_s$ |
| Onset at a second temperature | calibrateTemperature(T, P) |
effective solid enthalpy $h_s$ |
| Onset of a blend or gas-injected oil | fitKijExponent(fluid, T, P, Pmax, Pmin) |
exponent $e$ |
fitKijExponent rejects the calibration fluid itself at the calibration temperature
(IllegalArgumentException): there the model is re-anchored to the calibration onset for every
exponent, so the objective carries no information.
Measurement behind the recommendation (2026-11-22, NeqSim 3.29.0 classes with this change, synthetic
live oil above, 90 C, host onset calibrated to 250 bara, condensate of 72 % methane): the calibrated model
gives 258 and 282 bara for 10 and 30 mol % condensate with $e$ = 1 (253 and 262 bara with all
asphaltene interaction parameters zero). Light diluents raise the onset, as titration and field data show.
Matching the same onset by fitting the interaction parameters against the database solid reference instead
needs negative asphaltene-methane values (about -0.05 to -0.08), and in the 3.29.0 commingling tests of the
community skill neqsim-fluid-commingling-compatibility that route predicted that condensate lowers the
onset. Use the calibrated solid model for blends, gas injection and envelopes.
Requirements and checks:
- One asphaltene component, cubic equation of state with the classic mixing rule set, water-free fluid.
isAsphalteneLiquidSplitDetected()returns true if the equation of state splits the asphaltene into its own liquid. The characterization is then too immiscible for the solid model: lower the asphaltene acentric factor (1.2-1.5 works for M = 1000 g/mol) or the exponent. Before 2026-11-22 the Pedersen correlation gave $\omega$ = 2.5 at 1000 g/mol (a natural-log error in the Edmister branch), which split; it now gives 1.18 at 1.10 g/cm3. Check the flag for every characterization.OnsetResult.isUnstableAtMaximumPressure()is true when the fluid already precipitates at the top of the range.
Reference: Nghiem, L.X., Coombe, D.A. (1997). Modeling asphaltene precipitation during primary depletion. SPE Journal 2(2), 170-176.
Best Practices
For Field Development
- Early Screening: Use De Boer on all fluids
- Focused Analysis: Apply CPA to flagged samples
- Lab Validation: Confirm predictions with HPM/AOP tests
- Parameter Tuning: Calibrate
AsphalteneSolidModelto measured onset data (section 9); it then predicts blends and gas injection.AsphalteneOnsetFittingfits CPA association parameters. - Monitoring Strategy: Plan for real-time detection
For Process Design
- Operating Envelope: Generate precipitation PT curves
- Injection Studies: Model CO₂/gas injection effects with a calibrated
AsphalteneSolidModel - Blending Optimization: Predict compatibility issues (onset of each blend with the host calibration)
- Inhibitor Screening: Evaluate chemical effectiveness
Recommended Workflow
┌─────────────────────────────────────────────────────────────────┐
│ ASPHALTENE ANALYSIS WORKFLOW │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Step 1: DE BOER SCREENING │
│ • Fast empirical screening │
│ • Input: P_res, P_bub, density │
│ • Output: Risk category (NO/SLIGHT/MODERATE/SEVERE) │
└─────────────────────────────────────────────────────────────────┘
│
┌───────────────┴───────────────┐
│ │
▼ ▼
┌──────────────┐ ┌──────────────────────┐
│ LOW RISK │ │ ELEVATED RISK │
│ • Monitor │ │ • Proceed to CPA │
│ • Document │ │ analysis │
└──────────────┘ └──────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Step 2: CPA THERMODYNAMIC ANALYSIS │
│ • Create fluid with asphaltene component │
│ • Calculate onset pressure/temperature │
│ • Generate precipitation envelope │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Step 3: LABORATORY VALIDATION │
│ • Measure AOP at multiple temperatures │
│ • SARA analysis for composition │
│ • HPM microscopy for onset detection │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Step 4: PARAMETER TUNING (AsphalteneOnsetFitting) │
│ • Fit CPA parameters to lab data │
│ • Validate predictions at other conditions │
│ • Document fitted parameters for field use │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Step 5: FIELD APPLICATION │
│ • Predict onset during depletion/injection │
│ • Design mitigation strategies │
│ • Establish monitoring program │
└─────────────────────────────────────────────────────────────────┘
References
-
De Boer, R.B., et al. (1995). “Screening of Crude Oils for Asphalt Precipitation: Theory, Practice, and the Selection of Inhibitors.” SPE Production & Facilities. SPE-24987-PA
-
Mullins, O.C. (2010). “The Modified Yen Model.” Energy & Fuels, 24(4), 2179-2207.
-
Leontaritis, K.J., and Mansoori, G.A. (1988). “Asphaltene Deposition: A Survey of Field Experiences and Research Approaches.” Journal of Petroleum Science and Engineering.
-
Victorov, A.I., and Firoozabadi, A. (1996). “Thermodynamic Micellization Model of Asphaltene Precipitation from Petroleum Fluids.” AIChE Journal.
-
Kontogeorgis, G.M., and Folas, G.K. (2010). “Thermodynamic Models for Industrial Applications.” Wiley.
-
Li, Z., and Firoozabadi, A. (2010). “Modeling Asphaltene Precipitation by n-Alkanes from Heavy Oils and Bitumens Using Cubic-Plus-Association Equation of State.” Energy & Fuels, 24, 1106-1113.
-
Vargas, F.M., et al. (2009). “Development of a General Method for Modeling Asphaltene Stability.” Energy & Fuels, 23, 1140-1146.
-
Pedersen, K.S. (2025). “The Mechanisms Behind Asphaltene Precipitation – Successfully Handled by a Classical Cubic Equation of State.” SPE-224534-MS, GOTECH, Dubai.
-
Pedersen, K.S., Christensen, P.L. (2007). “Phase Behavior of Petroleum Reservoir Fluids.” CRC Press.
-
Pedersen, K.S., Fredenslund, A., Thomassen, P. (1989). “Properties of Oils and Natural Gases.” Gulf Publishing.
-
Hirschberg, A., de Jong, L.N.J., Schipper, B.A., Meijer, J.G. (1984). “Influence of Temperature and Pressure on Asphaltene Flocculation.” SPE Journal, 24(3), 283-293.
-
Buckley, J.S., Hirasaki, G.J., Liu, Y., Von Drasek, S., Wang, J.X., Gill, B.S. (1998). “Asphaltene Precipitation and Solvent Properties of Crude Oils.” Petroleum Science and Technology, 16(3-4), 251-285.
-
Akbarzadeh, K., Alboudwarej, H., Svrcek, W.Y., Yarranton, H.W. (2005). “A generalized regular solution model for asphaltene precipitation from n-alkane diluted heavy oils and bitumens.” Fluid Phase Equilibria, 232, 159-170.
-
Kesler, M.G., Lee, B.I. (1976). “Improve Prediction of Enthalpy of Fractions.” Hydrocarbon Processing, 55(3), 153-158.