Skip to content

Instantly share code, notes, and snippets.

@netodevel
Created December 29, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netodevel/3121473af5c1f5ebf261 to your computer and use it in GitHub Desktop.
Save netodevel/3121473af5c1f5ebf261 to your computer and use it in GitHub Desktop.
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