Example #1
0
        public LoadingLimit(double[] perUnitValues, SubstationTransformer xfrmr, double threshold, double t)
        {
            // Store the values of the array, transformer characerstics and the threshold values
            this.perUnitValues = perUnitValues;
            this.xfrmr         = xfrmr;
            this.threshold     = threshold;
            this.t             = t;

            this.maxPerUnit      = perUnitValues.Max();
            this.maxPerUnitIndex = Array.IndexOf(perUnitValues, maxPerUnit);

            calculateKRMS();

            // Sets the array lengths for each array
            ultimateTopOil  = new double[perUnitValues.Length + 1];
            hotSpotTemp     = new double[perUnitValues.Length];
            topOilTemp      = new double[perUnitValues.Length];
            hottestSpotTemp = new double[perUnitValues.Length];
            tauTO           = new double[perUnitValues.Length];
            Faa             = new double[perUnitValues.Length];
            Aging_hour      = new double[perUnitValues.Length];
            Cum_Aging_hour  = new double[perUnitValues.Length];
            LossOfLifeHour  = new double[perUnitValues.Length];


            // Calculate Information:
            calculateInfo();
        }
Example #2
0
        public LongTermLoadingLimit(double[] perUnitValues, SubstationTransformer xfrmr)
        {
            this.perUnitValues = perUnitValues;
            this.xfrmr         = xfrmr;

            calculateKRMS();

            ultimateTopOil  = new double[perUnitValues.Length];
            hotSpotTemp     = new double[perUnitValues.Length];
            topOilTemp      = new double[perUnitValues.Length];
            hottestSpotTemp = new double[perUnitValues.Length];

            // Check to see if we need to calculate tauTO or if n = 1 the tauTO = tauTR
            calculateTauTO();

            calculateUltimateTopOil();

            calculateTopOilTemp();
            calculateHotSpotTemp();
            calculateHottestSpotTemp();
        }
Example #3
0
        private void setXfrmr()
        {
            this.xfrmr = new SubstationTransformer(subnameBox.Text, Convert.ToDouble(mvaBox.Text), Convert.ToDouble(ambientBox.Text));

            int coolingMode = -1;

            coolingMode = getCoolValue();

            // fill Susbtation transformer parameters
            this.xfrmr.fillMoreInfo(coolingMode, Convert.ToDouble(deltaThetaHS_RBox.Text), Convert.ToDouble(deltaThetaTORBox.Text), Convert.ToDouble(ratioBox.Text));

            // Check to see if TauBox is empty
            if (!string.IsNullOrWhiteSpace(tauBox.Text))
            {
                this.xfrmr.setTauTO_R(Convert.ToDouble(tauBox.Text));
            }
            else
            {
                this.xfrmr.fillMoreInfoTwo(Convert.ToDouble(coilWeightBox.Text),
                                           Convert.ToDouble(tankWeightBox.Text), Convert.ToDouble(oilVolumeBox.Text), Convert.ToDouble(totalLossBox.Text));
            }

            this.xfrmr.setTotalLife(this.xfrmrLife);
        }