darsia.PressureTemperatureProtocol#
- class PressureTemperatureProtocol(path)[source]#
Bases:
objectPressure/temperature protocol, queried for a
ThermodynamicState.Methods
get_gradient(date)Get the pressure and temperature gradient (upwards) at the given date.
get_state(date)Get the pressure and temperature at the given date.
Attributes
DataFrame containing the protocol.
- get_gradient(date)[source]#
Get the pressure and temperature gradient (upwards) at the given date.
- Parameters:
- date
datetime Date to get the pressure and temperature gradient for.
- date
- Returns:
ThermodynamicStatePressure [bar] and temperature [Celsius] gradient at the given date.
- get_state(date)[source]#
Get the pressure and temperature at the given date.
- Parameters:
- date
datetime Date to get the pressure and temperature for.
- date
- Returns:
ThermodynamicStatePressure [bar] and temperature [Celsius] at the given date.
- df#
DataFrame containing the protocol.