/*public ParticleDistributions GetParticleDistributions() { * return new ParticleDistributions(this); * } * * internal ArrayList ParticleSizeFractionAndEfficiencyList { * get {return particleSizeFractionAndEfficiencyList;} * set {particleSizeFractionAndEfficiencyList = value;} * }*/ #endregion public CycloneRatingModel(IGasSolidSeparator owner) : base(owner) { //this.cycloneOwner = (Cyclone) owner; numberOfCyclones = new ProcessVarInt(StringConstants.NUMBER_OF_CYCLONES, PhysicalQuantity.Unknown, 1, VarState.Specified, ownerUnitOp); //particleDensity = new ProcessVarDouble(StringConstants.PARTICLE_DENSITY, PhysicalQuantity.Density, VarState.Specified, ownerUnitOp); //particleBulkDensity = new ProcessVarDouble(StringConstants.PARTICLE_BULK_DENSITY, PhysicalQuantity.Density, VarState.Specified, ownerUnitOp); cutParticleDiameter = new ProcessVarDouble(StringConstants.CUT_PARTICLE_DIAMETER, PhysicalQuantity.MicroLength, VarState.Specified, ownerUnitOp); inletConfiguration = CycloneInletConfiguration.Tangential; inletWidth = new ProcessVarDouble(StringConstants.INLET_WIDTH, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); inletHeight = new ProcessVarDouble(StringConstants.INLET_HEIGHT, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); inletHeightToWidthRatio = new ProcessVarDouble(StringConstants.INLET_HEIGHT_TO_WIDTH_RATIO, PhysicalQuantity.Unknown, VarState.Specified, ownerUnitOp); inletVelocity = new ProcessVarDouble(StringConstants.INLET_VELOCITY, PhysicalQuantity.Velocity, VarState.Specified, ownerUnitOp); cycloneDiameter = new ProcessVarDouble(StringConstants.CYCLONE_DIAMETER, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); outletInnerDiameter = new ProcessVarDouble(StringConstants.OUTLET_INNER_DIAMETER, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); outletWallThickness = new ProcessVarDouble(StringConstants.OUTLET_WALL_THICKNESS, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); diplegDiameter = new ProcessVarDouble(StringConstants.DIPLEG_DIAMETER, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); outletTubeLengthBelowRoof = new ProcessVarDouble(StringConstants.OUTLET_TUBE_LENGTH_BELOW_ROOF, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); outletBelowRoofToInletHeightRatio = new ProcessVarDouble(StringConstants.OUTLET_BELOW_ROOF_TO_INLET_HEIGHT_RATIO, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); naturalVortexLength = new ProcessVarDouble(StringConstants.NATURAL_VORTEX_LENGTH, PhysicalQuantity.Length, VarState.AlwaysCalculated, ownerUnitOp); externalVesselDiameter = new ProcessVarDouble(StringConstants.EXTERNAL_VESSEL_DIAMETER, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); coneAngle = new ProcessVarDouble(StringConstants.CONE_ANGLE, PhysicalQuantity.PlaneAngle, VarState.Specified, ownerUnitOp); barrelLength = new ProcessVarDouble(StringConstants.BARREL_LENGTH, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); coneLength = new ProcessVarDouble(StringConstants.CONE_LENGTH, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); barrelPlusConeLength = new ProcessVarDouble(StringConstants.BARREL_PLUS_CONE_LENGTH, PhysicalQuantity.Length, VarState.Specified, ownerUnitOp); //particleSizeFractionAndEfficiencyList.Add(new ParticleSizeFractionAndEfficiency(ownerUnitOp)); //particleSizeFractionAndEfficiencyList.Add(new ParticleSizeFractionAndEfficiency()); particleType = ParticleTypeGroup.A; InitializeVarListAndRegisterVars(); }
public ErrorMessage SpecifyInletConfiguration(CycloneInletConfiguration aValue) { if (aValue != inletConfiguration) { inletConfiguration = aValue; ownerUnitOp.HasBeenModified(true); } return(null); }
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))); } }
public void SetInletConfiguration(CycloneInletConfiguration config) { if (config == CycloneInletConfiguration.Scroll) { this.comboBoxInletConfiguration.SelectedIndex = CycloneRatingValuesControl.INDEX_SCROLL; } else if (config == CycloneInletConfiguration.Tangential) { this.comboBoxInletConfiguration.SelectedIndex = CycloneRatingValuesControl.INDEX_TANGENTIAL; } else if (config == CycloneInletConfiguration.Volute) { this.comboBoxInletConfiguration.SelectedIndex = CycloneRatingValuesControl.INDEX_VOLUTE; } }
public override void SetObjectData() { base.SetObjectData(); int persistedClassVersion = (int)info.GetValue("ClassPersistenceVersionCyclone", typeof(int)); if (persistedClassVersion == 1) { this.owner = info.GetValue("Owner", typeof(Cyclone)) as Cyclone; this.procVarList = info.GetValue("ProcVarList", typeof(ArrayList)) as ArrayList; this.numberOfCyclones = RecallStorableObject("NumberOfCyclones", typeof(ProcessVarInt)) as ProcessVarInt; this.particleType = (ParticleTypeGroup)info.GetValue("ParticleType", typeof(ParticleTypeGroup)); //this.particleDensity = RecallStorableObject("ParticleDensity", typeof(ProcessVarDouble)) as ProcessVarDouble; //this.particleBulkDensity = RecallStorableObject("ParticleBulkDensity", typeof(ProcessVarDouble)) as ProcessVarDouble; this.cutParticleDiameter = RecallStorableObject("CutParticleDiameter", typeof(ProcessVarDouble)) as ProcessVarDouble; this.inletConfiguration = (CycloneInletConfiguration)info.GetValue("InletConfiguration", typeof(CycloneInletConfiguration)); this.inletWidth = RecallStorableObject("InletWidth", typeof(ProcessVarDouble)) as ProcessVarDouble; this.inletHeight = RecallStorableObject("InletHeight", typeof(ProcessVarDouble)) as ProcessVarDouble; this.inletHeightToWidthRatio = RecallStorableObject("InletHeightToWidthRatio", typeof(ProcessVarDouble)) as ProcessVarDouble; this.inletVelocity = RecallStorableObject("InletVelocity", typeof(ProcessVarDouble)) as ProcessVarDouble; this.cycloneDiameter = RecallStorableObject("CycloneDiameter", typeof(ProcessVarDouble)) as ProcessVarDouble; this.outletInnerDiameter = RecallStorableObject("OutletInnerDiameter", typeof(ProcessVarDouble)) as ProcessVarDouble; this.outletWallThickness = RecallStorableObject("OutletWallThickness", typeof(ProcessVarDouble)) as ProcessVarDouble; this.outletTubeLengthBelowRoof = RecallStorableObject("OutletTubeLengthBelowRoof", typeof(ProcessVarDouble)) as ProcessVarDouble; this.outletBelowRoofToInletHeightRatio = RecallStorableObject("OutletBelowRoofToInletHeightRatio", typeof(ProcessVarDouble)) as ProcessVarDouble; this.naturalVortexLength = RecallStorableObject("NaturalVortexLength", typeof(ProcessVarDouble)) as ProcessVarDouble; this.diplegDiameter = RecallStorableObject("DiplegDiameter", typeof(ProcessVarDouble)) as ProcessVarDouble; this.externalVesselDiameter = RecallStorableObject("ExternalVesselDiameter", typeof(ProcessVarDouble)) as ProcessVarDouble; this.coneAngle = RecallStorableObject("ConeAngle", typeof(ProcessVarDouble)) as ProcessVarDouble; this.barrelLength = RecallStorableObject("BarrelLength", typeof(ProcessVarDouble)) as ProcessVarDouble; this.coneLength = RecallStorableObject("ConeLength", typeof(ProcessVarDouble)) as ProcessVarDouble; this.barrelPlusConeLength = RecallStorableObject("BarrelPlusConeLength", typeof(ProcessVarDouble)) as ProcessVarDouble; //this.particleSizeFractionAndEfficiencyList = RecallArrayListObject("ParticleSizeFractionAndEfficiencyList"); } }