public static Dictionary <string, object> SeismicStoryForces(double T, double C_s, List <double> StoryElevationsFromBase, List <double> StoryWeights, string Code = "ASCE7-10")
        {
            //Default values
            List <double> StoryForces = new List <double>();


            //Calculation logic:
            CalcLog log = new CalcLog();
            SeismicLateralForceResistingStructure structure = new SeismicLateralForceResistingStructure(log);

            StoryForces = structure.CalculateSeismicLoads(T, C_s, StoryElevationsFromBase, StoryWeights);

            return(new Dictionary <string, object>
            {
                { "StoryForces", StoryForces }
            });
        }
Beispiel #2
0
        public static Dictionary <string, object> SeismicResponseCoefficient(double T, double S_DS, double S_D1, double T_L, double R, double I_e, double S_1, string Code = "ASCE7-10")
        {
            //Default values
            double C_s = 0;


            //Calculation logic:
            CalcLog log = new CalcLog();
            SeismicLateralForceResistingStructure structure = new SeismicLateralForceResistingStructure(log);

            C_s = structure.GetResponseCoefficientCs(T, S_DS, S_D1, T_L, R, I_e, S_1);

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