src/EditRecipeTab6.cpp

changeset 158
24bc2de721d9
parent 151
b5b2483f3a3f
child 163
6cccd340ea8c
--- a/src/EditRecipeTab6.cpp	Sat Apr 23 20:00:35 2022 +0200
+++ b/src/EditRecipeTab6.cpp	Sun Apr 24 14:15:20 2022 +0200
@@ -154,8 +154,8 @@
 
 double EditRecipe::infusionVol(double step_infused, double step_mashkg, double infuse_temp, double step_temp, double last_temp)
 {
-    double a = last_temp * (eq_tun_weight * eq_tun_specific_heat + step_infused * SpecificHeatWater + step_mashkg * SpecificHeatMalt);
-    double b = step_temp * (eq_tun_weight * eq_tun_specific_heat + step_infused * SpecificHeatWater + step_mashkg * SpecificHeatMalt);
+    double a = last_temp * (equip_tun_weight * equip_tun_specific_heat + step_infused * SpecificHeatWater + step_mashkg * SpecificHeatMalt);
+    double b = step_temp * (equip_tun_weight * equip_tun_specific_heat + step_infused * SpecificHeatWater + step_mashkg * SpecificHeatMalt);
     double vol = round(((b - a) / ((infuse_temp - step_temp) * SpecificHeatWater)) * 100.0) / 100.0;
 
     if (vol < 0)
@@ -167,7 +167,7 @@
 
 double EditRecipe::decoctionVol(double step_volume, double step_temp, double prev_temp)
 {
-    double a = (eq_tun_weight * eq_tun_specific_heat + step_volume * SpecificHeatWater) * (step_temp - prev_temp);
+    double a = (equip_tun_weight * equip_tun_specific_heat + step_volume * SpecificHeatWater) * (step_temp - prev_temp);
     double b = SpecificHeatWater * (99 - step_temp);
     double vol = 0;
 
@@ -198,9 +198,9 @@
 		    n = 20; // tun is preheated.
 		    tuntemp = recipe->mashs.at(i).step_temp;
 		    for (j = 0; j < n; j++) {
-			a = recipe->mashs_kg * graintemp * SpecificHeatMalt + eq_tun_weight * tuntemp * eq_tun_specific_heat;
+			a = recipe->mashs_kg * graintemp * SpecificHeatMalt + equip_tun_weight * tuntemp * equip_tun_specific_heat;
 			b = recipe->mashs[i].step_temp *
-			      (eq_tun_weight * eq_tun_specific_heat + 
+			      (equip_tun_weight * equip_tun_specific_heat +
 			       recipe->mashs.at(i).step_infuse_amount * SpecificHeatWater + 
 			       recipe->mashs_kg * SpecificHeatMalt) -
 			      SlakingHeat * recipe->mashs_kg;

mercurial