500 global $my_grain_absorbtion; |
500 global $my_grain_absorbtion; |
501 global $my_brix_correction; |
501 global $my_brix_correction; |
502 $mashwater = 0; |
502 $mashwater = 0; |
503 $numsalts = 0; |
503 $numsalts = 0; |
504 |
504 |
505 // Giststarter maken |
|
506 |
|
507 $this->AddPage(); |
505 $this->AddPage(); |
508 $this->SetFillColor(255,255,255); |
506 $this->SetFillColor(255,255,255); |
|
507 |
|
508 if ($row['starter_enable'] && $row['prop1_volume']) { |
|
509 $this->Checkheader('Giststarter maken'); |
|
510 $days = 0; |
|
511 $last = 0; |
|
512 for ($i = 1; $i < 5; $i++) { |
|
513 $pt = "prop".$i."_type"; |
|
514 $pv = "prop".$i."_volume"; |
|
515 if (floatval($row[$pv])) { |
|
516 $last = $i; |
|
517 if ($row[$pt] == 0) |
|
518 $days += 2; |
|
519 else if ($row[$pt] == 1) |
|
520 $days += 4; |
|
521 else |
|
522 $days += 6; |
|
523 } |
|
524 } |
|
525 $this->Checkline("begin ongeveer ".$days." dagen voor de brouwdag met de giststarter"); |
|
526 for ($i = 1; $i < 5; $i++) { |
|
527 $pt = "prop".$i."_type"; |
|
528 $pv = "prop".$i."_volume"; |
|
529 if (floatval($row[$pv])) { |
|
530 $s = "Starter stap ".$i.", van ".sprintf("%.3f",floatval($row[$pv])); |
|
531 $s .= " liter maken met SG ".sprintf("%.3f",floatval($row['starter_sg'])); |
|
532 $this->Checkline($s); |
|
533 if ($row[$pt] == 0) { |
|
534 $s = "ongeveer 24 uur op een magneetroerder"; |
|
535 } else if ($row[$pt] == 1) { |
|
536 $s = "enkele dagen regelmatig schudden"; |
|
537 } else { |
|
538 $s = "bijna een week rustig laten staan"; |
|
539 } |
|
540 $s .= " tot er voldoende gist is"; |
|
541 $this->Checkline($s); |
|
542 if ($i < $last) { |
|
543 $this->Checkline("starter minstens 24 uur in de koeling laten uitzakken"); |
|
544 $this->Checkline("starter uit de koelkast halen en afgieten"); |
|
545 } else { |
|
546 $this->Checkline("starter in de koeling zetten tot de brouwdag"); |
|
547 $this->Checkline("starter op de brouwdag uit de koelkast halen en afgieten"); |
|
548 } |
|
549 } |
|
550 } |
|
551 $this->Ln(5); |
|
552 } |
|
553 |
509 $this->Checkheader('Water en -behandeling'); |
554 $this->Checkheader('Water en -behandeling'); |
510 if ($row['w1_name']) { |
555 if ($row['w1_name']) { |
511 $this->Checkline(sprintf("%.1f",floatval($row['w1_amount'])).' liter water '.$row['w1_name']); |
556 $this->Checkline(sprintf("%.1f",floatval($row['w1_amount'])).' liter water '.$row['w1_name']); |
512 $mashwater += floatval($row['w1_amount']); |
557 $mashwater += floatval($row['w1_amount']); |
513 } |
558 } |
539 $this->Ln(5); |
584 $this->Ln(5); |
540 |
585 |
541 $this->Checkheader('Maischen'); |
586 $this->Checkheader('Maischen'); |
542 $mvol = 0; |
587 $mvol = 0; |
543 $msugars = 0; // mash sugars |
588 $msugars = 0; // mash sugars |
544 $grainabsortion = 0; |
589 $grainabsorbtion = 0; |
545 $arr = json_decode($row['json_mashs'], true); |
590 $arr = json_decode($row['json_mashs'], true); |
546 if (count($arr) > 0) { |
591 if (count($arr) > 0) { |
547 $loop = 0; |
592 $loop = 0; |
548 foreach($arr as $item) { |
593 foreach($arr as $item) { |
549 if ($item['step_type'] == 0) |
594 if ($item['step_type'] == 0) |
597 $brix = $plato * $my_brix_correction; |
642 $brix = $plato * $my_brix_correction; |
598 $s = 'doel sg eind maischen: '.sprintf("%.3f",$mash_sg); |
643 $s = 'doel sg eind maischen: '.sprintf("%.3f",$mash_sg); |
599 $s .= ' SG ('.sprintf("%.1f",$brix).' '.DEG.'Brix, '.sprintf("%.1f",$plato).' '.DEG.'P)'; |
644 $s .= ' SG ('.sprintf("%.1f",$brix).' '.DEG.'Brix, '.sprintf("%.1f",$plato).' '.DEG.'P)'; |
600 $this->Checkline($s); |
645 $this->Checkline($s); |
601 } |
646 } |
602 $this->Ln(5); |
647 if ($this->GetY() > 200) |
|
648 $this->AddPage(); |
|
649 else |
|
650 $this->Ln(5); |
603 |
651 |
604 $acidtype = array( 'Melkzuur', 'Zoutzuur', 'Fosforzuur', 'Zwavelzuur' ); |
652 $acidtype = array( 'Melkzuur', 'Zoutzuur', 'Fosforzuur', 'Zwavelzuur' ); |
605 $this->Checkheader('Filteren en spoelen'); |
653 $this->Checkheader('Filteren en spoelen'); |
606 $s = sprintf("%.1f",$row['sparge_volume']).' liter spoelwater opwarmen tot '.sprintf("%.1f",$row['sparge_temp']).' '.DEG.'C'; |
654 $s = sprintf("%.1f",$row['sparge_volume']).' liter spoelwater opwarmen tot '.sprintf("%.1f",$row['sparge_temp']).' '.DEG.'C'; |
607 $this->Checkline($s); |
655 $this->Checkline($s); |
608 $s = 'spoelwater aanzuren tot pH <= '.sprintf("%.1f",$row['sparge_ph']).' met '; |
656 $s = 'spoelwater aanzuren tot pH <= '.sprintf("%.1f",$row['sparge_ph']).' met '; |
609 $s .= sprintf("%.1f",$row['sparge_acid_amount']*1000).' ml. '.$acidtype[$row['sparge_acid_type']]; |
657 $s .= sprintf("%.1f",$row['sparge_acid_amount']*1000).' ml. '.$acidtype[$row['sparge_acid_type']]; |
610 $this->Checkline($s); |
658 $this->Checkline($s); |
611 |
|
612 $spoelw = ($row['boil_size'] - $mashwater + $grainabsorbtion + $row['eq_lauter_deadspace']) * 1.03; // A small heat correction |
659 $spoelw = ($row['boil_size'] - $mashwater + $grainabsorbtion + $row['eq_lauter_deadspace']) * 1.03; // A small heat correction |
613 $this->Checkline('spoelen met ongeveer '.sprintf("%.1f",$spoelw).' liter spoelwater'); |
660 $this->Checkline('spoelen met ongeveer '.sprintf("%.1f",$spoelw).' liter spoelwater'); |
614 $s = 'doelvolume in kookketel: '.sprintf("%.1f",$row['boil_size'] * 1.04).' liter ('; |
661 $s = 'doelvolume in kookketel: '.sprintf("%.1f",$row['boil_size'] * 1.04).' liter ('; |
615 $s .= sprintf("%.1f",kettle_cm($row['boil_size'] * 1.04,$row['eq_kettle_volume'],$row['eq_kettle_height'])).' cm onder de rand)'; |
662 $s .= sprintf("%.1f",kettle_cm($row['boil_size'] * 1.04,$row['eq_kettle_volume'],$row['eq_kettle_height'])).' cm onder de rand)'; |
616 $this->Checkline($s); |
663 $this->Checkline($s); |
625 $s = sprintf("%.1f",$item2['h_amount']*1000).' gr '; |
672 $s = sprintf("%.1f",$item2['h_amount']*1000).' gr '; |
626 $s .= iconv('UTF-8','windows-1252',$item2['h_name']).' toevoegen na het spoelen'; |
673 $s .= iconv('UTF-8','windows-1252',$item2['h_name']).' toevoegen na het spoelen'; |
627 $this->Checkline($s); |
674 $this->Checkline($s); |
628 } |
675 } |
629 } |
676 } |
630 $this->Ln(5); |
677 if ($this->GetY() > 200) |
|
678 $this->AddPage(); |
|
679 else |
|
680 $this->Ln(5); |
631 |
681 |
632 $this->Checkheader('Koken'); |
682 $this->Checkheader('Koken'); |
633 $this->Checkline('totale kooktijd: '.$row['boil_time'].' min.'); |
683 $this->Checkline('totale kooktijd: '.$row['boil_time'].' min.'); |
634 for ($i = $row['boil_time']; $i >= 0; $i--) { |
684 for ($i = $row['boil_time']; $i >= 0; $i--) { |
635 |
|
636 if ($i == 10) { |
685 if ($i == 10) { |
637 $ferms = json_decode($row['json_fermentables'], true); |
686 $ferms = json_decode($row['json_fermentables'], true); |
638 foreach($ferms as $item1) { |
687 foreach($ferms as $item1) { |
639 if ($item1['f_added'] == 1) { |
688 if ($item1['f_added'] == 1) { |
640 $s = sprintf("%.3f",$item1['f_amount']).' kg '; |
689 $s = sprintf("%.3f",$item1['f_amount']).' kg '; |
716 $this->AddPage(); |
765 $this->AddPage(); |
717 else |
766 else |
718 $this->Ln(5); |
767 $this->Ln(5); |
719 |
768 |
720 $this->Checkheader('Gist enten'); |
769 $this->Checkheader('Gist enten'); |
721 |
|
722 $dry = 0; |
770 $dry = 0; |
723 $yeasts = json_decode($row['json_yeasts'], true); |
771 $yeasts = json_decode($row['json_yeasts'], true); |
724 foreach ($yeasts as $item) { |
772 foreach ($yeasts as $item) { |
725 if ($item['y_use'] == 0) { // primary |
773 if ($item['y_use'] == 0) { // primary |
726 if ($item['y_form'] == 0) { // Liquid |
774 if ($item['y_form'] == 0) { // Liquid |
742 $this->Checkline(' gistmengsel voorzichtig roeren en laten afkoelen tot temperatuur wort'); |
790 $this->Checkline(' gistmengsel voorzichtig roeren en laten afkoelen tot temperatuur wort'); |
743 $this->Checkline(' gist toevoegen'); |
791 $this->Checkline(' gist toevoegen'); |
744 $this->Checkline('Of'); |
792 $this->Checkline('Of'); |
745 $this->Checkline(' gist rechtstreeks over het wort strooien'); |
793 $this->Checkline(' gist rechtstreeks over het wort strooien'); |
746 } else { |
794 } else { |
747 $this->Checkline('eventueel giststarter afgieten'); |
795 if ($row['starter_enable'] && $row['prop1_volume']) |
748 $this->Checkline('gist toevoegen'); |
796 $this->Checkline('giststarter toevoegen'); |
|
797 else |
|
798 $this->Checkline('gist toevoegen'); |
749 } |
799 } |
750 if ($row['brew_fermenter_extrawater'] > 0) |
800 if ($row['brew_fermenter_extrawater'] > 0) |
751 $this->Checkline(sprintf("%.1f", $row['brew_fermenter_extrawater']).' liter water toevoegen in gistvat'); |
801 $this->Checkline(sprintf("%.1f", $row['brew_fermenter_extrawater']).' liter water toevoegen in gistvat'); |
752 if ($row['brew_aeration_type'] > 0) { |
802 if ($row['brew_aeration_type'] > 0) { |
753 $s = 'wort '.$row['brew_aeration_time'].' minuten beluchten met '; |
803 $s = 'wort '.$row['brew_aeration_time'].' minuten beluchten met '; |