Skip to content

dive-math / blending / topUp

Function: topUp() ​

topUp(input): TopUpResult

Defined in: blending/top-up.ts:32

Resulting mix after topping up. Mole-weighted blend of start and top-up gas using absolute pressures; real gas solves by fixed-point iteration.

Parameters ​

input ​

TopUpInput

Returns ​

TopUpResult

Example ​

ts
topUp({ startBar: 100, startGas: gas(0.32), topGas: AIR, finalBar: 200 }).gas.fo2 // 0.2648

Reference only — verify every fill and dive plan independently.