public Stream(string _name, double _Supply, double _Target, double _Duty, ExchangerType _exchangerType) { name = _name; Supply = _Supply; Target = _Target; Duty = _Duty; exchangerType = _exchangerType; }
public NormalStream(string _name, double _Supply, double _Target, double _Duty, ExchangerType _exchangerType, string _utility) : base(_name, _Supply, _Target, _Duty, _exchangerType) { name = _name; Supply = _Supply; Target = _Target; Duty = _Duty; exchangerType = _exchangerType; utility = _utility; }
public Stream(string _name, double _SupplyTemp, double _TargetTemp, double _Duty, double _m, double _Cp, int _Units, ExchangerType _exchangerType) { name = _name; SupplyTemp = _SupplyTemp; TargetTemp = _TargetTemp; Duty = _Duty; mass = _m; Cp = _Cp; Units = _Units; exchangerType = _exchangerType; }
public void SetExchangerType(ExchangerType type) { if (type == ExchangerType.ShellAndTube) { this.comboBoxExchangerType.SelectedIndex = INDEX_SHELL_AND_TUBE; } else if (type == ExchangerType.SimpleGeneric) { this.comboBoxExchangerType.SelectedIndex = INDEX_SIMPLE_GENERIC; } else if (type == ExchangerType.PlateAndFrame) { this.comboBoxExchangerType.SelectedIndex = INDEX_PLATE_AND_FRAME; } }
public ColdStream(string _name, double _SupplyTemp, double _TargetTemp, double _Duty, ExchangerType _exchangerType, string _utility) : base(_name, _SupplyTemp, _TargetTemp, _Duty, _exchangerType, _utility) { }
public coldStream(string _name, double _ApproachTemp, double _SupplyTemp, double _TargetTemp, double _Duty, double _m, double _Cp, int _Units, ExchangerType _utilityType, string _utility) : base(_name, _ApproachTemp, _SupplyTemp, _TargetTemp, _Duty, _m, _Cp, _Units, _utilityType, _utility) { intervalSupply = SupplyTemp + (_ApproachTemp / 2); intervalTarget = TargetTemp + (_ApproachTemp / 2); if (Duty == -1) { Duty = (mass * Cp * (TargetTemp - SupplyTemp)); MCp = mass * Cp; } else { MCp = Duty / (TargetTemp - SupplyTemp); } }
public NormalStream(string _name, double _ApproachTemp, double _SupplyTemp, double _TargetTemp, double _Duty, double _m, double _Cp, int _Units, ExchangerType _exchangerType, string _utility) : base(_name, _SupplyTemp, _TargetTemp, _Duty, _m, _Cp, _Units, _exchangerType) { utility = _utility; }