0)
{
if ($testIDArray[0]['TST_ID']>0)
{
$wynik = mysql_query("select TSD_VAL_04/60 TSD_VAL_04,TSD_VAL_08,TSD_VAL_14,TSD_VAL_18 from tst_tests left join tst_test_details on TSD_TST_ID=TST_ID where TST_ID=".$testIDArray[0]['TST_ID']." order by TSD_MSR_STEP");
if($wynik)while ($r = mysql_fetch_array($wynik))
{
$testArray[] = array(
'q' => (float) $r["TSD_VAL_04"],
'h' => (float) $r["TSD_VAL_08"],
'p' => (float) $r["TSD_VAL_14"],
'n' => (float) $r["TSD_VAL_18"]
);
}
$HPSparam = (float) getPolynomialHp_second($testArray,($_SESSION['site401mhis_working_params'][$rowCount]['Q'])/60);
}
// =============================================================== //
$Evaluation4_q = wellEvaluation4_q($_SESSION['well_details']['QnVal'], $_SESSION['site401mhis_working_params'][$rowCount]['Q']);
// =============================================================== //
//$resHP = (setPumpHparameterForQ($_SESSION['well_details']['pumpID'],$_SESSION['site401mhis_working_params'][$rowCount]['Q'])-($_SESSION['site401mhis_working_params'][$rowCount]['pp']-$_SESSION['site401mhis_working_params'][$rowCount]['hh']))/($_SESSION['site401mhis_working_params'][$rowCount]['pp']-$_SESSION['site401mhis_working_params'][$rowCount]['hh']);
//$Evaluation4_HfQ = wellEvaluation4_HfQ($resHP,$_SESSION['site401mhis_working_params'][$rowCount]['pp']);
$Evaluation4_HfQ = wellEvaluation4_HfQ_new($HPSparam,$_SESSION['site401mhis_working_params'][$rowCount]['pp'],$_SESSION['site401mhis_working_params'][$rowCount]['hh']);
// =============================================================== //
$Evaluation4_Throt = wellEvaluation4_Throt($_SESSION['site401mhis_working_params'][$rowCount]['hd'],$_SESSION['site401mhis_working_params'][$rowCount]['p1'],$_SESSION['site401mhis_working_params'][$rowCount]['p2']);
// =============================================================== //
$Evaluation4_LineLoss = wellEvaluation4_LineLoss($_SESSION['site401mhis_working_params'][$rowCount]['p1'],$_SESSION['site401mhis_working_params'][$rowCount]['pp'],$_SESSION['well_details']['LpVal'],$_SESSION['well_details']['DrVal']);
// =============================================================== //
// =============================================================== //
if (empty($_SESSION['site401mhis_working_params'][$rowCount]['Pe'])) $_SESSION['site401mhis_working_params'][$rowCount]['Pe']=1;
$resETA = ($_SESSION['site401mhis_working_params'][$rowCount]['Q']*($_SESSION['site401mhis_working_params'][$rowCount]['hd']+$_SESSION['site401mhis_working_params'][$rowCount]['p2']))/(367*$_SESSION['site401mhis_working_params'][$rowCount]['Pe']);
$RedYellowParam = setRedYellowLimes($_SESSION['well_details']['QnVal']);
$YellowGreenParam = setYellowGreenLimes($_SESSION['well_details']['QnVal']);
// =============================================================== //
$fileName="./charts/".$_SESSION['user']."_".date("Ymd")."_".date("His")."_chart_site401mhis_01.png";
if (file_exists( $fileName0)) unlink($fileName0);
include("./pChart/pData.class.php");
include("./pChart/pDraw.class.php");
include("./pChart/pImage.class.php");
include("./pChart/pScatter.class.php");
//pumpImageStatus($fileName, $RedYellowParam, $YellowGreenParam, $resETA);
pumpImageEnergy($fileName, $RedYellowParam, $YellowGreenParam, $resETA);
if ($_SESSION['site401mhis_working_params'][$rowCount]['dia']==1)
{
$ramka = 'yellow_value';
$opis = 'Ostrzeżenie';
}
elseif ($_SESSION['site401mhis_working_params'][$rowCount]['dia']==2)
{
$ramka = 'orange_value';
$opis = 'Działanie niepoprawne';
}
else
{
$ramka = 'green_value';
$opis = 'Działanie poprawne';
}
}
?>
Oceny pracy układu pompowego
Ocena energochłonności