trimix: Trimix Gas

View source: R/gas.R

trimixR Documentation

Trimix Gas

Description

Create a Trimix gas.

Usage

 trimix(fO2, fHe, fN2)

Arguments

fO2, fHe, fN2

Fractions (between 0 and 1) of oxygen, helium and nitrogen, respectively, in the trimix gas.

Details

An object of class "gas" represents a breathing gas. Such objects are required for various calculations in the scuba library.

The value returned by trimix represents Trimix (oxygen-nitrogen-helium mixture) with the fractions of oxygen, nitrogen and helium specified by the arguments fO2, fN2, fHe respectively. These fractions should sum to 1.

If only two of the gas fractions are given, the missing fraction will be calculated so that the three values sum to 1.

There are methods for print and summary for objects of class "gas".

Value

An object of class "gas" representing Trimix with the specified composition.

Author(s)

\adrian

.

See Also

nitrox, air

Examples

  # Trimix 18/50
  #            (18% oxygen, 50% helium) 
  trimix(0.18, 0.5)

scuba documentation built on Oct. 18, 2022, 5:06 p.m.