Airflow Calculator
About this app
Calculate airflow based on duct diameter and air velocity easily.
Airflow Calculator Airflow Calculator Air Velocity (m/s): Duct Diameter (m): Calculate Airflow
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Airflow Calculator</title>
<meta name="description" content="Calculate airflow based on duct diameter and air velocity easily.">
<meta name="keywords" content="airflow, calculator, duct diameter, air velocity, HVAC">
<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
$('#calculate-button').on('click', function() {
const velocity = parseFloat($('#velocity').val());
const diameter = parseFloat($('#diameter').val());
if (isNaN(velocity) || isNaN(diameter) || velocity <= 0 || diameter <= 0) {
alert('Please enter valid positive numbers for velocity and diameter.');
return;
}
const area = Math.PI * Math.pow((diameter / 2), 2);
const airflow = area * velocity; // Cubic meters per second
$('#result').html(`Airflow: ${airflow.toFixed(2)} m³/s`);
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #4facfe, #00f2fe);
color: #ffffff;
}
#main-container {
margin-top: 50px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 10px;
padding: 25px;
}
.input-field {
margin-bottom: 15px;
}
#calculate-button {
background-color: #f39c12;
color: #fff;
}
#calculate-button:hover {
background-color: #e67e22;
}
h1 {
text-align: center;
margin-bottom: 20px;
font-size: 2.5rem;
}
#result {
font-size: 1.5rem;
text-align: center;
color: #2ecc71;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Airflow Calculator</h1>
<div class="input-field">
<label for="velocity">Air Velocity (m/s):</label>
<input type="number" id="velocity" class="form-control" placeholder="Enter air velocity" />
</div>
<div class="input-field">
<label for="diameter">Duct Diameter (m):</label>
<input type="number" id="diameter" class="form-control" placeholder="Enter duct diameter" />
</div>
<button id="calculate-button" class="btn btn-primary btn-block">Calculate Airflow</button>
<div id="result" class="mt-3"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!