Example #1
0
        public C_STR___U(C_IFO objIFO, C_GEO___U objGeo, CCrSc objCrSc)
        {
            m_fSigma_N = objIFO.FN_Ed / objCrSc.m_fA;

            float fSigma_My_f = objIFO.FM_y_Ed / objCrSc.m_fI_y * objGeo.m_fh / 2.0f;
            float fSigma_My_w = objIFO.FM_y_Ed / objCrSc.m_fI_y * objGeo.m_fc_w / 2.0f;
            float fSigma_Mz_fA = objIFO.FM_z_Ed / objCrSc.m_fI_z * (objCrSc.m_fy_S - objGeo.m_ft_w - objGeo.m_fr);
            float fSigma_Mz_fB = objIFO.FM_z_Ed / objCrSc.m_fI_z * (objCrSc.m_fy_S - objGeo.m_fb);
            float fSigma_Mz_wa = objIFO.FM_z_Ed / objCrSc.m_fI_z * objCrSc.m_fy_S;
            float fSigma_Mz_wi = objIFO.FM_z_Ed / objCrSc.m_fI_z * (objCrSc.m_fy_S - objGeo.m_ft_w);

            // Flanges
            m_fSigma_fuA = m_fSigma_N - fSigma_My_f + fSigma_Mz_fA;
            m_fSigma_fuB = m_fSigma_N - fSigma_My_f + fSigma_Mz_fB;
            m_fSigma_fbA = m_fSigma_N + fSigma_My_f + fSigma_Mz_fA;
            m_fSigma_fbB = m_fSigma_N + fSigma_My_f + fSigma_Mz_fB;

            m_fSigma_fA = Math.Min(m_fSigma_fuA, m_fSigma_fbA);
            m_fSigma_fB = Math.Min(m_fSigma_fuB, m_fSigma_fbB);

            // Web
            m_fSigma_wA = m_fSigma_N - fSigma_My_w + Math.Min(fSigma_Mz_wa, fSigma_Mz_wi);
            m_fSigma_wB = m_fSigma_N + fSigma_My_w + Math.Min(fSigma_Mz_wa, fSigma_Mz_wi);

            // 5.5.2(9)
            m_fSigma_com_Ed = Math.Max(Math.Abs(Math.Min(m_fSigma_fA, m_fSigma_fB)), 0.0f);
        }
Example #2
0
        public C___U(C_GEO___U objGeo, C_MAT___U objMat, C_IFO objIFO, C_NAD objNAD, C_STR___U objStr)
        {
            // Table 5.2
            GetClassTab52_OUT(objStr.m_fSigma_fuA,
                            objStr.m_fSigma_fuB,
                            objGeo.m_fc_f,
                            objGeo.m_ft_f,
                            objMat.m_fEps_f,
                            m_fct_f,
                            m_fLambda_f_1,
                            m_fLambda_f_2,
                            m_fLambda_f_3,
                            m_iClass_fu,
                            objMat.BStainlessS);

            GetClassTab52_OUT(objStr.m_fSigma_fbA,
                            objStr.m_fSigma_fbB,
                            objGeo.m_fc_f,
                            objGeo.m_ft_f,
                            objMat.m_fEps_f,
                            m_fct_f,
                            m_fLambda_f_1,
                            m_fLambda_f_2,
                            m_fLambda_f_3,
                            m_iClass_fb,
                            objMat.BStainlessS);

            m_iClass_f = Math.Max(m_iClass_fu, m_iClass_fb);

            float fF_f = objGeo.m_fb * objGeo.m_ft_f * objMat.m_ff_y_f / objNAD.FGamma_M0;
            float fF_w = objGeo.m_fc_w * objGeo.m_ft_w * objMat.m_ff_y_w / objNAD.FGamma_M0;

            // Table 5.2
            GetClassTab52_INT(objStr.m_fSigma_wA,
                             objStr.m_fSigma_wB,
                             objStr.m_fSigma_N,
                             fF_f,
                             fF_w,
                             fF_f,
                             objIFO.FN_Ed,
                             objGeo.m_fc_w,
                             objGeo.m_ft_w,
                             objMat.m_ff_y_w / objNAD.FGamma_M0,
                             objMat.m_fEps_w,
                             m_iKlassif_Psi_Fix_Sigma_N,
                             m_bKlassif_Eps_Kl3_Sigma_com,
                             objStr.m_fSigma_com_Ed,
                             m_fct_w,
                             m_fAlpha_w,
                             m_fSigma_fyd_1,
                             m_fSigma_fyd_2,
                             m_fPsi_w,
                             m_fLambda_w_1,
                             m_fLambda_w_2,
                             m_fLambda_w_3,
                             m_iClass_w,
                             objMat.BStainlessS);

            m_iClass = Math.Max(m_iClass_f, m_iClass_w);
        }
Example #3
0
        public C_ADD___U(C_NAD objNAD, C_GEO___U objGeo, C_MAT___U objMat, CCrSc objCrSc, ECrScPrType1 eProd)
        {
            m_ft_V_z = objGeo.m_ft_w;            // (6.20)
            m_ft_V_y = objGeo.m_ft_f;

            m_fA_w = objCrSc.m_fA - 2f * objGeo.m_fb * objGeo.m_ft_f;
            if (eProd != ECrScPrType1.eCrSc_wld && eProd != ECrScPrType1.eCrSc_wldnorm)
              m_fA_w += (objGeo.m_ft_w + objGeo.m_fr) * objGeo.m_ft_f;

            m_fA_f = objCrSc.m_fA - m_fA_w;

            m_fN_pl = m_fA_f * objMat.m_ff_y_f + m_fA_w * objMat.m_ff_y_w;
            m_fN_u  = m_fA_f * objMat.m_ff_u_f + m_fA_w * objMat.m_ff_u_w;

            if (eProd != ECrScPrType1.eCrSc_wld && eProd != ECrScPrType1.eCrSc_wldnorm)
            m_fA_v_z = Math.Max(m_fA_v_z, objCrSc.m_fA - 2f * objGeo.m_fb * objGeo.m_ft_f + (objGeo.m_ft_w + objGeo.m_fr) * objGeo.m_ft_f); //6.2.6(3)a)

             // 6.2.8
            float rW_pl_y_w;
            if (eProd != ECrScPrType1.eCrSc_wld && eProd != ECrScPrType1.eCrSc_wldnorm)
              rW_pl_y_w = 2.0f * sqr(0.5f * objGeo.m_fh - 0.5f * objGeo.m_ft_f) * objGeo.m_ft_w / 4.0f +                // 6.2.6(3) b)
                    objGeo.m_fr * 0.5f * objGeo.m_ft_f * (0.5f * objGeo.m_fh - 0.75f * objGeo.m_ft_f) +
                    0.214602f * sqr(objGeo.m_fr) * (0.5f * objGeo.m_fh - objGeo.m_ft_f - 0.77663f * objGeo.m_fr);
            else
            rW_pl_y_w = sqr(objGeo.m_fh - 2.0f * objGeo.m_ft_f) * objGeo.m_ft_w / 4.0f;

            // 6.2.8
            float rW_pl_z_f = 2.0f * sqr(objGeo.m_fb) * objGeo.m_ft_f / 4.0f;

            float rW_pl_y_wh = sqr(objGeo.m_fh_w) * objGeo.m_ft_w / 4.0f;

            m_fM_pl_y = objCrSc.m_fW_pl_y * objMat.m_ff_y_f + rW_pl_y_wh * (objMat.m_ff_y_w - objMat.m_ff_y_f);

            m_fM_pl_z = objCrSc.m_fW_pl_z * objMat.Ff_y;

            if (objCrSc.m_fz_S == 0.0f)
            objCrSc.m_fz_S = objGeo.m_fh / 2.0f;

            // 6.3.2.3(1)
            if (eProd != ECrScPrType1.eCrSc_wld && eProd != ECrScPrType1.eCrSc_wldnorm)
            {
            m_fLambda_rel_LT_0 = objNAD.m_fLambda_rel_LT_0_IR;
            m_fBeta_LT = objNAD.m_fBeta_LT_IR;
            }
            else
            {
            m_fLambda_rel_LT_0 = objNAD.m_fLambda_rel_LT_0_IS;
            m_fBeta_LT = objNAD.m_fBeta_LT_IS;
            }

               // bDoppeltSymmQuerschnitt = FALSE;
        }
Example #4
0
        public C___U4(CCrSc objCrSc, C_GEO___U objGeo, C_IFO objIFO, C_STR___U objStr, C___U objC__U, C_MAT___U objMat, C_ADD___U objAdd)
        {
            float fA_eff_f,
              fz_eff_c_f,
              fy_eff_c_f,
              fI_eff_y_f,
              fI_eff_z_f;

            // Web
            float fz_eff_c,
              fy_eff_c;

            if (objC__U.m_iClass_f == 4)
            {
             // EN 1993-1-5, Table 4.2
                GetEff_OUT(objStr.m_fSigma_fuA,
                                    objStr.m_fSigma_fuB,
                                    objGeo.m_fc_f,
                                    objGeo.m_ft_f,
                                    objMat.m_fEps_f,
                                    fSigma_1_fu,
                                    fSigma_2_fu,
                                    fPsi_fu,
                                    fk_Sigma_fu,
                                    fLambda_rel_p_fu,
                                    fRho_fu,
                                    fb_eff_fu,
                                    fb_red_fu,
                                    fb_em_fu,
                                    objMat.BStainlessS);

            // EN 1993-1-5, Table 4.2
                GetEff_OUT(objStr.m_fSigma_fbA,
                                    objStr.m_fSigma_fbB,
                                    objGeo.m_fc_f,
                                    objGeo.m_ft_f,
                                    objMat.m_fEps_f,
                                    fSigma_1_fb,
                                    fSigma_2_fb,
                                    fPsi_fb,
                                    fk_Sigma_fb,
                                    fLambda_rel_p_fb,
                                    fRho_fb,
                                    fb_eff_fb,
                                    fb_red_fb,
                                    fb_em_fb,
                                    objMat.BStainlessS);

            fA_eff_f   = objCrSc.m_fA - (fb_red_fu + fb_red_fb) * objGeo.m_ft_f;

            fz_eff_c_f = (objCrSc.m_fA * objGeo.m_fh / 2.0f -
                          fb_red_fu * objGeo.m_ft_f * objGeo.m_ft_f / 2.0f  -
                          fb_red_fb * objGeo.m_ft_f * (objGeo.m_fh - objGeo.m_ft_f / 2.0f)
                         ) / fA_eff_f;

            fy_eff_c_f = (objCrSc.m_fA * objCrSc.m_fy_S -
                          fb_red_fu * objGeo.m_ft_f * (objGeo.m_fb - fb_em_fu) -
                          fb_red_fb * objGeo.m_ft_f * (objGeo.m_fb - fb_em_fb)
                          ) / fA_eff_f;

            fI_eff_y_f = objCrSc.m_fI_y +
                         objCrSc.m_fA * sqr(fz_eff_c_f - objGeo.m_fh / 2.0f) -
                         fb_red_fu * (float)Math.Pow(objGeo.m_ft_f, 3) / 12.0f -
                         fb_red_fu * objGeo.m_ft_f * sqr(fz_eff_c_f - objGeo.m_ft_f / 2.0f) -
                         fb_red_fb * (float)Math.Pow(objGeo.m_ft_f, 3) / 12.0f -
                         fb_red_fb * objGeo.m_ft_f * sqr(objGeo.m_fh - fz_eff_c_f - objGeo.m_ft_f / 2.0f);

            fI_eff_z_f = objCrSc.m_fI_z +
                         objCrSc.m_fA * sqr(fy_eff_c_f - objCrSc.m_fy_S) -
                         (float)Math.Pow(fb_red_fu, 3) * objGeo.m_ft_f / 12.0f -
                         fb_red_fu * objGeo.m_ft_f * sqr(objGeo.m_fb - fy_eff_c_f - fb_em_fu) -
                         (float)Math.Pow(fb_red_fb, 3) * objGeo.m_ft_f / 12.0f -
                         fb_red_fb * objGeo.m_ft_f * sqr(objGeo.m_fb - fy_eff_c_f - fb_em_fb);
              }
              else
              {
            fb_red_fu  = 0.0f;
            fb_red_fb  = 0.0f;

            fb_em_fu   = 0.0f;
            fb_em_fb   = 0.0f;

            fA_eff_f   = objCrSc.m_fA;

            fz_eff_c_f = objGeo.m_fh / 2.0f;
            fy_eff_c_f = objCrSc.m_fy_S;

            fI_eff_y_f = objCrSc.m_fI_y;
            fI_eff_z_f = objCrSc.m_fI_z;
              }

              if(objC__U.m_iClass_w == 4)
              {

            float fSigma_N     = objIFO.FN_Ed / fA_eff_f;
            float fSigma_My_wo = objIFO.FM_y_Ed / fI_eff_y_f * (fz_eff_c_f - objGeo.m_ft_f - objGeo.m_fr);
            float fSigma_My_wu = objIFO.FM_y_Ed / fI_eff_y_f * (objGeo.m_fh - fz_eff_c_f - objGeo.m_ft_f - objGeo.m_fr);
            float fSigma_Mz_wa = objIFO.FM_z_Ed / fI_eff_z_f *  fy_eff_c_f;
            float fSigma_Mz_wi = objIFO.FM_z_Ed / fI_eff_z_f * (fy_eff_c_f - objGeo.m_ft_w);

            objStr.m_fSigma_wA = fSigma_N - fSigma_My_wo + Math.Min(fSigma_Mz_wa, fSigma_Mz_wi);
            objStr.m_fSigma_wB = fSigma_N + fSigma_My_wu + Math.Min(fSigma_Mz_wa, fSigma_Mz_wi);

            // EN 1993-1-5, Table 4.1
            GetEff_INT(objStr.m_fSigma_wA,
                                     objStr.m_fSigma_wB,
                                     objGeo.m_fc_w,
                                     objGeo.m_ft_w,
                                     objMat.m_fEps_w,
                                     fSigma_1_w,
                                     fSigma_2_w,
                                     fPsi_w,
                                     fk_Sigma_w,
                                     fLambda_rel_p_w,
                                     fRho_w,
                                     fb_eff_w,
                                     fb_e1_w,
                                     fb_e2_w,
                                     fb_red_w,
                                     fb_em_w,
                                     objMat.BStainlessS);

            m_fA_eff = fA_eff_f - fb_red_w * objGeo.m_ft_w;

            fz_eff_c = (objCrSc.m_fA * objGeo.m_fh / 2.0f -
                        fb_red_fu * objGeo.m_ft_f * objGeo.m_ft_f / 2.0f  -
                        fb_red_fb * objGeo.m_ft_f * (objGeo.m_fh - objGeo.m_ft_f / 2.0f) -
                        fb_red_w  * objGeo.m_ft_w * (fb_em_w + objGeo.m_fr + objGeo.m_ft_f)
                       ) / m_fA_eff;

            fy_eff_c = (objCrSc.m_fA * objCrSc.m_fy_S -
                        fb_red_fu * objGeo.m_ft_f * (objGeo.m_fb - fb_em_fu) -
                        fb_red_fb * objGeo.m_ft_f * (objGeo.m_fb - fb_em_fb) -
                        fb_red_w  * objGeo.m_ft_w * objGeo.m_ft_w / 2.0f
                        ) / m_fA_eff;

            m_fI_eff_y = objCrSc.m_fI_y +
                       objCrSc.m_fA * sqr(fz_eff_c - objGeo.m_fh / 2.0f) -
                       fb_red_fu * (float)Math.Pow(objGeo.m_ft_f, 3) / 12.0f -
                       fb_red_fu * objGeo.m_ft_f * sqr(fz_eff_c - objGeo.m_ft_f / 2.0f) -
                       fb_red_fb * (float)Math.Pow(objGeo.m_ft_f, 3) / 12.0f -
                       fb_red_fb * objGeo.m_ft_f * sqr(objGeo.m_fh - fz_eff_c - objGeo.m_ft_f / 2.0f) -
                       (float)Math.Pow(fb_red_w, 3) * objGeo.m_ft_w / 12.0f -
                       fb_red_w * objGeo.m_ft_w * sqr(fz_eff_c - objGeo.m_ft_f - fb_em_w - objGeo.m_fr);

            m_fI_eff_z = objCrSc.m_fI_z +
                       objCrSc.m_fA * sqr(fy_eff_c - objCrSc.m_fy_S) -
                       (float)Math.Pow(fb_red_fu, 3) * objGeo.m_ft_f / 12.0f -
                       fb_red_fu * objGeo.m_ft_f * sqr(objGeo.m_fb - fy_eff_c - fb_em_fu) -
                       (float)Math.Pow(fb_red_fb, 3) * objGeo.m_ft_f / 12.0f -
                       fb_red_fb * objGeo.m_ft_f * sqr(objGeo.m_fb - fy_eff_c - fb_em_fb) -
                       (float)Math.Pow(objGeo.m_ft_w, 3) * fb_red_w / 12.0f -
                       objGeo.m_ft_w * fb_red_w * sqr(fy_eff_c - objGeo.m_ft_w / 2.0f);
              }
              else
              {
            fb_red_w = 0.0f;

            m_fA_eff   = fA_eff_f;

            fz_eff_c = fz_eff_c_f;
            fy_eff_c = fy_eff_c_f;

            m_fI_eff_y = fI_eff_y_f;
            m_fI_eff_z = fI_eff_z_f;
              }

               float      fA_f_eff  = objAdd.m_fA_f - (fb_red_fu + fb_red_fb) * objGeo.m_ft_f;

               float fA_w_eff = objAdd.m_fA_w - fb_red_w * objGeo.m_ft_w;

               m_fN_pl_eff = fA_f_eff * objMat.m_ff_y_f + fA_w_eff * objMat.m_ff_y_w;

              m_fe_Ny = fz_eff_c - objGeo.m_fh / 2.0f;
              m_fe_Nz = fy_eff_c - objCrSc.m_fy_S;

              m_fW_eff_y_min = m_fI_eff_y / Math.Max(fz_eff_c, objGeo.m_fh - fz_eff_c);
              m_fW_eff_z_min = m_fI_eff_z / Math.Max(fy_eff_c, objGeo.m_fb - Math.Min(fb_red_fu, fb_red_fb) - fy_eff_c);
        }
Example #5
0
        C_NAD m_objNAD = new C_NAD(); // doriesit konstruktor a naplnenie Mat

        #endregion Fields

        #region Constructors

        public CCalcul()
        {
            // Basic Cross-section Data and Classification
            // s niektorymi objektami potrebujem pracovat aj dalej, takze by to malo byt inak :-/
            // Mat jednu triedu, vytvarat jej objekt ako clensky v tejto triede a volat rozne konštruktory podla ECrScShType ???- zbytocne vela premennych - rozne typy maju rozne dáta

            switch (m_eCrScType)
            {
                case ECrScShType1.eCrScType_I: // I and H - section
                    {
                        C_GEO___I objGeo = new C_GEO___I(m_eSym, m_eProd);
                        C_MAT___I objMat = new C_MAT___I(objGeo, m_eSym);
                        C_ADD___I objAdd = new C_ADD___I(m_objNAD, objGeo, objMat, m_objCrSc, m_eSym, m_eProd);
                        C_STR___I objStr = new C_STR___I(m_objIFO, objGeo, m_objCrSc, m_eSym);
                        C___I objClass = new C___I(objGeo, objMat,m_objIFO,m_objNAD,objStr,m_eSym,m_eProd);

                        if (objClass.m_iClass == 4)
                        {
                            C___I4 objC___I4 = new C___I4(m_objCrSc, objGeo, m_objIFO, objStr, objClass, objMat, objAdd, m_eSym);
                        }

                        break;
                    }
                case ECrScShType1.eCrScType_C:  // C and U (channel) - section
                    {
                        C_GEO___U objGeo = new C_GEO___U(m_eProd);
                        C_MAT___U objMat = new C_MAT___U(objGeo, m_eSym);
                        C_ADD___U objAdd = new C_ADD___U(m_objNAD, objGeo, objMat, m_objCrSc, m_eProd);
                        C_STR___U objStr = new C_STR___U(m_objIFO, objGeo, m_objCrSc);
                        C___U objClass = new C___U(objGeo, objMat, m_objIFO, m_objNAD, objStr);

                        if (objClass.m_iClass == 4)
                        {
                            C___U4 objC___U4 = new C___U4(m_objCrSc, objGeo, m_objIFO, objStr, objClass, objMat, objAdd);
                        }

                        break;
                    }
                case ECrScShType1.eCrScType_L:   // L (angle) - section , equal and unequal
                    {
                        C_GEO___L objGeo = new C_GEO___L(m_eSym, m_eProd);
                        C_MAT___L objMat = new C_MAT___L(objGeo, m_eSym);
                        C_ADD___L objAdd = new C_ADD___L(m_objNAD, objGeo, objMat, m_objCrSc, m_eSym, m_eProd);
                        C_STR___L objStr = new C_STR___L(m_objIFO, objGeo, m_objCrSc, m_eSym);
                        C___L objClass = new C___L(objGeo, objMat, objStr);

                        if (objClass.m_iClass == 4)
                        {
                            C___L4 objC___L4 = new C___L4(m_objCrSc, objGeo, m_objIFO, objStr, objClass, objMat, objAdd, m_eSym);
                        }

                        break;
                    }
                case ECrScShType1.eCrScType_T:   // T - section
                    {
                        /*
                        C_GEO___T objGeo = new C_GEO___I(m_eSym, m_eProd);
                        C_MAT___T objMat = new C_MAT___I(objGeo, m_eSym);
                        C_ADD___I objAdd = new C_ADD___I(m_objNAD, objGeo, objMat, m_objCrSc, m_eSym, m_eProd);
                        C_STR___I objStr = new C_STR___I(m_objIFO, objGeo, m_objCrSc, m_eSym);
                        C___I objC___I = new C___I(objGeo, objMat, m_objIFO, m_objNAD, objStr, m_eSym, m_eProd);

                        if (objC___I.m_iClass == 4)
                        {
                            C___I4 objC___I4 = new C___I4(m_objCrSc, objGeo, m_objIFO, objStr, objC___I, objMat, objAdd, m_eSym);
                        }
                        */

                        break;
                    }
                case ECrScShType1.eCrScType_HL:   // HoLLow / box - section, hollow - section (square and rectangular)
                    {
                        C_GEO__HL objGeo = new C_GEO__HL(m_eProd);
                        C_MAT__HL objMat = new C_MAT__HL(objGeo, m_eProd);
                        C_ADD__HL objAdd = new C_ADD__HL(m_objNAD, objGeo, objMat, m_objCrSc, m_eProd);
                        C_STR__HL objStr = new C_STR__HL(m_objIFO, objGeo, m_objCrSc, m_eProd);
                        C__HL objClass = new C__HL(objGeo, objMat, m_objIFO, m_objNAD, objStr, m_eSym, m_eProd);

                        if (objClass.m_iClass == 4)
                        {
                            C__HL4 objC__HL4 = new C__HL4(m_objCrSc, objGeo, m_objIFO, objStr, objClass, objMat, objAdd, m_eProd);
                        }

                        break;
                    }
                case ECrScShType1.eCrScType_FB:   // Flat Bar
                    {
                        /*
                        C_GEO___I objGeo = new C_GEO___I(m_eSym, m_eProd);
                        C_MAT___I objMat = new C_MAT___I(objGeo, m_eSym);
                        C_ADD___I objAdd = new C_ADD___I(m_objNAD, objGeo, objMat, m_objCrSc, m_eSym, m_eProd);
                        C_STR___I objStr = new C_STR___I(m_objIFO, objGeo, m_objCrSc, m_eSym);
                        C___I objC___I = new C___I(objGeo, objMat, m_objIFO, m_objNAD, objStr, m_eSym, m_eProd);

                        if (objC___I.m_iClass == 4)
                        {
                            C___I4 objC___I4 = new C___I4(m_objCrSc, objGeo, m_objIFO, objStr, objC___I, objMat, objAdd, m_eSym);
                        }
                         */
                        break;
                    }
                case ECrScShType1.eCrScType_RB:   // Round Bar
                    {
                        /*
                        C_GEO___I objGeo = new C_GEO___I(m_eSym, m_eProd);
                        C_MAT___I objMat = new C_MAT___I(objGeo, m_eSym);
                        C_ADD___I objAdd = new C_ADD___I(m_objNAD, objGeo, objMat, m_objCrSc, m_eSym, m_eProd);
                        C_STR___I objStr = new C_STR___I(m_objIFO, objGeo, m_objCrSc, m_eSym);
                        C___I objC___I = new C___I(objGeo, objMat, m_objIFO, m_objNAD, objStr, m_eSym, m_eProd);

                        if (objC___I.m_iClass == 4)
                        {
                            C___I4 objC___I4 = new C___I4(m_objCrSc, objGeo, m_objIFO, objStr, objC___I, objMat, objAdd, m_eSym);
                        }*/

                        break;
                    }
                case ECrScShType1.eCrScType_TU:   // TUbe
                    {
                        C_GEO__TU objGeo = new C_GEO__TU(m_eProd);
                        C_MAT__TU objMat = new C_MAT__TU(objGeo);
                        C_ADD__TU objAdd = new C_ADD__TU(m_objNAD, objGeo, objMat, m_objCrSc, m_eProd);
                        C_STR__TU objStr = new C_STR__TU(m_objIFO, objGeo, m_objCrSc);
                        C__TU objC__TU = new C__TU(objGeo, objMat, m_objIFO, m_objNAD, objStr);

                        if (objC__TU.m_iClass == 4)
                        {
                          //Error
                        }

                        break;
                    }
                default:
                    {

                        break;
                    }
            }

            // Cross-section Design

            // Stability Design

            // Nasleduje if / else pre urcenie spravneho posudku ktory sa ma vytvorit
            // objekty CH_10000 - CH_90000
        }
Example #6
0
        public C_MAT___U(C_GEO___U objGeo, ECrScSymmetry1 eSym)
        {
            // Flange / Flanges
            if (eSym == ECrScSymmetry1.eMS)
            {
                m_ff_y_f = GetfykForT(objGeo.m_ft_f);
                m_ff_u_f = GetfykForT(objGeo.m_ft_f);

                if (m_ff_y_f <= 0.0f || m_ff_u_f <= 0.0f)
                {
                    // Exception
                    //return FALSE;

                    //continue;
                }

                m_ff_y_fu = m_ff_y_fb = m_ff_y_f;
                m_ff_u_fu = m_ff_u_fb = m_ff_u_f;

                m_fEps_f = GetEpsForF(m_ff_y_f);
                m_fEps_fu = m_fEps_fb = m_fEps_f;
            }
            else
            {
                // Upper Flange
                m_ff_y_fu = GetfykForT(objGeo.m_ft_fu);
                m_ff_u_fu = GetfukForT(objGeo.m_ft_fu);

                if (m_ff_y_fu <= 0.0f || m_ff_u_fu <= 0.0f)
                {
                    // Exception
                    //return FALSE;

                    //continue;
                }

                m_fEps_fu = GetEpsForF(m_ff_y_fu);

                // Bottom Flange
                m_ff_y_fb = GetfykForT(objGeo.m_ft_fb);
                m_ff_u_fb = GetfukForT(objGeo.m_ft_fb);

                if (m_ff_y_fb <= 0.0f || m_ff_u_fb <= 0.0f)
                {
                    // Exception
                    //return FALSE;

                    //continue;
                }

                m_fEps_fb = GetEpsForF(m_ff_y_fb);

                // Minimum for flanges
                m_ff_y_f = Math.Min(m_ff_y_fu, m_ff_y_fb);
                m_ff_u_f = Math.Min(m_ff_u_fu, m_ff_u_fb);

                m_fEps_f = GetEpsForF(m_ff_y_f);
            }

            // Web
            m_ff_y_w = GetfykForT(objGeo.m_ft_w);
            m_ff_u_w = GetfukForT(objGeo.m_ft_w);

            if (m_ff_y_w <= 0.0f || m_ff_u_w <= 0.0f)
            {
                // Exception
                //return FALSE;

                //continue;
            }

            m_fEps_w = GetEpsForF(m_ff_y_w);

            // Main Material Parameters - minimum for all parts
            Ff_y = Math.Min(m_ff_y_f, m_ff_y_w);
            Ff_u = Math.Min(m_ff_u_f, m_ff_u_w);
            FEps = GetEpsForF();
        }