CORRECTION DE DÉBIT SYSTÈMES MEMBRANAIRES
CORRECTION DE DÉBIT SYSTÈMES MEMBRANAIRES
Entrer le débit et la température et cliquer sur « CALCULER » et voir les résultats plus bas
[insert_php]$debit = $_POST[‘debit’];
$temp = $_POST[‘temp’];
//SI T ≤25°C , FORMULE DE TFC: EXP [3020x{1 / 298 – 1 / (273 + T)}]
//SI T >25°C , FORMULE DE TFC: EXP [2640x{1 / 298 – 1 / (273 + T)}]
$fact1 = 273+$temp;
$fact2 = 1/$fact1;
$fact3 = 1/298;
$fact4 = $fact2-$fact3;
$fact5 = 3020*$fact4;
$fact6 = 2640*$fact4;
$fact25m = exp($fact5);
$fact25p = exp($fact6);
$result25m = $debit*$fact25m;
$result25p = $debit*$fact25p;
$fact = 0;
$result = 0;
$text = »T° trop basse »;
if($temp <5){ $result = $text; $fact = $text; } elseif($temp > 5 || $temp < 25){
$result = $result25m;
$fact = $fact25m;
}
else {
$result = $result25p;
$fact = $fact25p;
}