parcelState {aiRthermo}R Documentation

State of a parcel

Description

The function calculates the state of a parcel for easier computations.

Usage

parcelState(Press, Temp, w = 0, consts = export_constants())

Arguments

Press

Value of pressure (Pa) of the parcel.

Temp

Value of temperature (K) of the parcel.

w

Value of mixing ratio (kg/kg) of the parcel.

consts

The constants defined in aiRthermoConstants data are necessary.

Value

This function returns a list including the following values:

pressure

Pressure value (Pa).

temperature

Temperature value (K).

mixingratio

Mixing ratio value (kg/kg).

theta

Potential temperature value (K).

virtualTemp

Virtual temperature value (K).

saturationMixingRatio

Saturation mixing ratio value (kg/kg).

See Also

PT2Theta, virtual_temperature and saturation_mixing_ratio

Examples

parcelState(101325,273.15,0.2)

[Package aiRthermo version 1.2.1 Index]