@@ -59,53 +59,6 @@ def temperature_gradient(temp_air, temp_height, hub_height):
5959 return temp_air - 0.0065 * (hub_height - temp_height )
6060
6161
62- def temperature_interpol (temp_air_1 , temp_air_2 ,
63- temp_air_height_1 , temp_air_height_2 , hub_height ):
64- r"""
65- Calculates the temperature at hub height by inter- or extrapolation.
66-
67- This function is carried out when the parameter `temperature_model` of an
68- instance of the :class:`~.modelchain.ModelChain` class
69- is 'interpolation'.
70-
71- Parameters
72- ----------
73- temp_air_1 : pandas.Series or array-like
74- Air temperature.
75- temp_air_2 : pandas.Series or array-like
76- Second air temperature for interpolation.
77- temp_air_height_1 : float
78- Height for which the parameter `temp_air_1` applies.
79- temp_air_height_2 : float
80- Height for which the parameter `temp_air_2` applies.
81- hub_height : float
82- Hub height of wind turbine in m.
83-
84- Returns
85- -------
86- pandas.Series or array
87- Temperature at hub height.
88-
89- Notes
90- -----
91-
92- The following equation is used:
93-
94- .. math:: T_{hub} = (T_2 - T_1) / (h_2 - h_1) * (h_{hub} - h_1) + T_1
95-
96- with:
97- T: temperature, h: height
98-
99- Assumptions:
100-
101- * linear temperature gradient
102-
103- """
104- return ((temp_air_2 - temp_air_1 ) /
105- (temp_air_height_2 - temp_air_height_1 ) *
106- (hub_height - temp_air_height_1 ) + temp_air_1 )
107-
108-
10962def rho_barometric (pressure , pressure_height , hub_height , temp_hub ):
11063 r"""
11164 Calculates the density of air at hub height using the barometric height
0 commit comments