Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 8.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte));
//***** Ct(g/g) *******//
BigDecimal CtGG = BigDecimal.ZERO;
CtGG = totalDeMassaNaFonte.divide(pb.multiply(xSource).multiply(ySource)
.multiply(Lw.multiply(new BigDecimal("100")))
).multiply(new BigDecimal(Math.pow(10d, 3d))).setScale(30, RoundingMode.HALF_EVEN);
System.out.println("Valor de Ct(g/g): " + nb.format(CtGG));
//***** Ct(g/cm³) *******//
BigDecimal CwGcm3 = BigDecimal.ZERO;
//if (cw.compareTo(selfi) >= 0 ) {
CwGcm3 = CtGG.multiply(mwTPH).divide(mwi.multiply(cTPH).multiply(si), MathContext.DECIMAL128).multiply(new BigDecimal(Math.pow(10d, -6d)));
System.out.println("Valor de CwGcm3 1: " + nb.format(CwGcm3));
// } else {
CwGcm3 = CtGG.multiply(pb).divide(pb.multiply(koc).multiply(foc).multiply(Owv).multiply(Oav).multiply(kh), MathContext.DECIMAL128)
.multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor de CwGcm3 2: " + nb.format(CwGcm3));
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.