Exemplo n.º 1
0
        public void SingleBeamReturnsFrequency()
        {
            FloorVibrationBeamSingle bm = new FloorVibrationBeamSingle();
            double f_n             = bm.GetFundamentalFrequency(0.376);
            double refValue        = 5.77;
            double actualTolerance = EvaluateActualTolerance(f_n, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
        public static Dictionary <string, object> BeamFrequencySingle(double Delta)
        {
            //Default values
            double f = 0;


            //Calculation logic:
            FloorVibrationBeamSingle bm = new FloorVibrationBeamSingle();

            f = bm.GetFundamentalFrequency(Delta);

            return(new Dictionary <string, object>
            {
                { "f_n", f }
            });
        }