Skip to contents

Compute the molar volume of an ideal gas from temåerature and pressure.

Usage

molar_vol(temperature = 20, pressure = 101300)

Arguments

temperature

numeric Temperature of the gas [\(^{\circ}C\)].

pressure

numeric Pressure of the gas, e.g., atmospheric pressure [Pa].

Value

A numeric vector with the molar volume of a gas expressed in \(m^3\) per mole.

Details

The ideal gas equation, \(V = R * T / P\), is used to compute the returned value. In the equation \(R\) is the gas constant (\(8.314\,m^3\,Pa\,mol^{-1}\,K^{-1}\)), \(T\) temperature expressed in degrees kelvin and \(P\) the pressure expressed in pascals. The argument passed to temperature, expressed in \(^{\circ}C\), is re-expressed in \(K\) for the computation.

Examples

molar_vol()
#> [1] 0.02405971
molar_vol(0)
#> [1] 0.02241825
molar_vol(0, 90e3)
#> [1] 0.02523299