public static double GetDensity(double massConcentraiton, double temperature, MilkType milkType) { temperature = temperature - 273.15; //MaterialComponent dryMatComponent = materialComponents[0] as MaterialComponent; //double dryMatFraction = dryMatComponent.GetMassFractionValue(); double a = 0; double b = 0; double c = 0; if (milkType == MilkType.SkimMilk) { a = ChartUtil.GetInterpolateValue(skimMilkA, temperature); b = ChartUtil.GetInterpolateValue(skimMilkB, temperature); c = ChartUtil.GetInterpolateValue(skimMilkC, temperature); } else if (milkType == MilkType.WholeMilk) { a = ChartUtil.GetInterpolateValue(skimMilkA, temperature); b = ChartUtil.GetInterpolateValue(skimMilkB, temperature); } double density = a + b * massConcentraiton + c * massConcentraiton * massConcentraiton; return(1000 * density); }
internal static double CalculateCollectionEfficiency(double dpiDpth, CycloneInletConfiguration inletConfiguration) { if (inletConfiguration == CycloneInletConfiguration.Tangential) { return(ChartUtil.GetInterpolateValue(ceDiamCorrectionCurve1, Math.Log10(dpiDpth))); } else { return(ChartUtil.GetInterpolateValue(ceDiamCorrectionCurve2, Math.Log10(dpiDpth))); } }
//Section 7-26 of Handbook of Chemical Engineering Calculations //This correlation is very similar to Perry's Equation 5-101 //massFlowRate is the condensate flow rate public static double CalculateInTubeHorizontalHTC_StratifiedFlow(double massFlowRate, double diameter, double length, double liqDensity, double liqViscosity, double liqThermalCond) { double tempValue = liqDensity * liqDensity * 9.8065 * length / (liqViscosity * massFlowRate); double h = 0.767 * liqThermalCond * Math.Pow(tempValue, 1.0 / 3.0); //need to do correction according to W/(rho * Math.Pow(Di, 2.56)) //W is in Ibm/hr, rho is in Ibm/ft3, Di is in ft tempValue = (massFlowRate / 1.25997881e-4) / (liqDensity / 16.0184634 * Math.Pow(diameter / 0.3048, 2.56)); double correctionFactor = ChartUtil.GetInterpolateValue(stratifiedFlowCorrectionCurve, tempValue); return(h * correctionFactor); }
internal static double CalculateDPLoadingCorrectionFactor(double loading) { return(ChartUtil.GetInterpolateValue(dpLoadingCorrectionCurve, Math.Log10(loading))); }
internal static double CalculateDPContractionFactor(double areaRatio) { return(ChartUtil.GetInterpolateValue(dpContractionFactorCurve, areaRatio)); }