Skip to content

Commit

Permalink
Sub and super fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
malamalca committed Dec 19, 2023
1 parent e2f4c22 commit 823091c
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions src/Calc/GF/Cone/Cona.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ public function izracunNavlazevanje($okolje, $options = [])
// tabela 7.1.1
$this->uravnavanjeVlage->faktorUporabe = $this->uravnavanjeVlage->faktorUporabe ?? 1;

// specifična količina oddane vodne pare virov v stavbi na m2
// g_h2o,h (kg/m2h)
// specifična količina oddane vodne pare virov v stavbi na
// g_h2o,h (kg/m²h)
$this->uravnavanjeVlage->viriVodnePare = $this->uravnavanjeVlage->viriVodnePare ?? 1.4;

// samo za navlaževanje
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function izracunHidravlicneMoci($prenosnik, $rezim, $sistem, $cona)
$deltaT_HK = $rezim->temperaturnaRazlikaStandardnegaRezima($sistem);
}

// V – volumski pretok ogrevnega medija [m3/h]
// V – volumski pretok ogrevnega medija [/h]
// enačba (66)
$volumskiPretok = 0;
if ($deltaT_HK > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function izracunHidravlicneMoci($cona)
$this->dvizniVod->toplotneIzgube($this, $cona) +
$this->prikljucniVod->toplotneIzgube($this, $cona)) * (57.5 - $cona->notranjaTOgrevanje);

// V – volumski pretok ogrevnega medija [m3/h]
// V – volumski pretok ogrevnega medija [/h]
// enačba (66)
$volumskiPretok = $Q_t / (1.15 * $deltaT_Z) / 1000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function izracunMociVentilatorja()
{
$dodatekH1H2 = $this->visokIzkoristek ? 300 : 0;

// kW/(m3/h)
// kW/(/h)
$spf = ($this->vrsta->faktorSpf() * 3600 + $this->vrstaFiltra->dodatekFiltra() + $dodatekH1H2) / 3600000;

$mocVentilatorja = $spf * $this->volumen;
Expand Down
2 changes: 1 addition & 1 deletion src/Calc/Hrup/ZracniHrup/Izbire/VrstaSpoja.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function faktorjiK($M)
$ret['K23'] = $ret['K12'];
break;
case self::KrizniZElasticnimSpojem:
// Hz; if E1/t1 ~= 100 MN/m3
// Hz; if E1/t1 ~= 100 MN/
$f1 = 125;
$D1 = 10 * log10(500 / $f1);

Expand Down
2 changes: 1 addition & 1 deletion templates/Hrup/UdarniHrup/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!--<tr>
<td class="w-20">Prostornina sprejemnega prostora:</td>
<td class="w-10 right strong">V=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($locilnaKonstrukcija->prostorninaSprejemnegaProstora, 1) ?> m3</td>
<td colspan="2" class="left strong"><?= $this->numFormat($locilnaKonstrukcija->prostorninaSprejemnegaProstora, 1) ?> </td>
</tr>-->
<tr>
<td class="w-20">Ekvivalentna ovrednotena normirana raven zvočnega tlaka:</td>
Expand Down
8 changes: 4 additions & 4 deletions templates/Hrup/ZracniHrup/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
<tr>
<td class="w-30">Površina:</td>
<td class="w-15 right">S<sub>s</sub>=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($locilnaKonstrukcija->locilniElement->povrsina, 1) ?> m2</td>
<td colspan="2" class="left strong"><?= $this->numFormat($locilnaKonstrukcija->locilniElement->povrsina, 1) ?> </td>
</tr>
<tr>
<td class="w-30">Površinska masa:</td>
<td class="w-15 right">m'=</td>
<td class="left strong"><?= $this->numFormat($locilnaKonstrukcija->locilniElement->povrsinskaMasa, 1) ?> kg/m2</td>
<td class="left strong"><?= $this->numFormat($locilnaKonstrukcija->locilniElement->povrsinskaMasa, 1) ?> kg/</td>
</tr>
<tr>
<td class="w-30">Izolativnost:</td>
Expand All @@ -61,12 +61,12 @@
<tr>
<td class="w-30">Površina:</td>
<td class="right w-15">S<sub>i</sub>=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($stranskiElement->povrsina, 1) ?> m2</td>
<td colspan="2" class="left strong"><?= $this->numFormat($stranskiElement->povrsina, 1) ?> </td>
</tr>
<tr>
<td class="w-30">Površinska masa:</td>
<td class="right w-15">m'=</td>
<td class="left strong"><?= $this->numFormat($stranskiElement->konstrukcija->povrsinskaMasa, 1) ?> kg/m2</td>
<td class="left strong"><?= $this->numFormat($stranskiElement->konstrukcija->povrsinskaMasa, 1) ?> kg/</td>
</tr>
<tr>
<td class="w-30">Izolativnost:</td>
Expand Down
12 changes: 6 additions & 6 deletions templates/Hrup/ZunanjiHrup/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
<tr>
<td class="w-20">Prostornina:</td>
<td class="w-10 right strong">V=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($prostor->prostornina, 1) ?> m3</td>
<td colspan="2" class="left strong"><?= $this->numFormat($prostor->prostornina, 1) ?> </td>
</tr>
<tr>
<td class="w-20">Površina ovoja:</td>
<td class="w-10 right strong">S<sub>f</sub>=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($prostor->Sf, 1) ?> m2</td>
<td colspan="2" class="left strong"><?= $this->numFormat($prostor->Sf, 1) ?> </td>
</tr>
<tr>
<td class="w-20">Absorbcijska površina:</td>
<td class="w-10 right strong">A<sub>f</sub>=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($prostor->Af, 1) ?> m2</td>
<td colspan="2" class="left strong"><?= $this->numFormat($prostor->Af, 1) ?> </td>
</tr>
<tr>
<td class="w-20">Odmevni čas:</td>
Expand All @@ -54,7 +54,7 @@
<tr>
<td class="w-20">Površina:</td>
<td class="w-10 right strong">A=</td>
<td colspan="2" class="left strong"><?= $this->numFormat($fasada->povrsina) ?> m2</td>
<td colspan="2" class="left strong"><?= $this->numFormat($fasada->povrsina) ?> </td>
</tr>
<tr>
<td class="w-20">Faktor oblike:</td>
Expand All @@ -72,7 +72,7 @@
<td class="center">Z. št.</td>
<td class="left">Šifra</td>
<td class="left">Naziv konstrukcije</td>
<td class="center">Povr. masa<br/>[kg/m2]</td>
<td class="center">Povr. masa<br/>[kg/]</td>
<td class="center">R<sub>w</sub> (C; C<sub>tr</sub>)</td>
<td class="center">R<sub>p,w</sub> (C; C<sub>tr</sub>)</td>
<td class="center">Št.</td>
Expand All @@ -98,7 +98,7 @@
<div class="small">
+ <?= h($dodatniSloj->naziv) ?>
(
m'=<?= $this->numFormat($dodatniSloj->povrsinskaMasa, 1) ?> kg/m2
m'=<?= $this->numFormat($dodatniSloj->povrsinskaMasa, 1) ?> kg/
<?php if ($dodatniSloj->vrsta == 'elasticen') echo ', s<sub>D</sub>=' . $this->numFormat($dodatniSloj->dinamicnaTogost, 1) . ' MN/m³'; ?>
<?php if ($dodatniSloj->vrsta == 'nepritrjen') echo ', d=' . $this->numFormat($dodatniSloj->sirinaMedprostora, 1) . ' m'; ?>
)
Expand Down
2 changes: 1 addition & 1 deletion templates/Pures/Izkazi/podrocjeGf.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<table border="1" cellpadding="3" width="100%">
<thead>
<tr>
<th colspan="7">Specifični koeficient transmisijskih toplotnih izgub H'tr (W/(m2 K)):</th>
<th colspan="7">Specifični koeficient transmisijskih toplotnih izgub H'tr (W/(K)):</th>
</tr>
</thead>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions templates/Pures/Konstrukcije/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
'<td class="left">' . h($kons->TSG->naziv) . '<br />' .
'<div class="nowrap">Tip: ' . h($kons->TSG->tip) . '</div>' .
'<div class="nowrap">Dobitek SS: ' . (!empty($kons->TSG->dobitekSS) ? 'DA' : 'NE') . '</div>' .
'<div class="nowrap">U<sub>max</sub>=' . $this->numFormat($kons->TSG->Umax, 2) . ' W/m2K</div><br />' .
'<div class="nowrap">U<sub>max</sub>=' . $this->numFormat($kons->TSG->Umax, 2) . ' W/m²K</div><br />' .
'</td>', $konstrukcije)) ?>
</tr>
<tr>
<?= implode(PHP_EOL, array_map(fn($kons) =>
'<td class="left' . ($kons->U < $kons->TSG->Umax ? '' : ' red') . '">U = ' . $this->numFormat($kons->U, 2) . ' W/m2K</td>', $konstrukcije)) ?>
'<td class="left' . ($kons->U < $kons->TSG->Umax ? '' : ' red') . '">U = ' . $this->numFormat($kons->U, 2) . ' W/m²K</td>', $konstrukcije)) ?>
</tr>
</table>
4 changes: 2 additions & 2 deletions templates/Pures/Konstrukcije/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
</tr>
<tr>
<td>U=</td>
<td><?= number_format($kons->U, 3) ?> W/m2K</td>
<td><?= number_format($kons->U, 3) ?> W/m²K</td>
<td>U<sub>max</sub>=</td>
<td><?= number_format($kons->TSG->Umax, 3) ?> W/m2K</td>
<td><?= number_format($kons->TSG->Umax, 3) ?> W/m²K</td>
<td><?= $kons->TSG->Umax > $kons->U ? 'Ustreza' : 'Ne ustreza' ?></td>
</tr>

Expand Down
2 changes: 1 addition & 1 deletion templates/Pures/Projekti/analiza.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<td>Bruto ogrevana prostornina stavbe</td>
<td>V<sub>e</sub></td>
<td class="center"><?= $this->numFormat($stavba->brutoProstornina, 1) ?></td>
<td>m3</td>
<td></td>
</tr>
<tr>
<td>Površina toplotnega ovoja stavbe</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/Pures/Projekti/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<td colspan="2" class="left"><?= $this->numFormat($okolje->projektnaZunanjaT, 1) ?></td>
</tr>
<tr>
<td colspan="2">Energija sončnega obsevanja (kWh/m2)</td>
<td colspan="2">Energija sončnega obsevanja (kWh/)</td>
<td colspan="2" class="left"><?= $this->numFormat($okolje->energijaSoncnegaObsevanja, 1) ?></td>
</tr>
</table>
Expand Down
4 changes: 2 additions & 2 deletions templates/Pures/TSS/fotovoltaika.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<td>Površina PV modulov:</td>
<td>A<sub>PV</sub></td>
<td><?= $sistem->povrsina ?></td>
<td>m2</td>
<td></td>
</tr>
<tr>
<td colspan="2">Orientacija:</td>
Expand All @@ -38,7 +38,7 @@
<td>Koeficient vršne moči:</td>
<td>K<sub>pk</sub></td>
<td><?= $this->numFormat($sistem->koeficientMoci, 1) ?></td>
<td>kW/m2</td>
<td>kW/</td>
</tr>
<tr>
<td>Nazivna moč fotonapetostnega sistema:</td>
Expand Down
4 changes: 2 additions & 2 deletions templates/Pures/TSS/prezracevanje.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<tr>
<td>Pretok:</td>
<td><?= $this->numFormat($sistem->dovod->volumen, 0) ?></td>
<td>m3/h</td>
<td>/h</td>
</tr>
<tr>
<td>Moč ventilatorja:</td>
Expand All @@ -47,7 +47,7 @@
<tr>
<td>Pretok:</td>
<td><?= $this->numFormat($sistem->odvod->volumen, 0) ?></td>
<td>m3/h</td>
<td>/h</td>
</tr>
<tr>
<td>Moč ventilatorja:</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/Pures/TSS/razsvetljava.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td>Specifična električna moč vgrajenih svetilk:</td>
<td>P'<sub>L</sub></td>
<td><?= $this->numFormat($sistem->mocSvetilk, 1) ?></td>
<td>W/m2</td>
<td>W/</td>
</tr>
<tr>
<td>Letno št.ur razsvetljave - podnevi:</td>
Expand Down
2 changes: 1 addition & 1 deletion tests/Hrup/ZunanjiHrupFasadaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testPrimerStandard12354_3(): void
[
{
"id": "prezracevalnaOdprtina1m",
"naziv": "Vstopna odprtina za zrak; 6 dm3/s, 1 m",
"naziv": "Vstopna odprtina za zrak; 6 dm³/s, 1 m",
"Rw": 37,
"C": -1,
"Ctr": -3
Expand Down

0 comments on commit 823091c

Please sign in to comment.