This Python program calculates a simple wind intensity index based on wind speed at 10 meters height and air temperature.
The user is prompted to enter the wind speed (in meters per second) and the air temperature (in degrees Celsius).
The program then applies a basic formula to estimate the wind’s relative intensity, which can be useful for environmental modeling or safety analysis.
The code is formatted for smooth integration into a webpage using the specified HTML structure.
wind_speed = float(input("Please enter the wind speed at 10 meters (m/s): "))
temperature = float(input("Please enter the air temperature (°C): "))
# Simple wind intensity index: kinetic energy × temperature factor
wind_index = wind_speed ** 2 * (1 + (temperature / 100))
print("The wind intensity index is:", wind_index)
Please enter the wind speed at 10 meters (m/s): 6
Please enter the air temperature (°C): 20
The wind intensity index is: 43.2
Here’s how the program works:
- It uses the input()
function to collect wind speed and temperature from the user
- Wind speed is squared to estimate relative kinetic energy
- Temperature is used as a scaling factor to reflect thermal influence
- The final result is printed using the print()
function