Example #1
0
        protected override void EnableRatingModel()
        {
            //in cyclone rating collection efficiency can not be specified
            CollectionEfficiency.State = VarState.AlwaysCalculated;

            if (currentRatingModel == null)
            {
                currentRatingModel = new CycloneRatingModel(this);
            }
        }
Example #2
0
        public override void SetObjectData()
        {
            base.SetObjectData();
            int persistedClassVersion = (int)info.GetValue("ClassPersistenceVersionCyclone", typeof(int));

            if (persistedClassVersion == 1)
            {
                this.gasInlet       = info.GetValue("GasInlet", typeof(ProcessStreamBase)) as ProcessStreamBase;
                this.gasOutlet      = info.GetValue("GasOutlet", typeof(ProcessStreamBase)) as ProcessStreamBase;
                this.particleOutlet = info.GetValue("ParticleOutlet", typeof(ProcessStreamBase)) as ProcessStreamBase;

                /*this.pressureDrop = RecallStorableObject("PressureDrop", typeof(ProcessVarDouble)) as ProcessVarDouble;
                 * this.collectionEfficiency = RecallStorableObject("CollectionEfficiency", typeof(ProcessVarDouble)) as ProcessVarDouble;
                 * this.massFlowRateOfParticleLostToGasOutlet = RecallStorableObject("MassFlowRateOfParticleLostToGasOutlet", typeof(ProcessVarDouble)) as ProcessVarDouble;
                 * this.inletParticleLoading = RecallStorableObject("InletParticleLoading", typeof(ProcessVarDouble)) as ProcessVarDouble;
                 * this.outletParticleLoading = RecallStorableObject("OutletParticleLoading", typeof(ProcessVarDouble)) as ProcessVarDouble;*/

                this.balanceModel       = RecallStorableObject("BalanceModel", typeof(GasSolidSeparatorBalanceModel)) as GasSolidSeparatorBalanceModel;
                this.currentRatingModel = RecallStorableObject("CurrentRatingModel", typeof(CycloneRatingModel)) as CycloneRatingModel;
            }
        }