Beispiel #1
0
        //Gets all groups in model (must be done manually for now)
        public object GetGroups(ref ETABS2013.cSapModel sapModel)
        {
            //Not yet implemented
            int ret         = 0;
            int NumberNames = 0;

            string[] GroupNames = new string[99];
            ret = sapModel.GroupDef.GetNameList(ref NumberNames, ref GroupNames);
            return(GroupNames);
        }
Beispiel #2
0
        //Extracts analysis results for object
        public object AnalysisResults(ref ETABS2013.cSapModel sapModel, ref string objectName)
        {
            int ret = 0;

            //Define all output arrays
            ETABS2013.eItemTypeElm ItemTypeElm = new ETABS2013.eItemTypeElm();
            int NumberResults = 0;

            string[] obj       = new string[100];
            string[] elm       = new string[100];
            string[] PointElm  = new string[100];
            string[] LoadCase  = new string[100];
            string[] StepType  = new string[100];
            double[] StepNum   = new double[100];
            double[] s11top    = new double[100];
            double[] s22top    = new double[100];
            double[] s12top    = new double[100];
            double[] smaxtop   = new double[100];
            double[] smintop   = new double[100];
            double[] sangletop = new double[100];
            double[] svmtop    = new double[100];
            double[] s11bot    = new double[100];
            double[] s22bot    = new double[100];
            double[] s12bot    = new double[100];
            double[] smaxbot   = new double[100];
            double[] sminbot   = new double[100];
            double[] sanglebot = new double[100];
            double[] svmbot    = new double[100];
            double[] s13avg    = new double[100];
            double[] s23avg    = new double[100];
            double[] smaxavg   = new double[100];
            double[] sangleavg = new double[100];
            double[] U1        = new double[100];
            double[] U2        = new double[100];
            double[] U3        = new double[100];
            double[] R1        = new double[100];
            double[] R2        = new double[100];
            double[] R3        = new double[100];
            //Gets the analysis results
            ret = sapModel.Results.AreaStressShell(objectName, ItemTypeElm, ref NumberResults, ref obj, ref elm, ref PointElm, ref LoadCase, ref StepType, ref StepNum, ref s11top,
                                                   ref s22top, ref s12top, ref smaxtop, ref smintop, ref sangletop, ref svmtop, ref s11bot, ref s22bot, ref s12bot, ref smaxbot,
                                                   ref sminbot, ref sanglebot, ref svmbot, ref s13avg, ref s23avg, ref smaxavg, ref sangleavg);

            //What are we interested in here? Any calculations? (s22top is the stress in global z-direction, positive values indicate tension)
            return(s22top);
        }