Exemple #1
0
        /// <summary>
        /// Method to initialize all the results arrays. Should be called after adding all results cases
        /// </summary>
        public void Init()
        {
            int i;
            int numJoints = Model.Instance.JointList.Count;
            int numLines  = Model.Instance.LineList.Count;
            int numRC     = resultsCases.Count;

            paintScaleFactorTranslation = new float[numRC];

            assembledJointMasses = new float[numJoints, 6];

            modalLPR     = new Dictionary <string, List <ModalLPRRow> >();
            modalPMR     = new float[numRC][];
            modalPF      = new float[numRC][];
            modalPeriods = new float[numRC][];

            responseSpectrumMI = null;

            jointDisplacements = new float[numRC][, ];
            for (i = 0; i < numRC; i++)
            {
                jointDisplacements[i] = new float[numJoints, 6];
            }

            jointReactions = new float[numRC][, ];
            for (i = 0; i < numRC; i++)
            {
                jointReactions[i] = new float[numJoints, 6];
            }

            jointAccelerations = new float[numRC][, ];
            for (i = 0; i < numRC; i++)
            {
                jointAccelerations[i] = new float[numJoints, 6];
            }

            jointVelocities = new float[numRC][, ];
            for (i = 0; i < numRC; i++)
            {
                jointVelocities[i] = new float[numJoints, 6];
            }

            elementJointForces = new float[numRC][, , ];
            for (i = 0; i < numRC; i++)
            {
                elementJointForces[i] = new float[numLines, 2, 6];
            }

            baseReactions = new float[numRC][];
            for (i = 0; i < numRC; i++)
            {
                baseReactions[i] = new float[18];
            }

            //// Design data
            //designAluminium;
            //designColdFormed

            designSteelSummary = new SteelDesignSummary[numLines];
            for (i = 0; i < numLines; i++)
            {
                designSteelSummary[i] = new SteelDesignSummary();
            }
            designSteelPMMDetails = new SteelDesignPMMDetails[numLines];
            for (i = 0; i < numLines; i++)
            {
                designSteelPMMDetails[i] = new SteelDesignPMMDetails();
            }
            designSteelShearDetails = new SteelDesignShearDetails[numLines];
            for (i = 0; i < numLines; i++)
            {
                designSteelShearDetails[i] = new SteelDesignShearDetails();
            }

            designConcreteColumn = new ConcreteColumnDesign[numLines];
            for (i = 0; i < numLines; i++)
            {
                designConcreteColumn[i] = new ConcreteColumnDesign();
            }
            designConcreteBeam = new ConcreteBeamDesign[numLines];
            for (i = 0; i < numLines; i++)
            {
                designConcreteBeam[i] = new ConcreteBeamDesign();
            }
        }
Exemple #2
0
        /// <summary>
        /// Method to initialize all the results arrays. Should be called after adding all results cases
        /// </summary>
        public void Init()
        {
            int i;
            int numJoints = Model.Instance.JointList.Count;
            int numLines = Model.Instance.LineList.Count;
            int numRC = resultsCases.Count;

            paintScaleFactorTranslation = new float[numRC];

            assembledJointMasses = new float[numJoints, 6];

            modalLPR = new Dictionary<string, List<ModalLPRRow>>();
            modalPMR = new float[numRC][];
            modalPF = new float[numRC][];
            modalPeriods = new float[numRC][];

            responseSpectrumMI = null;

            jointDisplacements = new float[numRC][,];
            for (i = 0; i < numRC; i++)
                jointDisplacements[i] = new float[numJoints, 6];

            jointReactions = new float[numRC][,];
            for (i = 0; i < numRC; i++)
                jointReactions[i] = new float[numJoints, 6];

            jointAccelerations = new float[numRC][,];
            for (i = 0; i < numRC; i++)
                jointAccelerations[i] = new float[numJoints, 6];

            jointVelocities = new float[numRC][,];
            for (i = 0; i < numRC; i++)
                jointVelocities[i] = new float[numJoints, 6];

            elementJointForces = new float[numRC][,,];
            for (i = 0; i < numRC; i++)
                elementJointForces[i] = new float[numLines, 2, 6];

            baseReactions = new float[numRC][];
            for (i = 0; i < numRC; i++)
                baseReactions[i] = new float[18];

            //// Design data
            //designAluminium;
            //designColdFormed

            designSteelSummary = new SteelDesignSummary[numLines];
            for (i = 0; i < numLines; i++)
                designSteelSummary[i] = new SteelDesignSummary();
            designSteelPMMDetails = new SteelDesignPMMDetails[numLines];
            for (i = 0; i < numLines; i++)
                designSteelPMMDetails[i] = new SteelDesignPMMDetails();
            designSteelShearDetails = new SteelDesignShearDetails[numLines];
            for (i = 0; i < numLines; i++)
                designSteelShearDetails[i] = new SteelDesignShearDetails();

            designConcreteColumn = new ConcreteColumnDesign[numLines];
            for (i = 0; i < numLines; i++)
                designConcreteColumn[i] = new ConcreteColumnDesign();
            designConcreteBeam = new ConcreteBeamDesign[numLines];
            for (i = 0; i < numLines; i++)
                designConcreteBeam[i] = new ConcreteBeamDesign();
        }