0.2.0
Loading...
Searching...
No Matches
WaterVapor.hpp File Reference

Water vapor calculation. More...

Go to the source code of this file.

Enumerations

enum class  NAV::WaterVaporModel : int {
  None ,
  ISA ,
  GPT2 ,
  GPT3 ,
  COUNT
}
 Available Water vapor Models. More...
 

Functions

double NAV::calcWaterVaporPartialPressure (double temp, double humidity_rel, WaterVaporModel waterVaporModel)
 Calculates the partial pressure of water vapor.
 
bool NAV::ComboWaterVaporModel (const char *label, WaterVaporModel &waterVaporModel)
 Shows a ComboBox to select the water vapor model.
 
const char * NAV::to_string (WaterVaporModel waterVaporModel)
 Converts the enum to a string.
 

Detailed Description

Water vapor calculation.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2023-01-31

Enumeration Type Documentation

◆ WaterVaporModel

enum class NAV::WaterVaporModel : int
strong

Available Water vapor Models.

Enumerator
None 

Water vapor model turned off.

ISA 

ICAO Standard Atmosphere.

GPT2 

GPT2.

GPT3 

GPT3.

COUNT 

Amount of items in the enum.

Function Documentation

◆ calcWaterVaporPartialPressure()

double NAV::calcWaterVaporPartialPressure ( double temp,
double humidity_rel,
WaterVaporModel waterVaporModel )

Calculates the partial pressure of water vapor.

Parameters
[in]tempThe absolute temperature in [K]
[in]humidity_relThe relative humidity
[in]waterVaporModelWater vapor model to use
Returns
The partial pressure [hPa] of water vapor

◆ ComboWaterVaporModel()

bool NAV::ComboWaterVaporModel ( const char * label,
WaterVaporModel & waterVaporModel )

Shows a ComboBox to select the water vapor model.

Parameters
[in]labelLabel to show beside the combo box. This has to be a unique id for ImGui.
[in]waterVaporModelReference to the water vapor model to select

◆ to_string()

const char * NAV::to_string ( WaterVaporModel waterVaporModel)

Converts the enum to a string.

Parameters
[in]waterVaporModelEnum value to convert into text
Returns
String representation of the enum