Example #1
0
        /// <summary>
        /// This function retrieves coupled spring stiffness assignments for a point element;
        /// that is, it retrieves the spring matrix of 21 stiffness values for the point element.
        /// The spring stiffnesses reported are the sum of all springs assigned to the point element either directly or indirectly through line, area and solid spring assignments.
        /// The spring stiffness values are reported in the point local coordinate system.
        /// </summary>
        /// <param name="name">The name of an existing point element.</param>
        /// <param name="stiffnesses">Spring stiffness values for each coupled degree of freedom.</param>
        /// <exception cref="CSiException"></exception>
        public void GetSpringCoupled(string name,
                                     ref StiffnessCoupled stiffnesses)
        {
            double[] csiStiffnesses = new double[0];

            _callCode = _sapModel.PointElm.GetSpringCoupled(name, ref csiStiffnesses);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            stiffnesses.FromArray(csiStiffnesses);
        }
Example #2
0
        /// <summary>
        /// Returns coupled spring stiffness assignments for a point element;
        /// that is, it retrieves the spring matrix of 21 stiffness values for the point element.
        /// The spring stiffnesses reported are the sum of all springs assigned to the point element either directly or indirectly through line, area and solid spring assignments.
        /// The spring stiffness values are reported in the point local coordinate system.
        /// </summary>
        /// <param name="name">The name of an existing point element.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public StiffnessCoupled GetSpringCoupled(string name)
        {
            double[] csiStiffnesses = new double[0];

            _callCode = _sapModel.PointElm.GetSpringCoupled(name, ref csiStiffnesses);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            StiffnessCoupled stiffnesses = new StiffnessCoupled();

            stiffnesses.FromArray(csiStiffnesses);
            return(stiffnesses);
        }