This calculator helps you estimate the daily evaporation rate for a body of water, considering factors like surface area, temperature, humidity, and wind speed. Evaporation is a crucial process in the water cycle and understanding it is vital for water resource management, agriculture, and climate studies.
function calculateEvaporation() {
var surfaceArea = parseFloat(document.getElementById("surfaceArea").value);
var waterTemperature = parseFloat(document.getElementById("waterTemperature").value);
var airTemperature = parseFloat(document.getElementById("airTemperature").value);
var relativeHumidity = parseFloat(document.getElementById("relativeHumidity").value);
var windSpeed = parseFloat(document.getElementById("windSpeed").value);
var resultDiv = document.getElementById("result");
resultDiv.innerHTML = ""; // Clear previous results
// Input validation
if (isNaN(surfaceArea) || surfaceArea <= 0 ||
isNaN(waterTemperature) ||
isNaN(airTemperature) ||
isNaN(relativeHumidity) || relativeHumidity 100 ||
isNaN(windSpeed) || windSpeed airTemperature) {
evaporationRate_mm_per_day += (waterTemperature – airTemperature) * 0.1; // A very rough adjustment
}
// Ensure the rate is not negative
if (evaporationRate_mm_per_day < 0) {
evaporationRate_mm_per_day = 0;
}
// Convert to mm per day over the entire surface area
var totalEvaporationVolume_liters_per_day = evaporationRate_mm_per_day * surfaceArea * 1000; // mm to meters, then m^3 to liters
resultDiv.innerHTML =
"Estimated Daily Evaporation Rate: " + evaporationRate_mm_per_day.toFixed(2) + " mm/day" +
"Estimated Total Daily Evaporation Volume: " + totalEvaporationVolume_liters_per_day.toFixed(2) + " liters/day";
}
#evaporation-calculator {
font-family: sans-serif;
border: 1px solid #ccc;
padding: 20px;
border-radius: 8px;
max-width: 500px;
margin: 20px auto;
background-color: #f9f9f9;
}
.input-section {
margin-bottom: 15px;
}
.input-section label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.input-section input[type="number"] {
width: calc(100% – 10px);
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
}
button:hover {
background-color: #45a049;
}
.result-section {
margin-top: 20px;
padding: 15px;
border: 1px solid #eee;
border-radius: 4px;
background-color: #fff;
}
.result-section p {
margin: 5px 0;
}