src/EditProductTab8.cpp

changeset 349
f05aeee71a14
parent 307
afd711e37f68
child 350
37b3c690b02c
equal deleted inserted replaced
348:c5318497a0b6 349:f05aeee71a14
482 Acid = Acid / my_acids[AT].AcidSG / (product->sparge_acid_perc / 100); //ml 482 Acid = Acid / my_acids[AT].AcidSG / (product->sparge_acid_perc / 100); //ml
483 Acid *= product->sparge_volume; //ml acid total 483 Acid *= product->sparge_volume; //ml acid total
484 Acid = round(Acid * 100.0) / 100.0; 484 Acid = round(Acid * 100.0) / 100.0;
485 product->sparge_acid_amount = Acid / 1000; 485 product->sparge_acid_amount = Acid / 1000;
486 ui->sp_acidvolEdit->setValue(Acid); 486 ui->sp_acidvolEdit->setValue(Acid);
487
488 product->est_preboil_ph = -log10(((pow(10, -product->mash_ph) * product->wg_amount) + (pow(10, -product->sparge_ph) * product->brew_sparge_est)) / (product->wg_amount + product->brew_sparge_est));
489 ui->preboil_phEdit->setValue(product->est_preboil_ph);
490 ui->brew_preboilphShow->setValue(product->est_preboil_ph);
487 } 491 }
488 492
489 493
490 void EditProduct::sp_source_changed(int val) 494 void EditProduct::sp_source_changed(int val)
491 { 495 {

mercurial