bruntVaisallaOmegaSquared {aiRthermo}R Documentation

Brunt-Vaisalla (angular) frequency (squared)

Description

Brunt-Vaisalla (angular) frequency (aquared, s^{-2}) considering hydrostatic equilibrium. P is used as a vertical level.

Usage

bruntVaisallaOmegaSquared(Ps, Ts, ws, consts = export_constants())

Arguments

Ps

A vector with pressure values (Pa).

Ts

A vector with temperature values (K).

ws

A vector with mixing ratio values (kg/kg).

consts

The constants defined in aiRthermoConstants data are necessary. The constants g and Rd are used.

Details

The angular frequency (squared, s^{-2}) is returned in order to avoid complex numbers.

Value

The Brunt-Vaisalla (angular) frequency (squared) is returned.

Note

For stable atmospheres, should be positive at every level. Ps, Ts and ws are 1D arrays.

See Also

PT2Theta and densityMoistAir are used inside bruntVaisallaOmegaSquared function.

Examples

data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
bruntVaisallaOmegaSquared(dPs,dTs,dws)


[Package aiRthermo version 1.2.1 Index]