Example #1
0
        public override void SetObjectData()
        {
            base.SetObjectData();
            int persistedClassVersion = (int)info.GetValue("ClassPersistenceVersionProcessStreamBase", typeof(int));

            if (persistedClassVersion == 1)
            {
                this.materialComponents = RecallStorableObject("MaterialComponents", typeof(MaterialComponents)) as MaterialComponents;

                this.upStreamOwner   = info.GetValue("UpStreamOwner", typeof(UnitOperation)) as UnitOperation;
                this.downStreamOwner = info.GetValue("DownStreamOwner", typeof(UnitOperation)) as UnitOperation;

                //this.specificVolume = (ProcessVarDouble)info.GetValue("SpecificVolume", typeof(ProcessVarDouble));
                //this.dynamicViscosity = info.GetValue("DynamicViscosity", typeof(ProcessVarDouble)) as ProcessVarDouble;
                //this.thermalConductivity = info.GetValue("ThermalConductivity", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.massFlowRate     = RecallStorableObject("MassFlowRate", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.volumeFlowRate   = RecallStorableObject("VolumeFlowRate", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.vaporFraction    = RecallStorableObject("VaporFraction", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.pressure         = RecallStorableObject("Pressure", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.temperature      = RecallStorableObject("Temperature", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.specificEnthalpy = RecallStorableObject("SpecificEnthalpy", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.specificHeat     = RecallStorableObject("SpecificHeat", typeof(ProcessVarDouble)) as ProcessVarDouble;
                this.density          = RecallStorableObject("Density", typeof(ProcessVarDouble)) as ProcessVarDouble;
            }
        }
Example #2
0
 public WaterStream(string name, MaterialComponents mComponents, UnitOperationSystem uoSys) : base(name, mComponents, uoSys)
 {
     InitializeVarListAndRegisterVars();
     density.State          = VarState.AlwaysCalculated;
     specificHeat.State     = VarState.AlwaysCalculated;
     specificEnthalpy.State = VarState.AlwaysCalculated;
 }
Example #3
0
        //public ProcessVarDouble SpecificHeatAbsDry {
        //   get { return specificHeatAbsDry; }
        //}
        #endregion


        //public DryingStream(DryingSystem dryingSystem) : base(dryingSystem) {
        //}

        //public DryingStream(string name, UnitOperation upStreamOwner, UnitOperation downStreamOwner, DryingSystem dryingSystem) : base(name, upStreamOwner, downStreamOwner, dryingSystem) {
        protected DryingStream(string name, MaterialComponents mComponents, UnitOperationSystem uoSys) : base(name, mComponents, uoSys)
        {
            massFlowRateDryBase     = new ProcessVarDouble(StringConstants.MASS_FLOW_RATE_DRY, PhysicalQuantity.MassFlowRate, VarState.Specified, this);
            moistureContentDryBase  = new ProcessVarDouble(StringConstants.MOISTURE_CONTENT_DRY, PhysicalQuantity.MoistureContent, VarState.Specified, this);
            moistureContentWetBase  = new ProcessVarDouble(StringConstants.MOISTURE_CONTENT_WET, PhysicalQuantity.MoistureContent, VarState.Specified, this);
            specificHeatDryBase     = new ProcessVarDouble(StringConstants.SPECIFIC_HEAT_DRY, PhysicalQuantity.SpecificHeat, VarState.AlwaysCalculated, this);
            specificEnthalpyDryBase = new ProcessVarDouble(StringConstants.SPECIFIC_ENTHALPY_DRY, PhysicalQuantity.SpecificHeat, VarState.Specified, this);
            //specificHeatAbsDry = new ProcessVarDouble(StringConstants.SPECIFIC_HEAT_ABS_DRY, PhysicalQuantity.SpecificHeat, VarState.Specified, this);
        }
Example #4
0
 protected ProcessStreamBase(string name, MaterialComponents mComponents, UnitOpSystem uoSys) : base(name, uoSys)
 {
     this.materialComponents = mComponents;
     massFlowRate            = new ProcessVarDouble(StringConstants.MASS_FLOW_RATE, PhysicalQuantity.MassFlowRate, VarState.Specified, this);
     volumeFlowRate          = new ProcessVarDouble(StringConstants.VOLUME_FLOW_RATE, PhysicalQuantity.VolumeFlowRate, VarState.Specified, this);
     vaporFraction           = new ProcessVarDouble(StringConstants.VAPOR_FRACTION, PhysicalQuantity.Fraction, VarState.Specified, this);
     pressure         = new ProcessVarDouble(StringConstants.PRESSURE, PhysicalQuantity.Pressure, VarState.Specified, this);
     temperature      = new ProcessVarDouble(StringConstants.TEMPERATURE, PhysicalQuantity.Temperature, VarState.Specified, this);
     specificEnthalpy = new ProcessVarDouble(StringConstants.SPECIFIC_ENTHALPY, PhysicalQuantity.SpecificEnergy, VarState.AlwaysCalculated, this);
     density          = new ProcessVarDouble(StringConstants.DENSITY, PhysicalQuantity.Density, VarState.Specified, this);
     specificHeat     = new ProcessVarDouble(StringConstants.SPECIFIC_HEAT, PhysicalQuantity.SpecificHeat, VarState.Specified, this);
     //specificVolume = new ProcessVarDouble(StringConstants.SPECIFIC_VOLUME, PhysicalQuantity.SpecificVolume, VarState.AlwaysCalculated, this);
     //dynamicViscosity = new ProcessVarDouble(StringConstants.DYNAMIC_VISCOSITY, PhysicalQuantity.DynamicViscosity, VarState.Specified, this);
     //thermalConductivity = new ProcessVarDouble(StringConstants.THERMAL_CONDUCTIVITY, PhysicalQuantity.ThermalConductivity, VarState.Specified, this);
 }
Example #5
0
 public DryingGasStream(string name, MaterialComponents mComponents, UnitOpSystem uoSys) : base(name, mComponents, uoSys)
 {
     temperature.Name             = StringConstants.DRY_BULB_TEMPERATURE;
     wetBulbTemperature           = new ProcessVarDouble(StringConstants.WET_BULB_TEMPERATURE, PhysicalQuantity.Temperature, VarState.Specified, this);
     dewPoint                     = new ProcessVarDouble(StringConstants.DEW_POINT, PhysicalQuantity.Temperature, VarState.Specified, this);
     moistureContentDryBase.Name  = StringConstants.HUMIDITY;
     relativeHumidity             = new ProcessVarDouble(StringConstants.RELATIVE_HUMIDITY, PhysicalQuantity.Fraction, VarState.Specified, this);
     humidVolume                  = new ProcessVarDouble(StringConstants.HUMID_VOLUME, PhysicalQuantity.SpecificVolume, VarState.AlwaysCalculated, this);
     specificHeatDryBase.Name     = StringConstants.HUMID_HEAT;
     specificEnthalpyDryBase.Name = StringConstants.HUMID_ENTHALPY;
     volumeFlowRate.Type          = PhysicalQuantity.VolumeRateFlowGases;
     density.State                = VarState.AlwaysCalculated;
     specificHeatDryBase.State    = VarState.AlwaysCalculated;
     vaporFraction.Value          = 1.0;
     InitializeVarListAndRegisterVars();
 }
Example #6
0
        public DryingMaterialStream(string name, MaterialComponents mComponents, MaterialStateType materialStateType, UnitOperationSystem uoSys)
            : base(name, mComponents, uoSys)
        {
            this.materialStateType = materialStateType;
            massConcentration      = new ProcessVarDouble(StringConstants.MASS_CONCENTRATION, PhysicalQuantity.MoistureContent, VarState.Specified, this);
            if (materialStateType == MaterialStateType.Liquid)
            {
                volumeFlowRate.Type = PhysicalQuantity.VolumeRateFlowLiquids;
            }
            else if (materialStateType == MaterialStateType.Solid)
            {
                pressure.Enabled          = false;
                vaporFraction.Enabled     = false;
                massConcentration.Enabled = false;
            }

            InitializeVarListAndRegisterVars();
        }
Example #7
0
 public SolidDryingMaterialStream(string name, MaterialComponents mComponents, UnitOperationSystem uoSys)
     : base(name, mComponents, MaterialStateType.Solid, uoSys)
 {
 }
Example #8
0
 public GenericFuelStream(string name, MaterialComponents mComponents, UnitOperationSystem uoSys) : base(name, mComponents, uoSys)
 {
     heatValue = new ProcessVarDouble(StringConstants.HEAT_VALUE, PhysicalQuantity.SpecificEnergy, VarState.Specified, this);
     InitializeVarListAndRegisterVars();
 }
Example #9
0
 public ProcessStream(string name, MaterialComponents mComponents, UnitOperationSystem uoSys) : base(name, mComponents, uoSys)
 {
     InitializeVarListAndRegisterVars();
 }
Example #10
0
 protected FuelStream(string name, MaterialComponents mComponents, UnitOperationSystem uoSys) : base(name, mComponents, uoSys)
 {
 }