Beispiel #1
0
        private void sampleCorbel()
        {
            Corbel Corbel1 = new Corbel("testi");

            Corbel1.Fck  = 30 * Math.Pow(10, 6);
            Corbel1.Fyk  = 500 * Math.Pow(10, 6);
            Corbel1.Hc   = 0.59;
            Corbel1.B    = 0.28;
            Corbel1.Cc   = 0.035;
            Corbel1.Ac   = 0.25;
            Corbel1.A5   = 0.25;
            Corbel1.Hn   = 0.01;
            Corbel1.Fcd  = Corbel1.Fck / Corbel1.Gammac * Corbel1.Acc;
            Corbel1.Fyd  = Corbel1.Fyk / Corbel1.Gammas;
            Corbel1.Fii1 = 0.012;
            Corbel1.N    = 6;


            Corbel1.createGraph();



            corbelList.Add(Corbel1);
            listBoxCorbels.Items.Add(Corbel1.Name);
            currentCorbel = Corbel1;
            //currentCorbel.loadCases.Add(new LoadCase(10000, 100000, currentCorbel));
            upgradeChart();


            Corbel corbel2 = new Corbel("testi2");

            corbelList.Add(corbel2);
            listBoxCorbels.Items.Add(corbel2.Name);
        }
Beispiel #2
0
 public LoadCase(double f_ed, double h_ed, Corbel cb, string name)
 {
     _cb  = cb;
     F_Ed = f_ed;
     H_Ed = h_ed;
     Name = name;
     CalcUtil();
 }
Beispiel #3
0
 private void listBoxCorbels_SelectedIndexChanged(object sender, EventArgs e)
 {
     currentCorbel = corbelList.Find(x => x.Name == (string)listBoxCorbels.SelectedItem);
     getFields();
     //updates the geometry chart if all values are defined
     updateGeometryChart();
     updateGridview();
 }
Beispiel #4
0
        //Create new corbel
        private void buttonNewCorbel_Click(object sender, EventArgs e)
        {
            string name      = Prompt.ShowDialog("Give the name of the corbel", "New Corbel");
            Corbel newCorbel = new Corbel(name);

            corbelList.Add(newCorbel);
            listBoxCorbels.Items.Add(newCorbel.Name);
        }
 public void fillForm(Corbel corbel, LoadCase lc)
 {
     labelfckv.Text     = numToString(corbel.Fck, units.MPa, 1);
     labelgammacv.Text  = numToString(corbel.Gammac, units.none, 2);
     labelaccv.Text     = numToString(corbel.acc, units.none, 2);
     labelfcdv.Text     = numToString(corbel.Fcd, units.MPa, 1);
     labelgammasv.Text  = numToString(corbel.Gammas, units.none, 2);
     labelfykv.Text     = numToString(corbel.Fyk, units.MPa, 1);
     labelfydv.Text     = numToString(corbel.Fyd, units.MPa, 1);
     labelasv.Text      = numToString(corbel.SteelArea, units.mm2, 0);
     labelfcd1v.Text    = numToString(lc.fcd1, units.MPa, 1);
     labelx1v.Text      = numToString(lc.x1, units.mm, 0);
     labelcv.Text       = numToString(lc.c, units.mm, 0);
     labeldv.Text       = numToString(lc.d, units.mm, 0);
     labelh1v.Text      = numToString(lc.h1, units.mm, 0);
     labelmedsv.Text    = numToString(lc.M_Eds, units.kNm, 1);
     labela0v.Text      = numToString(lc.a0, units.mm, 0);
     labelzv.Text       = numToString(lc.z, units.mm, 0);
     labela4v.Text      = numToString(lc.a4, units.mm, 0);
     labelfc0v.Text     = numToString(lc.Fc0, units.kN, 1);
     labelsigmac0v.Text = numToString(lc.sigmac0, units.MPa, 1);
     labelkac1v.Text    = numToString(lc.KA_c1, units.none, 2);
     labelanglev.Text   = numToString(lc.angle, units.none, 1);
     labelfcv.Text      = numToString(lc.Fc, units.kN, 1);
     labelfcd2v.Text    = numToString(lc.fcd2, units.MPa, 1);
     labelsigmac5v.Text = numToString(lc.sigmac5, units.MPa, 1);
     labelkac2v.Text    = numToString(lc.KA_c2, units.none, 2);
     labeluv.Text       = numToString(lc.u, units.mm, 1);
     labela2v.Text      = numToString(lc.a2, units.mm, 0);
     labelsigmac4v.Text = numToString(lc.sigmac4, units.MPa, 1);
     labelkac3v.Text    = numToString(lc.KA_c3, units.none, 2);
     labelftv.Text      = numToString(lc.F_t, units.kN, 1);
     labelkacv.Text     = numToString(lc.KA_c, units.none, 2);
     labelasvaadv.Text  = numToString(lc.A_svaad, units.mm2, 0);
     labelkasv.Text     = numToString(lc.KA_s, units.none, 2);
 }