Exemplo n.º 1
0
        private void ResponseToHarmonicIPCalculate()
        {
            if (VehicleDataNeedsToRecalculate)
            {
                if (ResponseToHarmonicInput == null)
                {
                    ResponseToHarmonicInput = new List <double>();
                }

                ResponseToHarmonicInput.Clear();

                //DateTime time = DateTime.Now;


                if (Force == 0.0 || ExcitationFrequencyHz == 0.0)
                {
                    foreach (double item in TimeIntervals)
                    {
                        double x = 0.0 * item;
                        ResponseToHarmonicInput.Add(x);
                    }
                }

                else
                {
                    foreach (double item in TimeIntervals)
                    {
                        double xOfTime = StaticDisplacement * TransferFunction * Math.Cos((ExcitationFrequencyRad * item) + Phy);
                        ResponseToHarmonicInput.Add(xOfTime);
                    }
                }
                // _tResponseToHarmonicIP = (DateTime.Now - time).TotalMilliseconds;
            }
        }
Exemplo n.º 2
0
        private void ResponseToHarmonicIPCalculate()
        {
            if (ResponseNeedsToRecalculate)
            {
                if (ResponseToHarmonicInput == null)
                {
                    ResponseToHarmonicInput = new List <double>();
                }

                ResponseToHarmonicInput.Clear();

                if (InputForce == 0.0 || ExcitationFrequencyHz == 0.0)
                {
                    foreach (double item in TimeIntervals)
                    {
                        ResponseToHarmonicInput.Add(0.0);
                    }
                }

                else
                {
                    foreach (double item in TimeIntervals)
                    {
                        double xOfTime = StaticDisplacement * TransferFunction * Math.Cos((ExcitationFrequencyRad * item) + Phy);
                        ResponseToHarmonicInput.Add(xOfTime);
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void ForcedVibrationDisplacementCalculate()
        {
            if (VehicleDataNeedsToRecalculate)
            {
                if (ResponseToHarmonicInput == null)
                {
                    ResponseToHarmonicInput = new List <double>();
                }

                ResponseToHarmonicInput.Clear();

                foreach (double item in TimeIntervals)
                {
                    double xOfTime = StaticDisplacement * TransferFunction * Math.Cos((ExcitationFrequencyRad * item) + Phy);
                    ResponseToHarmonicInput.Add(xOfTime);
                }
            }
        }