106 lines
2.8 KiB
PHP
106 lines
2.8 KiB
PHP
<?php
|
|
if (!empty($_SESSION['site406']))
|
|
{
|
|
?>
|
|
|
|
<?php
|
|
if(!empty($_POST['subStep4']))
|
|
{
|
|
$_SESSION['inNewQ'] = $_POST['inNewQ'];
|
|
|
|
$Hd = str_replace(",", ".",$_SESSION['inNewHD']);
|
|
$p2 = getLastValueFromDevResourceDetail("WELL_PARAMETERS","P2M",$_SESSION['devID']);
|
|
$qQ = str_replace(",", ".",$_SESSION['inNewQ'])/60;
|
|
$f = 3.14*pow((str_replace(",", ".",$_SESSION['inNewDR'])/1000),2)/4;
|
|
$ct = $qQ/$f;
|
|
$Hsl=$_SESSION['rurType'] * (str_replace(",", ".",$_SESSION['inNewLP'])/(str_replace(",", ".",$_SESSION['inNewDR'])/1000)) * (pow($ct,2)/19.62);
|
|
$Hp=round($Hd+$p2+$Hsl,2);
|
|
|
|
$Hp_min = $Hp-($Hp*0.035);
|
|
$Hp_max = $Hp+($Hp*0.07);
|
|
|
|
$qQuery = str_replace(",", ".",$_SESSION['inNewQ'])*60;
|
|
|
|
$resArray = loadSelectionArray($qQuery,$Hp,$Hp_min,$Hp_max);
|
|
|
|
}
|
|
|
|
|
|
if(!empty($_POST['subStep5']))
|
|
{
|
|
$Hd = str_replace(",", ".",$_SESSION['inNewHD']);
|
|
$p2 = getLastValueFromDevResourceDetail("WELL_PARAMETERS","P2M",$_SESSION['devID']);
|
|
$qQ = str_replace(",", ".",$_SESSION['inNewQ'])/60;
|
|
$f = 3.14*pow((str_replace(",", ".",$_SESSION['inNewDR'])/1000),2)/4;
|
|
$ct = $qQ/$f;
|
|
$Hsl=$_SESSION['rurType'] * (str_replace(",", ".",$_SESSION['inNewLP'])/(str_replace(",", ".",$_SESSION['inNewDR'])/1000)) * (pow($ct,2)/19.62);
|
|
$Hp=round($Hd+$p2+$Hsl,2);
|
|
|
|
$Hp_min = $Hp-($Hp*0.1);
|
|
$Hp_max = $Hp+($Hp*0.15);
|
|
|
|
$qQuery = str_replace(",", ".",$_SESSION['inNewQ'])*60;
|
|
|
|
$resArray = loadSelectionArray($qQuery,$Hp,$Hp_min,$Hp_max);
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
<form action="./?pg=site406_5" method="post">
|
|
<div class="tag100">
|
|
<div class="head_tag">Lista przesortowanych agregatów na zadane parametry.</div>
|
|
<div class="tag">
|
|
<div class="steps">
|
|
<img src="./images/ps_step_5.png" border="0" usemap="#selection">
|
|
<map name="selection">
|
|
<area shape="circle" coords="19,19,19" href="?pg=site406">
|
|
<area shape="circle" coords="169,19,19" href="?pg=site406_2">
|
|
<area shape="circle" coords="319,19,19" href="?pg=site406_3">
|
|
<area shape="circle" coords="469,19,19" href="?pg=site406_4">
|
|
</map>
|
|
</div>
|
|
|
|
<table WIDTH="100%" class="tag">
|
|
<TR>
|
|
<TD class="label">Typ pompy</TD>
|
|
<TD class="label">Numer pompy</TD>
|
|
<TD class="label">Typ silnika</TD>
|
|
<TD class="label">Numer silnika</TD>
|
|
<td class="label">Q<sub>SZ</sub> [m<sup>3</sup>/min]</td>
|
|
<td class="label">~H [m]</td>
|
|
<td class="label">~η</td>
|
|
</TR>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
print_r($resArray);
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
}
|
|
else showFooterWarningAccessNotification($lab_FooterWarningAccessNotification_001);
|
|
?>
|