Exemple #1
0
 public void SetScrubberType(ScrubberType config)
 {
     if (config == ScrubberType.Condensing)
     {
         this.comboBoxScrubberType.SelectedIndex = WetScrubberValuesControl.INDEX_CONDENSING;
     }
     else if (config == ScrubberType.General)
     {
         this.comboBoxScrubberType.SelectedIndex = WetScrubberValuesControl.INDEX_GENERAL;
     }
 }
Exemple #2
0
        public WetScrubber(string name, UnitOpSystem uoSys) : base(name, uoSys)
        {
            scrubberType = ScrubberType.Condensing;
            balanceModel = new GasSolidSeparatorBalanceModel(this);

            liquidToGasVolumeRatio            = new ProcessVarDouble(StringConstants.LIQUID_GAS_RATIO, PhysicalQuantity.Unknown, VarState.Specified, this);
            liquidRecirculationMassFlowRate   = new ProcessVarDouble(StringConstants.LIQUID_RECIRCULATION_MASS_FLOW_RATE, PhysicalQuantity.MassFlowRate, VarState.Specified, this);
            liquidRecirculationVolumeFlowRate = new ProcessVarDouble(StringConstants.LIQUID_RECIRCULATION_VOLUME_FLOW_RATE, PhysicalQuantity.VolumeFlowRate, VarState.Specified, this);

            InitializeVarListAndRegisterVars();
        }
Exemple #3
0
        public override void SetObjectData()
        {
            base.SetObjectData();
            int persistedClassVersion = (int)info.GetValue("ClassPersistenceVersionWetScrubber", typeof(int));

            if (persistedClassVersion == 1)
            {
                this.gasInlet     = (DryingGasStream)info.GetValue("GasInlet", typeof(DryingGasStream));
                this.gasOutlet    = (DryingGasStream)info.GetValue("GasOutlet", typeof(DryingGasStream));
                this.liquidInlet  = (ProcessStreamBase)info.GetValue("LiquidInlet", typeof(ProcessStreamBase));
                this.liquidOutlet = (ProcessStreamBase)info.GetValue("LiquidOutlet", typeof(ProcessStreamBase));

                this.scrubberType = (ScrubberType)info.GetValue("ScrubberType", typeof(ScrubberType));
                this.balanceModel = RecallStorableObject("BalanceModel", typeof(GasSolidSeparatorBalanceModel)) as GasSolidSeparatorBalanceModel;

                this.liquidToGasVolumeRatio            = (ProcessVarDouble)RecallStorableObject("LiquidToGasVolumeRatio", typeof(ProcessVarDouble));
                this.liquidRecirculationVolumeFlowRate = (ProcessVarDouble)RecallStorableObject("LiquidRecirculationVolumeFlowRate", typeof(ProcessVarDouble));
                this.liquidRecirculationMassFlowRate   = (ProcessVarDouble)RecallStorableObject("LiquidRecirculationMassFlowRate", typeof(ProcessVarDouble));
            }
        }
Exemple #4
0
        public ErrorMessage SpecifyScrubberType(ScrubberType type)
        {
            ErrorMessage retMsg = null;

            if (scrubberType != type)
            {
                ScrubberType oldValue = scrubberType;
                scrubberType = type;
                try
                {
                    HasBeenModified(true);
                }
                catch (Exception e)
                {
                    scrubberType = oldValue;
                    retMsg       = HandleException(e);
                }
            }
            return(retMsg);
        }