Ejemplo n.º 1
0
        /// <summary>
        /// Add combinations to the IDEA open model
        /// </summary>
        /// <param name="model">OpenModel</param>
        private static void AddCombinationsToIOM(OpenModel model)
        {
            // create first combination input
            CombiInputEC CI1 = new CombiInputEC();

            CI1.Id                   = model.GetMaxId(CI1) + 1;
            CI1.Name                 = "Co.#1";
            CI1.Description          = "SelfWeight + PernamentLoading + LiveLoad";
            CI1.TypeCombiEC          = TypeOfCombiEC.ULS;
            CI1.TypeCalculationCombi = TypeCalculationCombiEC.Linear;

            CombiItem item = new CombiItem();

            item.Id       = 1;
            item.Coeff    = 1;
            item.LoadCase = new ReferenceElement(model.LoadCase.FirstOrDefault(l => l.Name == "SelfWeight"));
            CI1.Items.Add(item);

            item          = new CombiItem();
            item.Id       = 2;
            item.Coeff    = 1;
            item.LoadCase = new ReferenceElement(model.LoadCase.FirstOrDefault(l => l.Name == "PernamentLoading"));
            CI1.Items.Add(item);

            item          = new CombiItem();
            item.Id       = 3;
            item.Coeff    = 1;
            item.LoadCase = new ReferenceElement(model.LoadCase.FirstOrDefault(l => l.Name == "LiveLoad"));
            CI1.Items.Add(item);

            model.AddObject(CI1);

            // create second combination input
            CombiInputEC CI2 = new CombiInputEC();

            CI2.Id                   = model.GetMaxId(CI2) + 1;
            CI2.Name                 = "Co.#2";
            CI2.Description          = "SelfWeight";
            CI2.TypeCombiEC          = TypeOfCombiEC.ULS;
            CI2.TypeCalculationCombi = TypeCalculationCombiEC.Linear;

            item          = new CombiItem();
            item.Id       = 1;
            item.Coeff    = 1;
            item.LoadCase = new ReferenceElement(model.LoadCase.FirstOrDefault(l => l.Name == "SelfWeight"));
            CI2.Items.Add(item);

            model.AddObject(CI2);
        }
Ejemplo n.º 2
0
        private void AddCombinationToOpenModel()
        {
            CombiInputEC combi = new CombiInputEC();

            combi.Name                 = "CO1";
            combi.TypeCombiEC          = TypeOfCombiEC.ULS;
            combi.TypeCalculationCombi = TypeCalculationCombiEC.Linear;
            combi.Items                = new List <CombiItem>();
            CombiItem it = new CombiItem();

            it.Id       = 1;
            it.LoadCase = new ReferenceElement(openStructModel.LoadCase.First());
            it.Coeff    = 1.0;
            combi.Items.Add(it);
            openStructModel.AddObject(combi);
        }
Ejemplo n.º 3
0
        private void AddLoadCaseToOpenModel(KarambaIDEA.Core.LoadcaseRAZ _loadCaseRAZ)
        {
            LoadCase loadCase = new LoadCase();

            loadCase.Name = _loadCaseRAZ.name;
            loadCase.Id   = _loadCaseRAZ.id;
            loadCase.Type = LoadCaseSubType.PermanentStandard;

            LoadGroupEC loadGroup = null;

            loadGroup           = new LoadGroupEC();
            loadGroup.Id        = _loadCaseRAZ.id;
            loadGroup.Name      = "LG" + _loadCaseRAZ.id;
            loadGroup.GammaQ    = 1.5;
            loadGroup.Psi0      = 0.7;
            loadGroup.Psi1      = 0.5;
            loadGroup.Psi2      = 0.3;
            loadGroup.GammaGInf = 1.0;
            loadGroup.GammaGSup = 1.35;
            loadGroup.Dzeta     = 0.85;
            openModel.AddObject(loadGroup);

            loadCase.LoadGroup = new ReferenceElement(loadGroup);


            openModel.AddObject(loadCase);

            CombiInputEC combi = new CombiInputEC();

            combi.Name                 = "CO" + _loadCaseRAZ.id;
            combi.TypeCombiEC          = TypeOfCombiEC.ULS;
            combi.TypeCalculationCombi = TypeCalculationCombiEC.Linear;
            combi.Items                = new List <CombiItem>();
            CombiItem it = new CombiItem();

            it.Id       = 1;
            it.LoadCase = new ReferenceElement(loadCase);
            it.Coeff    = 1.0;
            combi.Items.Add(it);
            openModel.AddObject(combi);
        }