Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Passo 8
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))).setScale(30, RoundingMode.HALF_EVEN);
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"))), MathContext.DECIMAL128
).multiply(new BigDecimal(Math.pow(10d, 3d))).setScale(30, RoundingMode.HALF_EVEN);
System.out.println("Valor de Ct(g/g): " + nb.format(CtGG));
//***** CW(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))); //TODO: Verificar com a natalia
System.out.println("Valor de CwGcm3: " + nb.format(CwGcm3));
} else {
CwGcm3 = CtGG.multiply(pbGL).divide((pbGL.multiply(koc).multiply(foc)).add(Owv.add(Oav.multiply(kh))), MathContext.DECIMAL128).multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor de CwGcm3: " + nb.format(CwGcm3));
}
//***** Cv(g/cm³) *******//
BigDecimal CvGcm3 = BigDecimal.ZERO;
CvGcm3 = kh.multiply(CwGcm3);
System.out.println("Valor de CvGcm3: " + nb.format(CvGcm3));
/**
* Liq. Mass Lost From Source (kg)
*/
BigDecimal ASource = xSource.multiply(ySource);
BigDecimal MassLot = BigDecimal.ZERO;
BigDecimal T = BigDecimal.ZERO;
MassLot = q.multiply(CvGcm3).multiply(ASource.multiply(T)).multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor de MassLot: " + nb.format(MassLot));
/**
* Volatization loss (kg)
*/
BigDecimal volationLoss = BigDecimal.ZERO;
volationLoss = ((Defft.multiply(CvGcm3).divide(Ld)).multiply(T).multiply(ASource)).multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor de voltationLoss: " + nb.format(volationLoss));
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.